code stringlengths 5 1.03M | repo_name stringlengths 5 90 | path stringlengths 4 158 | license stringclasses 15
values | size int64 5 1.03M | n_ast_errors int64 0 53.9k | ast_max_depth int64 2 4.17k | n_whitespaces int64 0 365k | n_ast_nodes int64 3 317k | n_ast_terminals int64 1 171k | n_ast_nonterminals int64 1 146k | loc int64 -1 37.3k | cycloplexity int64 -1 1.31k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE KindSignatures #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE TypeOperators #-}
module Lib
( someFunc
) where
import Data.Text
import Data.Typeable (Typeable)
data Proxy a = Proxy
data a :|... | 5outh/courier | src/Lib.hs | mit | 842 | 0 | 7 | 194 | 149 | 92 | 57 | -1 | -1 |
{-# LANGUAGE ExistentialQuantification #-}
module Vis.Impl (
) where
import Data.IORef
import Vis
import U.Objects
import U.Exec.Mutable
import OpenGLRenderer as R
data RenderableSystem sys d r =
forall body obj. (Renderable (body d) r, Renderable (obj d) r, MutableSystem (sys body obj) body obj d) =>
Re... | fehu/hgt | space-independent/src/Vis/Impl.hs | mit | 765 | 0 | 15 | 258 | 241 | 125 | 116 | 15 | 1 |
module Antemodulum.Read (
module Export
) where
--------------------------------------------------------------------------------
import Text.Read as Export (Read(..), ReadS, read, reads, readEither, readMaybe)
| docmunch/antemodulum | src/Antemodulum/Read.hs | mit | 214 | 0 | 6 | 22 | 44 | 30 | 14 | 3 | 0 |
{-# LANGUAGE ImplicitParams, DeriveDataTypeable, TypeOperators #-}
module Transformation.CommonBlockElim where
import Control.Monad
import Control.Monad.State.Lazy
import Debug.Trace
import Data.Data
import Data.List
import Data.Ord
import qualified Data.Map as Data.Map
import Data.Generics.Uniplate.Operations
impo... | ucam-cl-dtg/naps-camfort | Transformation/CommonBlockElim.hs | mit | 18,636 | 0 | 31 | 6,953 | 5,429 | 2,877 | 2,552 | 227 | 10 |
{-# LANGUAGE OverloadedStrings, MultiParamTypeClasses, QuasiQuotes, OverloadedLists #-}
module Control.OperationalTransformation.JSON.Apply where
import Control.Lens hiding (Identity)
import Control.OperationalTransformation as OT
import Control.OperationalTransformation.JSON.QuasiQuote (v)
import Control.Operational... | thomasjm/ot.hs | src/Control/OperationalTransformation/JSON/Apply.hs | mit | 4,854 | 0 | 14 | 832 | 1,712 | 887 | 825 | 76 | 12 |
{-# LANGUAGE BlockArguments #-}
{-# LANGUAGE OverloadedStrings #-}
module ZoomHub.Types.ContentURISpec
( main,
spec,
)
where
import Data.Text (Text)
import qualified Data.Text as T
import Servant (parseUrlPiece)
import Test.Hspec (Spec, describe, hspec, it, shouldBe)
import ZoomHub.Types.ContentURI (ContentUR... | zoomhub/zoomhub | tests/ZoomHub/Types/ContentURISpec.hs | mit | 701 | 0 | 11 | 114 | 163 | 96 | 67 | -1 | -1 |
module Filter.BW where
import Codec.Picture
toBW :: Int -> Image Pixel8 -> Image Pixel8
toBW threshold =
pixelMap ((*255) . fromIntegral . fromEnum . (< fromIntegral threshold))
| lesguillemets/haskell-image-filters | Filter/BW.hs | mit | 184 | 0 | 10 | 33 | 67 | 36 | 31 | 5 | 1 |
pack :: (Eq a) => [a] -> [[a]]
pack [] = []
pack (x:xs) = let (first, rest) = span (== x) xs
in (x : first) : pack rest
main :: IO ()
main = do
let value = pack "aaaabccaadeeee"
print value
| zeyuanxy/haskell-playground | ninety-nine-haskell-problems/vol1/09.hs | mit | 213 | 0 | 10 | 67 | 129 | 66 | 63 | 8 | 1 |
-----------------------------------------------------------------------------
-- |
-- Copyright : (C) 2015 Smelkov Ilya
-- License : MIT (see the file LICENSE)
-- Maintainer : Smelkov Ilya <triplepointfive@gmail.com>
-- Stability : experimental
-- Portability : non-portable
--
-- Walker over the directory... | triplepointfive/sanre | src/Sanre/FileTree.hs | mit | 1,525 | 0 | 11 | 266 | 330 | 181 | 149 | 22 | 2 |
-- Copyright © 2012 Julian Blake Kongslie <jblake@omgwallhack.org>
-- Licensed under the MIT license.
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE RecordWildCards #-}
module Main
where
import Control.Monad
import Data.Char
import Data.Data
import Data.DateTime
import Data.List
import Data.Maybe
import System.Con... | jblake/fanfiction | src/Main.hs | mit | 5,691 | 0 | 31 | 1,690 | 1,687 | 820 | 867 | 130 | 12 |
{-# LANGUAGE DeriveDataTypeable, OverloadedStrings #-}
module XMonad.Hooks.DBusLog
( dbusPP
, connectDBusSession
, dbusLog
, dbusLogWithPP
, pangoColor
, pangoBold
, pangoSanitize
-- re-export some useful stuff
, PP(..)
, wrap
, pad
, trim
, shorten
) where
impo... | jdpage/xmonad-config | lib/XMonad/Hooks/DBusLog.hs | mit | 2,178 | 0 | 14 | 573 | 580 | 311 | 269 | 66 | 5 |
--https://raw.githubusercontent.com/JakeWheat/intro_to_parsing/master/Text/Parsec/String/Combinator.hs
module ProjectRosalind.Motif.Combinator where
{-
Wrappers for the Text.Parsec.Combinator module with the types fixed to
'Text.Parsec.String.Parser a', i.e. the stream is String, no user
state, Identity monad.
-}
... | brodyberg/Notes | ProjectRosalind.hsproj/LearnHaskell/lib/ProjectRosalind/Motif/Combinator.hs | mit | 1,894 | 0 | 10 | 356 | 723 | 369 | 354 | 49 | 1 |
{-# LANGUAGE DeriveFunctor #-}
module FreeMonad where
{-
http://www.haskellforall.com/2012/06/you-could-have-invented-free-monads.html
http://dlaing.org/cofun/posts/free_and_cofree.html
http://arxiv.org/pdf/1403.0749v3.pdf
http://okmij.org/ftp/Haskell/extensible/more.pdf
http://apfelmus.nfshost.co... | limdauto/learning-haskell | monads/FreeMonad.hs | mit | 2,542 | 4 | 11 | 679 | 811 | 413 | 398 | 60 | 2 |
{-# LANGUAGE ScopedTypeVariables #-}
-- | Parsing of Unification Grammars with no CFG backbone
-- Following http://cs.haifa.ac.il/~shuly/teaching/06/nlp/ug3.pdf
module NLP.UG.Parse where
import Common
import NLP.AVM
import NLP.UG.Grammar
import qualified Data.Map as M
--------------------------------------------... | johnjcamilleri/hpsg | NLP/UG/Parse.hs | mit | 3,553 | 0 | 16 | 971 | 975 | 516 | 459 | 51 | 5 |
module IntroducaoAProgramacaoFuncionalEHaskell where
import Data.Char
-- fatorial, sintaxe da matemática, sem muita redundância
-- if statement in haskell
-- then obrigatório
-- parênteses opcional na condição
fat n = if n == 0 then 1 else n * fat (n-1)
-- comentários com -- ou {- -}
-- respondendo perguntas de si... | pauloborba/plc | src/IntroducaoAProgramacaoFuncionalEHaskell.hs | cc0-1.0 | 5,610 | 0 | 9 | 1,422 | 1,477 | 795 | 682 | 77 | 2 |
import Data.List
type Matrix = (Int, Int, [(Int, Int, Int)])
transp :: Matrix -> Matrix
transp (mm, nn, ee) = (nn, mm, e)
where e = map flipEl ee
flipEl :: (Int, Int, Int) -> (Int, Int, Int)
flipEl (i,j,a) = (j,i,a)
multi :: Matrix -> Matrix -> Matrix
multi mat1@(m1, n1, e1) mat2@(m2, n2, e2) | n1 /= m2 ... | machl/NPRG005-non-procedural-programming | matrix/matrix.hs | gpl-2.0 | 924 | 3 | 12 | 284 | 594 | 336 | 258 | 19 | 1 |
{-# OPTIONS -w -O0 #-}
{- |
Module : Fpl/ATC_Fpl.der.hs
Description : generated Typeable, ShATermConvertible instances
Copyright : (c) DFKI Bremen 2008
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : provisional
Portability : non-portable(overlapping Ty... | nevrenato/Hets_Fork | Fpl/ATC_Fpl.der.hs | gpl-2.0 | 1,977 | 0 | 5 | 264 | 191 | 126 | 65 | 30 | 0 |
{- |
Module : ./RDF/StaticAnalysis.hs
Copyright : Felix Gabriel Mance
License : GPLv2 or higher, see LICENSE.txt
Maintainer : f.mance@jacobs-university.de
Stability : provisional
Portability : portable
Static analysis for RDF
-}
module RDF.StaticAnalysis where
import qualified OWL2.AS as AS
impo... | spechub/Hets | RDF/StaticAnalysis.hs | gpl-2.0 | 10,476 | 0 | 21 | 2,682 | 3,072 | 1,572 | 1,500 | 179 | 6 |
module Network.Gitit.Plugins.ShowUser (plugin) where
-- This plugin replaces $USER$ with the name of the currently logged in
-- user, or the empty string if no one is logged in.
import Network.Gitit.Interface
plugin :: Plugin
plugin = mkPageTransformM showuser
showuser :: Inline -> PluginM Inline
showuser (Math Inl... | jraygauthier/jrg-gitit-plugins | src/Network/Gitit/Plugins/ShowUser.hs | gpl-2.0 | 568 | 0 | 12 | 122 | 134 | 68 | 66 | 12 | 2 |
{-# OPTIONS_GHC -O2 #-}
module Main where
import Data.Binary
import Data.Binary.Get
import System.Process
import Control.Monad
import Data.IORef
import System.FilePath
import System.IO
import System.IO.Unsafe
import System.Environment (getArgs)
import System.Environment.FindBin
import Data.ByteString (ByteString)
impo... | audreyt/pdf2line | pdf2line.hs | gpl-2.0 | 5,108 | 0 | 24 | 1,982 | 1,592 | 808 | 784 | 143 | 4 |
{-
Copyright (C) 2013,2014 Ellis Whitehead
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the... | ellis/OnTopOfThings | old-20150308/src/OnTopOfThings/Commands/Import.hs | gpl-3.0 | 15,642 | 0 | 25 | 3,422 | 3,169 | 1,720 | 1,449 | 209 | 7 |
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-| Module : ImportEnvironment
License : GPL
Maintainer : helium@cs.uu.nl
Stability : experimental
Portability : portable
-}
module Helium.ModuleSystem.ImportEnvironment where
import qualified Data.Map as M
import Helium.Utils.Utils (internalErro... | roberth/uu-helium | src/Helium/ModuleSystem/ImportEnvironment.hs | gpl-3.0 | 13,502 | 0 | 26 | 4,045 | 3,452 | 1,847 | 1,605 | 221 | 6 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the Lice... | karamellpelle/grid | source/Game/Values/Plain.hs | gpl-3.0 | 7,436 | 0 | 5 | 1,007 | 819 | 499 | 320 | 168 | 1 |
{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -pgmP cpp #-}
module Config(
Config(..)
, ColorTheme
, RefreshMode(..)
, defaultConfig
, configFromFile
, configToFile
, makeColorsFromList
) where
import Graphics.UI.Gtk (SortType(..), Window)
import Data.Array
import Data.Char
import Control.Exceptio... | Cadynum/Apelsin | src/Config.hs | gpl-3.0 | 6,375 | 0 | 16 | 1,936 | 1,669 | 924 | 745 | -1 | -1 |
import KNN.KNN
import KMeans.KMeans
import Svm.Svm
import Linear.Linear
import Logistic.Logistic
import LSA.LSA
import NaiveBayes.NaiveBayes
import HMM.HMM
main = do print "done"
| rahulaaj/ML-Library | src/Main.hs | gpl-3.0 | 180 | 0 | 7 | 22 | 52 | 29 | 23 | 9 | 1 |
{-# LANGUAGE MultiWayIf #-}
module Heqet.Output.Symbols
( renderSymbols
) where
import Heqet.Output.Render
import Heqet.Types
import qualified Heqet.Tables as Tables
import Heqet.Output.Templates
import Heqet.Tools
import Heqet.List
import qualified Heqet.Output.LilypondSettings as Output.LilypondSettings
im... | Super-Fluid/heqet | Heqet/Output/Symbols.hs | gpl-3.0 | 1,074 | 0 | 11 | 186 | 302 | 175 | 127 | -1 | -1 |
{- |
Module : Cell
Description : A `Cell` in a `Grid`.
Copyright : (c) Frédéric BISSON, 2015
License : GPL-3
Maintainer : zigazou@free.fr
Stability : experimental
Portability : POSIX
-}
module Cell
( Direction (..)
, Axis (..)
, Cell (..)
, toCell
) where
{- |
Direction an `Arrow` may take.
-}
data Direc... | Zigazou/ArrowPointing | src/Cell.hs | gpl-3.0 | 1,165 | 0 | 6 | 327 | 238 | 135 | 103 | 25 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# L... | romanb/amazonka | amazonka-iam/gen/Network/AWS/IAM/DeleteRole.hs | mpl-2.0 | 3,060 | 0 | 9 | 680 | 334 | 207 | 127 | 45 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-redis/gen/Network/Google/Resource/Redis/Projects/Locations/Instances/Patch.hs | mpl-2.0 | 6,914 | 0 | 17 | 1,451 | 872 | 514 | 358 | 125 | 1 |
{-# LANGUAGE UnicodeSyntax, TemplateHaskell, DeriveDataTypeable, StandaloneDeriving #-}
module Text.LogMerger.Types (
BasicLogEntry(..)
, basic_origin
, basic_date
, basic_text
, Origin(..)
, DateTime
, TimeAs(..)
, module Data.Time
) where
import Data.Time
import Data.Word
-- import qualified Data.ByteStri... | k32/visualsgsn | src/Text/LogMerger/Types.hs | unlicense | 1,459 | 0 | 10 | 289 | 401 | 235 | 166 | 43 | 0 |
{-
Copyright 2018 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to ... | deepmind/logical-entailment-dataset | Setup.hs | apache-2.0 | 649 | 0 | 4 | 141 | 12 | 7 | 5 | 2 | 1 |
module AlecSequences.A333398Spec (main, spec) where
import Test.Hspec
import AlecSequences.A333398 (a333398)
main :: IO ()
main = hspec spec
spec :: Spec
spec = describe "A333398" $
it "correctly computes the first 20 elements" $
map a333398 [1..20] `shouldBe` expectedValue where
expectedValue = [0,-1,-3,... | peterokagey/haskellOEIS | test/AlecSequences/A333398Spec.hs | apache-2.0 | 366 | 0 | 8 | 57 | 168 | 99 | 69 | 10 | 1 |
module Convert(
convertFiles
, ConvertFormat(..)
, ConvertOptions(..)
, readConvertFormat
, BlpFormat(..)
, readBlpFormat
) where
import Codec.Picture
import Codec.Picture.Blp
import Control.Monad
import Data.Char
import Data.Maybe
import Data.Monoid
import System.Directory
import System.FilePath
impo... | NCrashed/JuicyPixels-blp | blp2any/Convert.hs | bsd-3-clause | 5,830 | 0 | 17 | 1,261 | 1,720 | 860 | 860 | -1 | -1 |
{-# LANGUAGE FlexibleInstances #-}
{-# OPTIONS -Wall #-}
module NN.NeuralNetwork
(
NN (..)
, NNVars
, createNetworkW
, Net (..)
, module Util.Vars
) where
import AI.HNN.FF.Network
import Numeric.LinearAlgebra.HMatrix hiding (corr)
import System.Random (RandomGen, random)
import qualified Data.Vector as... | eklinkhammer/neural-algorithms | src/NN/NeuralNetwork.hs | bsd-3-clause | 4,075 | 0 | 12 | 951 | 1,424 | 718 | 706 | 91 | 2 |
-- | Type inference for Python 3. It serves as the entry point for users of the
-- library.
module Language.Python.TypeInference.TypeInference (
parseModules,
toCFG,
inferTypes,
parseUserSuppliedTypes
) where
import Data.Map (Map)
import Data.Set (Set)
import Language.Python.Common.AST
import Language.... | lfritz/python-type-inference | python-type-inference/src/Language/Python/TypeInference/TypeInference.hs | bsd-3-clause | 1,391 | 0 | 10 | 179 | 255 | 160 | 95 | 27 | 1 |
import Data.Maybe
prices :: [(String, Integer)]
prices = [
("apple", 100),
("banana", 70),
("orange", 90) ]
myMapMaybe :: (a -> Maybe b) -> [a] -> [b]
myMapMaybe f (x : xs) = case f x of
Just y -> y : myMapMaybe f xs
_ -> myMapMaybe f xs
myMapMaybe _ _ = []
justs :: [Maybe a] -> [a]
justs (mx : xs) = case mx of... | YoshikuniJujo/funpaala | samples/others/mapMaybe.hs | bsd-3-clause | 373 | 6 | 9 | 93 | 224 | 119 | 105 | 16 | 2 |
module CharParser (
getText
, getTitleFiles
, getTitleFileURLs
, getTDs
) where
import qualified Data.Text.Lazy as L
import LineParser
import Notation
import Types
----------------------------------------------------------------
getText :: L.Text -> LineParser XText
getText txt = case parse text "getText... | kazu-yamamoto/piki | src/CharParser.hs | bsd-3-clause | 2,705 | 0 | 15 | 594 | 902 | 457 | 445 | 67 | 2 |
module Win32Region where
import StdDIS
import Win32Types
import GDITypes
----------------------------------------------------------------
-- Regions
----------------------------------------------------------------
combineRgn :: HRGN -> HRGN -> HRGN -> ClippingMode -> IO RegionType
combineRgn arg1 arg2 arg3 arg4 =
... | OS2World/DEV-UTIL-HUGS | libraries/win32/Win32Region.hs | bsd-3-clause | 8,270 | 128 | 31 | 1,396 | 2,677 | 1,455 | 1,222 | -1 | -1 |
module Main where
import Data.Map as Map
dat = [("a", "apache"), ("e", "emacs"), ("a", "ant"), ("c", "ceph")]
main :: IO ()
main = do
putStrLn (show ks)
putStrLn (show es)
where
m = tomap dat
ks = Map.keys m
es = Map.elems m
tomap :: [(String, String)] -> Map String [String]
tomap [] = Map.empty
... | eijian/picfinder | src/Main-t2.hs | bsd-3-clause | 645 | 0 | 10 | 154 | 339 | 182 | 157 | 20 | 1 |
import Data.List
solveRPN :: String -> Float
solveRPN = head . foldl foldingFunction [] . words
where foldingFunction (x:y:ys) "*" = (x * y):ys
foldingFunction (x:y:ys) "+" = (x + y):ys
foldingFunction (x:y:ys) "-" = (y - x):ys
foldingFunction (x:y:ys) "/" = (y / x):ys
... | randallalexander/LYAH | src/Ch10.hs | bsd-3-clause | 534 | 0 | 10 | 161 | 254 | 132 | 122 | 11 | 8 |
module Main where
import System.Environment
import Euler201
import Text.Printf
import Data.Time.Clock
main :: IO ()
main = do
startTime <- getCurrentTime
arg1:arg2:arg3:_ <- getArgs
let [min, max, len] = map (\x -> read x::Int) [arg1, arg2, arg3]
cnt = findUniqueSums len ... | hackle/hscripting | app/Main.hs | bsd-3-clause | 596 | 0 | 18 | 230 | 180 | 93 | 87 | 14 | 1 |
module Main where
import Repository (loadRepository)
import ParsePackage (parseAndSaveAllPackages)
import NameResolution (resolveAndSaveAllPackageNames)
import Fragmentation (splitAndSaveAllDeclarations)
import Insertion (insertAllPackages)
import System.Process (system)
import System.Directory (removeDirectoryRecurs... | phischu/hackage-analysis | src/Main.hs | bsd-3-clause | 1,007 | 0 | 9 | 128 | 203 | 102 | 101 | 26 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Spec where
import Control.Monad ((>=>))
import Data.Aeson (Value (Object, String))
import Data.HashMap.Strict as HM (fromList)
import Data.Json.Util
import Data.Text as T (Text)
import System... | haroldcarr/data-json-validation | test/Spec.hs | bsd-3-clause | 3,352 | 0 | 29 | 767 | 1,223 | 680 | 543 | 69 | 2 |
{-# LANGUAGE StandaloneDeriving, GeneralizedNewtypeDeriving, FlexibleInstances #-}
-- module IFS.Density where
import IFS
import IFS.Transform2D
import System.Random
import Data.Array.IO
import Data.Array
import Data.Array.MArray
import Data.Ord
import Data.List
import Control.Monad (when)
import Control.Concurrent
i... | paolino/hifs | IFS/Density.hs | bsd-3-clause | 2,049 | 0 | 21 | 570 | 896 | 450 | 446 | 42 | 2 |
module HsBot.Base.Database where
import HsBot.Base.Conf
import qualified Database.HSQL.MySQL as MySQL
import qualified Database.HSQL.Types as Types
data Database = Database {
connection :: IO Types.Connection,
connectionString :: String
}
instance Show Database where
show database = show $ connectionString d... | buetow/hsbot | HsBot/Base/Database.hs | bsd-3-clause | 675 | 12 | 15 | 123 | 216 | 114 | 102 | 18 | 1 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Client.Dependency.TopDown.Types
-- Copyright : (c) Duncan Coutts 2008
-- License : BSD-like
--
-- Maintainer : cabal-devel@haskell.org
-- Stability : provisional
-- Portability : portable
--
-... | gbaz/cabal | cabal-install/Distribution/Client/Dependency/TopDown/Types.hs | bsd-3-clause | 5,281 | 0 | 9 | 1,030 | 709 | 399 | 310 | 81 | 0 |
-- |
-- Module : $Header$
-- Copyright : (c) 2013-2015 Galois, Inc.
-- License : BSD3
-- Maintainer : cryptol@galois.com
-- Stability : provisional
-- Portability : portable
{-# LANGUAGE Safe, PatternGuards #-}
module Cryptol.Parser.ParserUtils where
import Cryptol.Parser.AST
import Cryptol.Parser... | ntc2/cryptol | src/Cryptol/Parser/ParserUtils.hs | bsd-3-clause | 15,637 | 0 | 18 | 5,244 | 5,119 | 2,577 | 2,542 | 319 | 18 |
{-# LANGUAGE QuasiQuotes #-}
import LiquidHaskell
import Prelude hiding (Monad, return )
-- | TODO
-- |
-- | 1. default methods are currently not supported
data ST s a = ST {runState :: s -> (a,s)}
[lq| data ST s a <r :: a -> Prop>
= ST (runState :: x:s -> (a<r>, s)) |]
[lq| runState :: forall <r :: a -> ... | spinda/liquidhaskell | tests/gsoc15/unknown/pos/StateConstraints00.hs | bsd-3-clause | 695 | 3 | 10 | 209 | 173 | 101 | 72 | -1 | -1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ViewPatterns #-}
module Physics.Bullet.Types where
import F... | lukexi/bullet-mini | src/Physics/Bullet/Types.hs | bsd-3-clause | 3,658 | 0 | 11 | 935 | 693 | 404 | 289 | 122 | 0 |
{-
(c) The University of Glasgow 2006
(c) The GRASP/AQUA Project, Glasgow University, 1992-1998
Pattern-matching literal patterns
-}
{-# LANGUAGE CPP, ScopedTypeVariables #-}
module MatchLit ( dsLit, dsOverLit, hsLitKey, hsOverLitKey
, tidyLitPat, tidyNPat
, matchLiterals, matchNPlus... | bitemyapp/ghc | compiler/deSugar/MatchLit.hs | bsd-3-clause | 19,908 | 1 | 23 | 5,942 | 4,648 | 2,375 | 2,273 | -1 | -1 |
module Main
where
import TestsCommon
import GalFld.Core hiding (examplePoly, examplePoly')
import GalFld.Core.Matrix
import GalFld.Sandbox.FFSandbox
import GalFld.Sandbox.MatrixSandbox
--------------------------------------------------------------------------------
-- TODO: Test Matrix Multiplikation
testSize = 10... | maximilianhuber/softwareProjekt | test/MatrixTests.hs | bsd-3-clause | 1,774 | 0 | 18 | 520 | 474 | 252 | 222 | 36 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE QuasiQuotes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE PostfixOperators #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-or... | agacek/tower-camkes-odroid | test/SerialTest.hs | bsd-3-clause | 2,606 | 0 | 24 | 526 | 530 | 267 | 263 | 58 | 1 |
--it's first time recursive function
series 1 = 1
series x = x + series (x - 1)
{--this is comment
TODO LIST
-- haskell list
first (x:_) = x;
--Redefine list functions
length'
sum'
take'
drop'
reverse'
--use where
addsub x y = (add,sub)
--math practice
A straight line passing through (p,q)
and cross at right an... | 82p/haskell_sample | app/Main.hs | bsd-3-clause | 735 | 0 | 8 | 168 | 60 | 36 | 24 | 4 | 1 |
{-# language GADTs #-}
{-# language StandaloneDeriving #-}
{-# language TypeOperators #-}
{-# language FlexibleInstances #-}
{-# language FlexibleContexts #-}
{-# language UndecidableInstances #-}
{-# language MultiParamTypeClasses #-}
{-# language ConstraintKinds #-}
{-# lang... | markus-git/co-feldspar | src/Feldspar/Software/Expression.hs | bsd-3-clause | 10,819 | 0 | 20 | 2,095 | 2,574 | 1,340 | 1,234 | 205 | 1 |
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE CPP #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
module System.FastLogger
( Logger
, timestampedLogEntry
, combinedLogEntry
, newLogger
, newLoggerWithCustomErrorFunction
, logMsg
, s... | jonpetterbergman/wai-snap | src/System/FastLogger.hs | bsd-3-clause | 9,023 | 0 | 17 | 3,167 | 1,661 | 858 | 803 | 174 | 3 |
module Data.TestCase1TypeSynExpand where
type String1 = [Char]
f :: String1 -> String1
f x = x
data Tree a = Leaf | Node a (Tree a) (Tree a)
type ITree = Tree String1
g :: ITree -> ITree
g x = x
h x = let
y :: ITree -> ITree
y = g
in g Leaf
| rodrigogribeiro/mptc | test/Data/TestCase1TypeSynExpand.hs | bsd-3-clause | 271 | 0 | 9 | 87 | 118 | 64 | 54 | 12 | 1 |
{-# LANGUAGE CPP, ScopedTypeVariables #-}
{-
Uses pattern guards
This is an interpreter of the Unlambda language, written in
the pure, lazy, functional language Haskell.
Copyright (C) 2001 by Ørjan Johansen <oerjan@nvg.ntnu.no>
Copyright (C) 2006 by Don Stewart - http://www.cse.unsw.edu.au/~dons
This program is free... | jwiegley/lambdabot-1 | unlambda/Language/Unlambda.hs | mit | 4,539 | 0 | 15 | 1,214 | 1,644 | 819 | 825 | 96 | 4 |
{- |
Module : ./Proofs/InferBasic.hs
Description : devGraph rule that calls provers for specific logics
Copyright : (c) J. Gerken, T. Mossakowski, K. Luettich, Uni Bremen 2002-2006
License : GPLv2 or higher, see LICENSE.txt
Maintainer : till@informatik.uni-bremen.de
Stability : provisional
Portabili... | spechub/Hets | Proofs/InferBasic.hs | gpl-2.0 | 5,275 | 0 | 18 | 1,254 | 1,133 | 574 | 559 | 99 | 4 |
--
-- 2.SystemInfo.hs
-- R_Functional_Programming
--
-- Created by RocKK on 2/13/14.
-- Copyright (c) 2014 RocKK.
-- All rights reserved.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and this paragraph are
-- duplicated in all such forms and t... | RocKK-MD/R_Functional_Programming | Sources/2.SystemInfo.hs | bsd-2-clause | 956 | 0 | 7 | 181 | 54 | 33 | 21 | 6 | 1 |
module Bugs.Bug6 (main) where
import Text.Megaparsec
import Text.Megaparsec.String
import Test.Framework
import Test.Framework.Providers.HUnit
import Test.HUnit hiding (Test)
import Util
main :: Test
main =
testCase "Look-ahead preserving error location (#6)" $
parseErrors variable "return" @?= ["'return' is a... | neongreen/megaparsec | old-tests/Bugs/Bug6.hs | bsd-2-clause | 512 | 0 | 10 | 99 | 127 | 70 | 57 | 17 | 2 |
{-# OPTIONS_GHC -fno-implicit-prelude -fallow-overlapping-instances #-}
-- The -fallow-overlapping-instances flag allows the user to over-ride
-- the instances for Typeable given here. In particular, we provide an instance
-- instance ... => Typeable (s a)
-- But a user might want to say
-- instance ... => Typeable ... | alekar/hugs | packages/base/Data/Typeable.hs | bsd-3-clause | 21,045 | 143 | 16 | 4,010 | 4,899 | 2,699 | 2,200 | -1 | -1 |
-----------------------------------------------------------------------------
-- |
-- Module : Graphics.UI.SDL.TTF.Render
-- Copyright : (c) David Himmelstrup 2005
-- License : BSD-like
--
-- Maintainer : lemmih@gmail.com
-- Stability : provisional
-- Portability : portable
--
----------------------... | joelburget/sdl2-ttf | Graphics/UI/SDL/TTF/Render.hs | bsd-3-clause | 7,540 | 0 | 18 | 1,362 | 1,748 | 891 | 857 | 121 | 2 |
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.Simple.GHC.ImplInfo
--
-- Maintainer : cabal-devel@haskell.org
-- Portability : portable
--
-- This module contains the data structure describing invocation
-- details for a GHC or GHC-derived compiler, ... | mydaum/cabal | Cabal/Distribution/Simple/GHC/ImplInfo.hs | bsd-3-clause | 3,761 | 0 | 13 | 901 | 560 | 338 | 222 | 57 | 5 |
module Network.HPACK.Builder where
newtype Builder a = Builder ([a] -> [a])
(<<) :: Builder a -> a -> Builder a
Builder b << entry = Builder $ b . (entry :)
empty :: Builder a
empty = Builder id
singleton :: a -> Builder a
singleton x = Builder (x :)
run :: Builder a -> [a]
run (Builder b) = b []
| bergmark/http2 | Network/HPACK/Builder.hs | bsd-3-clause | 303 | 0 | 8 | 68 | 153 | 82 | 71 | 10 | 1 |
module Api.Mailers.Verify where
import Network.Mail.Mime hiding (simpleMail)
import Network.Mail.SMTP (simpleMail)
import Text.Email.Validate (toByteString)
import qualified Data.ByteString.Lazy.Char8 as LC
import qualified Data.Text as ST
import qualified Data.Text.Encoding as SE
import Api... | cawinkelmann/api-server | lib/Api/Mailers/Verify.hs | mit | 1,401 | 0 | 10 | 352 | 340 | 193 | 147 | 31 | 1 |
{-# LANGUAGE CPP #-}
{- |
Module : $Header$
Description : Menu creation functions for the Graphdisplay
Copyright : (c) Thiemo Wiedemeyer, Uni Bremen 2002-2008
License : GPLv2 or higher, see LICENSE.txt
Maintainer : raider@informatik.uni-bremen.de
Stability : provisional
Portability : non-portable ... | mariefarrell/Hets | GUI/GraphMenu.hs | gpl-2.0 | 18,451 | 0 | 28 | 4,812 | 5,038 | 2,588 | 2,450 | 345 | 21 |
{-# LANGUAGE BangPatterns,OverloadedStrings #-}
module TclLib.IOCmds (ioCmds, ioInits) where
import Common
import Control.Monad (unless, liftM2)
import System.IO
import System.Exit
import System.Directory (getCurrentDirectory,
doesFileExist,
doesDirectoryExist,
... | muspellsson/hiccup | TclLib/IOCmds.hs | lgpl-2.1 | 6,797 | 4 | 21 | 2,455 | 2,340 | 1,171 | 1,169 | 160 | 6 |
{-# OPTIONS_GHC -XOverloadedStrings -funbox-strict-fields -XDeriveDataTypeable #-}
module OpenResty.Request (
parseCGIEnv, Request(..), DataFormat(..), RestyError(..)
) where
import Network.FastCGI
import qualified Data.ByteString.Lazy.Char8 as BL
import qualified Data.ByteString.Char8 as B
import Network.URI (un... | beni55/old-openresty | haskell/src/OpenResty/Request.hs | bsd-3-clause | 4,321 | 0 | 16 | 1,074 | 1,444 | 791 | 653 | 101 | 5 |
{-# LANGUAGE CPP, Rank2Types, TypeFamilies #-}
-- |
-- Module : Data.Vector.Unboxed
-- Copyright : (c) Roman Leshchinskiy 2009-2010
-- License : BSD-style
--
-- Maintainer : Roman Leshchinskiy <rl@cse.unsw.edu.au>
-- Stability : experimental
-- Portability : non-portable
--
-- Adaptive unboxed vectors. T... | seckcoder/vector | Data/Vector/Unboxed.hs | bsd-3-clause | 44,965 | 0 | 14 | 9,780 | 10,047 | 5,584 | 4,463 | -1 | -1 |
module PackageTests.BuildDeps.InternalLibrary0.Check where
import Control.Monad
import Data.Version
import PackageTests.PackageTester
import System.FilePath
import Test.HUnit
suite :: Version -> FilePath -> Test
suite cabalVersion ghcPath = TestCase $ do
let spec = PackageSpec ("PackageTests" </> "BuildDeps" </>... | jwiegley/ghc-release | libraries/Cabal/cabal/tests/PackageTests/BuildDeps/InternalLibrary0/Check.hs | gpl-3.0 | 644 | 0 | 14 | 123 | 153 | 78 | 75 | 14 | 1 |
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE OverloadedStrings #-}
-- | Handy path information.
module Stack.Path
( path
, pathParser
) where
import Stack.Prelude
import Data.List (intercalate)
import qualified Data.Set as Set
import qualified Data.... | anton-dessiatov/stack | src/Stack/Path.hs | bsd-3-clause | 8,884 | 0 | 17 | 2,666 | 1,690 | 946 | 744 | 184 | 2 |
{-# LANGUAGE OverloadedStrings #-}
module Network.Wreq.Internal.Link
(
links
) where
import Control.Applicative ((<$>), (<*>), (*>), (<*), many)
import Data.Attoparsec.ByteString.Char8 as A8
import Data.ByteString (ByteString)
import Network.Wreq.Types (Link(..))
import qualified Data.Attoparse... | bitemyapp/wreq | Network/Wreq/Internal/Link.hs | bsd-3-clause | 1,936 | 0 | 13 | 594 | 662 | 355 | 307 | 52 | 6 |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE NoMonomorphismRestriction #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Heist.Interpreted.Tests
( tests
, quickRender
) where
-------------------------------... | sopvop/heist | test/suite/Heist/Interpreted/Tests.hs | bsd-3-clause | 23,890 | 0 | 19 | 5,634 | 5,203 | 2,679 | 2,524 | 414 | 4 |
module HAD.Y2014.M03.D18.Solution where
-- $setup
-- >>> import Data.Maybe
-- >>> let backPartner = (>>= partner) . (>>= partner)
data Person a = Single a | Married a (Person a)
partner :: Person a -> Maybe (Person a)
partner (Married _ p) = Just p
partner _ = Nothing
get :: Person a -> a
get (Single x) = x
get ... | Madsn/1HAD | exercises/HAD/Y2014/M03/D18/Solution.hs | mit | 933 | 0 | 9 | 197 | 237 | 127 | 110 | 14 | 1 |
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns#-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ExistentialQuantification #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE FunctionalDependencies #-}
{-# LANGUA... | ygale/yesod | yesod-core/test/RouteSpec.hs | mit | 12,619 | 0 | 22 | 3,995 | 2,803 | 1,446 | 1,357 | 199 | 1 |
module ShouldCompile where
foldPair :: (a->a->a,b->b->b) -> (a,b) -> [(a,b)] -> (a,b)
foldPair fg ab [] = ab
foldPair fg@(f,g) ab ((a,b):abs) = (f a u,g b v)
where (u,v) = foldPair fg ab abs
| ghc-android/ghc | testsuite/tests/deSugar/should_compile/ds031.hs | bsd-3-clause | 222 | 0 | 9 | 66 | 149 | 84 | 65 | 5 | 1 |
Vamodule Language.Rowling.Definitions (
module Language.Rowling.Definitions.Types,
module Language.Rowling.Definitions.Expressions,
module Language.Rowling.Definitions.Values
) where
import Language.Rowling.Definitions.Types
import Language.Rowling.Definitions.Expressions
import Language.Rowling.Definiti... | thinkpad20/rowling | src/Language/Rowling/Definitions.hs | mit | 331 | 0 | 8 | 32 | 65 | 39 | 26 | -1 | -1 |
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE ConstraintKinds #-}
-------------------------------------------
-- |
-- Module : Pinboard.Api
-- Copyright : (c) Jon Schoning, 2015
-- Maintainer : jonschoning@gmail.com
-- Stability : experimen... | jonschoning/pinboard | src/Pinboard/Api.hs | mit | 7,344 | 0 | 17 | 1,302 | 1,158 | 606 | 552 | 132 | 1 |
module Main where
import Data.List
data Disc = Disc
{ initial :: Int
, size :: Int
}
positions :: [Disc] -> [[Int]]
positions = map positions'
where positions' (Disc i s) = cycle ([i..s-1] ++ [0..i-1])
discs :: [Disc]
discs =
[ Disc 1 17
, Disc 0 7
, Disc 2 19
, Disc 0 5
, Disc 0 3
, Disc 5 13
... | mithrandi/advent2016 | Day15.hs | mit | 865 | 0 | 12 | 220 | 433 | 225 | 208 | 32 | 2 |
module GHCJS.DOM.DataTransferItemList (
) where
| manyoo/ghcjs-dom | ghcjs-dom-webkit/src/GHCJS/DOM/DataTransferItemList.hs | mit | 50 | 0 | 3 | 7 | 10 | 7 | 3 | 1 | 0 |
module HTMLEntities.Builder (char, text) where
import HTMLEntities.Prelude
import qualified Data.Text as Text
import qualified Data.Text.Lazy.Builder as Text (Builder)
import qualified Data.Text.Lazy.Builder as Text.Builder
-- |
-- HTML-encodes the given char into a text builder.
char :: Char -> Text.Builder
char c ... | nikita-volkov/html-entities | library/HTMLEntities/Builder.hs | mit | 851 | 0 | 9 | 149 | 209 | 131 | 78 | 21 | 1 |
module Y2016.M06.D21.Exercise where
{--
So what happens when things become Complex?
With the Quadratic type, enhance solver in such a way that it gives all
solutions, whether they be Real or Complex.
This exercise is an elaboration of yesterday's that solved quadratic equations
with Real roots with the quadratic for... | geophf/1HaskellADay | exercises/HAD/Y2016/M06/D21/Exercise.hs | mit | 1,063 | 0 | 8 | 194 | 143 | 92 | 51 | 8 | 1 |
{-# LANGUAGE TemplateHaskell, TypeFamilies, OverloadedLists #-}
{-# OPTIONS_GHC -ddump-splices #-} -- for debugging
module Build.Derive.List.HigherKind where
import Derive.List
import Data.Semigroup
import GHC.Exts (IsList (..))
data Elisp a
= ElispAtom a
| ElispSexp [Elisp a]
deriving (Show)
deriveList ''Eli... | sboosali/derive-monoid | test/Build/Derive/List/HigherKind.hs | mit | 558 | 0 | 14 | 86 | 180 | 95 | 85 | 16 | 1 |
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveFunctor #-}
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANG... | mjhopkins/StopPayingForFreeMonads | ALaCarteDSL.hs | mit | 3,530 | 0 | 10 | 837 | 932 | 521 | 411 | -1 | -1 |
foldQs :: Ord a => [a] -> [a]
foldQs [] = []
foldQs (x:xs) = foldQs (foldFilter (<=x) xs) ++ [x] ++ foldQs (foldFilter (>x) xs)
--foldQs (x:xs) = foldr ()
foldFilter p = foldr (\x acc -> if p x then x : acc else acc) []
foldlFilter p = foldl (\acc x -> if p x then acc++[x] else acc) []
| RAFIRAF/HASKELL | foldQs.hs | mit | 289 | 0 | 10 | 65 | 175 | 93 | 82 | 5 | 2 |
-- Copyright (c) 2015-16 Nicola Bonelli <nicola@pfq.io>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- Thi... | pfq/PFQ | user/pfq-load/pfq-load.hs | gpl-2.0 | 16,878 | 0 | 23 | 4,741 | 4,729 | 2,462 | 2,267 | 339 | 4 |
module SneakyBeaky.Matrix where
type Matrix2D a = (a, a, a, a)
mMultiply :: RealFrac a => Matrix2D a -> (Int, Int) -> (Int, Int)
mMultiply (a00,a10,a01,a11) (x, y) = let xf = fromIntegral x
yf = fromIntegral y
in (floor (a00 * xf + a01 * y... | pmiddend/sneakybeaky | src/SneakyBeaky/Matrix.hs | gpl-3.0 | 455 | 0 | 12 | 157 | 208 | 113 | 95 | 8 | 1 |
module Bot where
import Network.SimpleIRC hiding (Command,parse)
import Data.Maybe
import qualified Data.ByteString.Char8 as B
import qualified Data.Text as T
import Data.List
import Text.ParserCombinators.Parsec
import Text.ParserCombinators.Parsec.Char
import BotCommand
import Logger
import Config
import Categorize
... | maxking/cs583-project | src/Bot.hs | gpl-3.0 | 4,508 | 0 | 12 | 1,398 | 1,154 | 613 | 541 | 81 | 4 |
module Service(trade,record,query,pay,sign) where
import Control.Monad.State
import Control.Monad.Reader
import Control.Monad.Writer
import Control.Monad.Trans(liftIO)
import Type
import Utils
import Config
record :: TradeRecord
record = TradeRecord {
tradeNo = "20170214372419268805",
tradeAmount = 10,
tr... | koerriva/paygate | src/Service.hs | gpl-3.0 | 2,092 | 0 | 15 | 541 | 617 | 327 | 290 | 59 | 2 |
{-# OPTIONS -fno-warn-orphans #-}
module Foreign.C.Types.Instances () where
import Data.Aeson (ToJSON(..), FromJSON(..))
import Foreign.C.Types (CDouble)
instance FromJSON CDouble where
parseJSON = fmap (realToFrac :: Double -> CDouble) . parseJSON
instance ToJSON CDouble where
toJSON = toJSON . (realToFrac :... | da-x/lamdu | bottlelib/Foreign/C/Types/Instances.hs | gpl-3.0 | 341 | 0 | 9 | 52 | 101 | 61 | 40 | 8 | 0 |
-- grid is a game written in Haskell
-- Copyright (C) 2018 karamellpelle@hotmail.com
--
-- This file is part of grid.
--
-- grid is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the Lice... | karamellpelle/grid | designer/source/Game/LevelPuzzleMode/Do.hs | gpl-3.0 | 2,794 | 0 | 17 | 634 | 595 | 330 | 265 | 41 | 3 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-accessapproval/gen/Network/Google/Resource/AccessApproval/Organizations/UpdateAccessApprovalSettings.hs | mpl-2.0 | 7,179 | 0 | 17 | 1,469 | 866 | 508 | 358 | 131 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-datafusion/gen/Network/Google/Resource/DataFusion/Projects/Locations/Get.hs | mpl-2.0 | 4,504 | 0 | 15 | 1,022 | 695 | 406 | 289 | 100 | 1 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/OperatingSystemVersions/List.hs | mpl-2.0 | 5,183 | 0 | 18 | 1,174 | 726 | 421 | 305 | 109 | 1 |
{-# LANGUAGE AllowAmbiguousTypes #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ScopedTypeVariables #-}
module XSpec where
import Gauge
import GaugeUse
import MissionControl
import MissionControlUse
import ScratchPad.FuelLevel
import ScratchPad.Sorted... | haroldcarr/learn-haskell-coq-ml-etc | haskell/playpen/2020-07-07-harold-carr-phantom-existential-scratchpad/test/XSpec.hs | unlicense | 1,521 | 0 | 11 | 395 | 401 | 194 | 207 | 46 | 1 |
{-# OPTIONS -cpp #-}
------------------------------------------------------------------------------
-- Copyright 2012 Microsoft Corporation.
--
-- This is free software; you can redistribute it and/or modify it under the
-- terms of the Apache License, Version 2.0. A copy of the License can be
-- found in the file "lic... | lpeterse/koka | src/Platform/Filetime.hs | apache-2.0 | 1,822 | 0 | 9 | 416 | 203 | 119 | 84 | 25 | 1 |
import Math.NumberTheory.Primes.Sieve
import Math.NumberTheory.Primes.Testing
import Data.IntSet (IntSet)
import qualified Data.IntSet as IntSet
triangle n = (n*(n+1)) `div` 2
pentagonal n = (n*((3*n)-1)) `div` 2
hexagonal n = n*((2*n)-1)
main = do
let base = [1..100000]
let triangles = IntSet.fromList $... | ulikoehler/ProjectEuler | Euler45.hs | apache-2.0 | 621 | 0 | 12 | 110 | 257 | 135 | 122 | 14 | 1 |
{-# LANGUAGE OverloadedStrings #-}
module Texts where
import Prelude
import Data.Monoid ((<>))
import Config.Config (staticURL)
bookLabelTxt :: String -> String
bookLabelTxt ref =
"<div class='book-banner'>\
\ <img class='book-clipart' src='" <> staticURL <> "img/book.png' alt='book clipart'/>\
\ <div class... | DataStewardshipPortal/ds-wizard | src/Texts.hs | apache-2.0 | 919 | 0 | 10 | 172 | 71 | 41 | 30 | 11 | 1 |
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE TemplateHaskell #-}
----------------------------------------------------------------------------
-- |
-- Module : Web.Skroutz.Model.Base.FilterGroup
-- Copyright : (c) 2016 Remous-Aris Ko... | ariskou/skroutz-haskell-api | src/Web/Skroutz/Model/Base/FilterGroup.hs | apache-2.0 | 1,546 | 0 | 9 | 394 | 196 | 126 | 70 | 24 | 0 |
{-# OPTIONS -fglasgow-exts #-}
-----------------------------------------------------------------------------
{-| Module : QStandardItem_h.hs
Copyright : (c) David Harley 2010
Project : qtHaskell
Version : 1.1.4
Modified : 2010-09-02 17:02:21
Warning : this file is machine generated - ... | uduki/hsQt | Qtc/Gui/QStandardItem_h.hs | bsd-2-clause | 23,810 | 0 | 18 | 5,388 | 7,783 | 3,708 | 4,075 | -1 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.