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 PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.DOMNamedFlowCollection (js_item, item, js_namedItem, namedItem, js_getLength, getLength, DOMNamedFlowCollection, castToDOMNamedFlowCollection, gTypeDOMNamedFlowCollection) where impor...
plow-technologies/ghcjs-dom
src/GHCJS/DOM/JSFFI/Generated/DOMNamedFlowCollection.hs
mit
2,503
22
11
356
582
344
238
43
1
module Compiler.Rum.StackMachine.Translator where import Control.Monad.Extra (concatMapM) import qualified Data.HashMap.Strict as HM import Compiler.Rum.Internal.AST import Compiler.Rum.Internal.Rumlude import Compiler.Rum.Internal.Util import Compiler.Rum.StackMachine.Structure import Compiler.Rum.St...
vrom911/Compiler
src/Compiler/Rum/StackMachine/Translator.hs
mit
4,171
0
16
886
1,480
737
743
-1
-1
module Main where ------------- -- Imports -- import Distribution.Simple ---------- -- Code -- main :: IO () main = defaultMain
crockeo/ballgame
src/Setup.hs
mit
130
0
6
22
28
18
10
4
1
----------------------------------------------------------------------------- -- -- Module : Language.PureScript.Pretty.JS -- Copyright : (c) Phil Freeman 2013 -- License : MIT -- -- Maintainer : Phil Freeman <paf31@cantab.net> -- Stability : experimental -- Portability : -- -- | -- Pretty printer fo...
michaelficarra/purescript
src/Language/PureScript/Pretty/JS.hs
mit
10,688
0
22
3,160
3,308
1,701
1,607
229
26
{-# LANGUAGE DeriveDataTypeable #-} module ReprTree (reprTree, reprTreeString) where import Data.Tree import Data.Generics import Data.List import Data.Maybe import Data.Text (Text) import qualified Data.Text as Text import Data.Map (Map) import qualified Data.Map as Map import Data.Set (Set) import qualified Data.Set...
nikita-volkov/repr-tree-syb
src/ReprTree.hs
mit
2,597
0
11
615
712
397
315
45
3
module Development.Duplo where import Control.Exception (throw) import Control.Lens hiding (Action) import Control.Monad (unless, void, when) import Control.Monad.Trans.Maybe (runMaybeT) import qualified Development.Duplo....
pixbi/duplo
src/Development/Duplo.hs
mit
6,815
0
19
2,184
1,491
765
726
114
2
{-# OPTIONS_GHC -fno-warn-orphans #-} module Graphics.Urho3D.Graphics.Renderer( Renderer , rendererContext , rendererSetNumViewports , rendererSetViewport , rendererGetTextureQuality , rendererSetTextureQuality , rendererGetMaterialQuality , rendererSetMaterialQuality , rendererGetSpecularLighting ...
Teaspot-Studio/Urho3D-Haskell
src/Graphics/Urho3D/Graphics/Renderer.hs
mit
8,188
0
12
1,460
1,885
1,017
868
-1
-1
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.Node (js_insertBefore, insertBefore, js_replaceChild, replaceChild, js_removeChild, removeChild, js_appendChild, appendChild, js_hasChildNodes, hasChildNodes, js_cloneNode, cloneNode, ...
manyoo/ghcjs-dom
ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/Node.hs
mit
18,951
242
13
3,587
4,288
2,264
2,024
321
1
{-# OPTIONS_GHC -fno-warn-orphans #-} module ACME.Yes.PreCure5.GoGo.ProfilesSpec where import ACME.Yes.PreCure5.GoGo.Profiles import qualified ACME.Yes.PreCure5.Profiles as Yes import Test.Hspec import Test.Hspec.QuickCheck (prop) import Test.QuickCheck import qualified Data.Set as S import Debug.Trace import Contro...
igrep/yes-precure5-command
test/ACME/Yes/PreCure5/GoGo/ProfilesSpec.hs
mit
1,017
0
19
184
262
141
121
26
1
{-# LANGUAGE MultiParamTypeClasses #-} {- | Module : $Header$ Description : Morphism extension for modal signature morphisms Copyright : DFKI GmbH 2009 License : GPLv2 or higher, see LICENSE.txt Maintainer : codruta.liliana@gmail.com Stability : experimental Portability : portable -} module ExtMo...
nevrenato/HetsAlloy
ExtModal/MorphismExtension.hs
gpl-2.0
3,848
0
22
887
1,167
583
584
85
6
{- - The Lambda Shell, an interactive environment for evaluating pure untyped lambda terms. - Copyright (C) 2005-2011, Robert Dockins - - 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 Founda...
robdockins/lambda-shell
src/LambdaParser.hs
gpl-2.0
6,408
0
17
1,763
1,787
867
920
163
3
{-# language TypeFamilies, MultiParamTypeClasses, KindSignatures, FlexibleContexts, FlexibleInstances, ConstraintKinds #-} {-# language AllowAmbiguousTypes #-} {-# language CPP #-} ----------------------------------------------------------------------------- -- | -- Module : Numeric.LinearAlgebra.Class -- Copyrig...
ocramz/sparse-linear-algebra
src/Numeric/LinearAlgebra/Class.hs
gpl-3.0
10,225
0
12
2,346
2,421
1,321
1,100
-1
-1
{-# LANGUAGE CPP #-} {-| A ledger-compatible @register@ command. -} module Hledger.Cli.Register ( registermode ,register ,postingsReportAsText -- ,showPostingWithBalanceForVty ,tests_Hledger_Cli_Register ) where import Data.List import Data.Maybe import System.Console.CmdArgs.Explicit import Text.CSV import T...
kmels/hledger
hledger/Hledger/Cli/Register.hs
gpl-3.0
6,794
0
19
1,713
1,576
866
710
103
6
module Text.Shaun ( ShaunValue(..) , Shaun(..) ) where import Text.Shaun.Lexer import Text.Shaun.Parser import Text.Shaun.Types import Text.Shaun.Sweeper import Data.List (intersperse, concat, length) import Data.Maybe (fromMaybe) import Control.Monad import Data.ByteString.Char8 (pack) import Control.Monad.I...
Shumush/SNIHs
src/Text/Shaun.hs
gpl-3.0
1,068
0
12
254
477
254
223
29
2
import Text.ParserCombinators.Parsec hiding (spaces) import Control.Monad data LispVal = Atom String | List [LispVal] | DottedList [LispVal] LispVal | Number Integer | String String | Bool Bool parseNumber :: Parser LispVal parseNumber = many1 digit >>=...
lifengsun/haskell-exercise
scheme/02/ex-1-1.b.hs
gpl-3.0
344
0
8
108
88
50
38
10
1
----------------------------------------------------------------------------- -- | -- Module : Hoodle.Util.Verbatim -- Copyright : (c) 2011-2013 Ian-Woo Kim -- -- License : BSD3 -- Maintainer : Ian-Woo Kim <ianwookim@gmail.com> -- Stability : experimental -- Portability : GHC -- -------------------------...
wavewave/hoodle-core
src/Hoodle/Util/Verbatim.hs
gpl-3.0
716
0
7
180
72
51
21
8
1
import Data.Char import Data.List digitSum :: Int -> Int digitSum = sum . map digitToInt . show firstTo40 :: Maybe Int firstTo40 = find (\x -> digitSum x == 40) [1..] firstTo :: Int -> Maybe Int firstTo n = find (\x -> digitSum x == n) [1..]
medik/lang-hack
Haskell/LearnYouAHaskell/c06/cool-numbers.hs
gpl-3.0
245
0
9
51
115
60
55
8
1
module Types.Drupal where import Text.Parsec import Text.Parsec.ByteString (parseFromFile) import System.FilePath.Posix import Data.Tree import Data.ByteString (ByteString) import System.Directory import qualified DirTree as DT import Types dpFindVersionFileLocation :: Website -> Maybe (FilePath) dpFindVersionFileLoc...
MarkArts/wubstuts
src/Types/Drupal.hs
gpl-3.0
3,207
0
18
849
936
464
472
63
3
{-# LANGUAGE PatternSynonyms #-} {-| Module : Keyboard Description : Keyboard values sent by the Minitel Copyright : (c) Frédéric BISSON, 2014 License : GPL-3 Maintainer : zigazou@free.fr Stability : experimental Portability : POSIX Keyboard values sent by the Minitel. -} module Minitel.Constants.Keyboar...
Zigazou/HaMinitel
src/Minitel/Constants/Keyboard.hs
gpl-3.0
1,280
0
7
271
324
181
143
27
0
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-logging/gen/Network/Google/Resource/Logging/BillingAccounts/Exclusions/List.hs
mpl-2.0
6,551
0
18
1,465
894
520
374
131
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
rueshyna/gogol
gogol-prediction/gen/Network/Google/Resource/Prediction/TrainedModels/Update.hs
mpl-2.0
3,559
0
15
834
464
277
187
72
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-adexchange-seller/gen/Network/Google/Resource/AdExchangeSeller/Accounts/PreferredDeals/List.hs
mpl-2.0
3,248
0
13
675
307
189
118
53
1
module GlobalLocal where topLevelFunction :: Integer -> Integer topLevelFunction x = x + woot + topLevelValue where woot :: Integer woot = 10 topLevelValue :: Integer topLevelValue = 5
thewoolleyman/haskellbook
03/03/chad/Global.hs
unlicense
196
0
6
40
51
29
22
7
1
{-# LANGUAGE OverloadedStrings #-} module Main where --import Network.Shed.Httpd import Network.URI import Network.Wai.Handler.Warp import Network.Wai import Network.HTTP.Types.Status import Data.List import System.IO import Ajax import Muste import Muste.Grammar import PGF import qualified Data.Map.Strict as Map impo...
daherb/Haskell-Muste
ajax-backend/Main-Standalone.hs
artistic-2.0
2,752
0
16
532
809
411
398
70
2
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QFontDatabase.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:14 Warning : this file is machine generated - do...
uduki/hsQt
Qtc/Gui/QFontDatabase.hs
bsd-2-clause
14,131
0
15
2,158
3,894
2,025
1,869
-1
-1
import System.Environment import Test.DocTest main = doctest ["word2vec"]
RayRacine/hs-word2vec
word2vec-test.hs
bsd-3-clause
75
0
6
9
22
12
10
3
1
{-# LANGUAGE MultiParamTypeClasses, FunctionalDependencies #-} module Math.Budget.Lens.ArbitraryMethodL where class ArbitraryMethodL cat target | target -> cat where arbitraryMethodL :: cat target String
tonymorris/hbudget
src/Math/Budget/Lens/ArbitraryMethodL.hs
bsd-3-clause
208
0
7
26
36
21
15
4
0
{-# LANGUAGE PackageImports #-} module System.Posix.Internals (module M) where import "base" System.Posix.Internals as M
silkapp/base-noprelude
src/System/Posix/Internals.hs
bsd-3-clause
126
0
4
18
23
17
6
3
0
{-# LANGUAGE FlexibleInstances, GeneralizedNewtypeDeriving #-} module Lib.HGit.Data ( runGit , GitConfig(..) , GitCommand(..) , GitReader , createGitProcess , spawnGitProcess , ID , CommitID , BlobID , TagID , TreeID , Tag , GitObject(..) , Person(..) , Commitent(..) , TreeNode(..) , ...
MarcusWalz/hgit
Lib/HGit/Data.hs
bsd-3-clause
3,658
0
11
993
1,157
657
500
117
1
{-# LANGUAGE QuasiQuotes #-} module Output.Totals where import Control.Lens import Data.List (sortBy) import Data.Map (Map) import Data.Maybe (fromJust) import Data.Ord (comparing) import Data.Ratio import Data.Time.Calendar (Day) import NewTTRS.Law import Text.Hamlet (Html, shamlet) import qualified Data.Map as Map ...
glguy/tt-ratings
Output/Totals.hs
bsd-3-clause
3,726
0
16
1,285
567
315
252
42
1
import System.Environment import System.Directory -- | A fake version of gcc that simply echos its last argument. -- This is to replicate the --print-file-name flag of gcc -- which is the only functionality of gcc that GHC needs. main :: IO () main = do args <- getArgs if null args then return () else do ...
lukexi/rumpus
util/fakeGCC.hs
bsd-3-clause
936
0
14
257
111
57
54
11
4
#define IncludedmakeIndicesNull makeIndicesNull :: RString -> RString -> Integer -> Integer -> Proof {-@ makeIndicesNull :: s:RString -> t:RString -> lo:INat -> hi:{Integer | (stringLen t < 2 + stringLen s && 1 + stringLen s - stringLen t <= lo && lo <= hi) || (1 + stringLen s <= stringLen t) ...
nikivazou/verified_string_matching
src/Proofs/makeIndicesNull.hs
bsd-3-clause
819
5
11
244
207
102
105
13
1
{-# LANGUAGE Rank2Types, GADTs #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE ScopedTypeVariables #-} module InterfacesRules where {-# LINE 2 "./src-ag/Interfaces.ag" #-} import CommonTypes import SequentialTypes {-# LINE 11 "dist/build/InterfacesRules.hs" #-} {-# LINE 10 "./src-ag/InterfacesRules.lag" #-} import I...
norm2782/uuagc
src-generated/InterfacesRules.hs
bsd-3-clause
64,297
0
21
19,112
12,735
7,171
5,564
999
9
{-# LANGUAGE TypeSynonymInstances, FlexibleInstances #-} {-# OPTIONS_GHC -fno-warn-orphans #-} -- ^ -- Original location https://github.com/nh2/aesonbson/blob/master/Data/AesonBson/Instances.hs -- ^ Provides @ToJSON@ instances for BSON @Value@s and @Document@s. module Data.AesonBson.Instances where import Data.Aeson...
gabesoft/kapi
src/Data/AesonBson/Instances.hs
bsd-3-clause
443
0
6
52
47
32
15
8
0
-- vim:sw=2:ts=2:expandtab:autoindent {- | Module : Math.SMT.Yices.Pipe Copyright : (c) 2009 by Ki Yung Ahn License : BSD3 Maintainer : Ahn, Ki Yung <kya@pdx.edu> Stability : provisional Portability : portable Inter-process communication to Yices through pipe. -} module Math...
pepeiborra/yices-0.0.0.12
Math/SMT/Yices/Pipe.hs
bsd-3-clause
4,875
0
17
1,240
1,180
627
553
69
4
{-# LANGUAGE MagicHash #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeOperators #-} import Java import Control.Applicative import Options import Data.Aeson import Data.Aeson.TH import Network.Wai import Network.Wai.Handler.Warp import Servant data User = User { userId ...
JulianZhang/eta-example
src/Main.hs
bsd-3-clause
1,399
15
10
288
359
192
167
-1
-1
module D1Lib where import Text.Megaparsec import Text.Megaparsec.String import Text.Megaparsec.Char import Text.Megaparsec.Lexer as L type ParseResult = Either (ParseError Char Dec) [Integer] wrapl :: a -> [a] wrapl = replicate 1 digit :: Parser Integer digit = read <$> (wrapl <$> digitChar) parser :: Parser [Inte...
wfleming/advent-of-code-2016
2017/D1/src/D1Lib.hs
bsd-3-clause
845
0
9
171
366
201
165
26
2
module Main where --Main import CAProtoMain (caEntity_CA) import ProtoMonad import ProtoTypes import ProtoActions import VChanUtil import TPMUtil import Keys import ProtoTypes(Channel) import Prelude import Data.ByteString.Lazy hiding (putStrLn, head, tail, map) import qualified Data.Map as M import System.IO import...
armoredsoftware/protocol
tpm/mainline/protoMonad/CAMain.hs
bsd-3-clause
3,184
0
12
729
445
244
201
45
2
module Test.Tup(main) where import Development.Shake import Development.Shake.Config import Development.Shake.FilePath import Development.Shake.Util import Test.Type import Data.Maybe import Control.Monad import System.Info.Extra -- Running ar on Mac seems to break in CI - not sure why main = testBuild (unless isMa...
ndmitchell/shake
src/Test/Tup.hs
bsd-3-clause
1,537
0
20
435
505
244
261
33
1
{-# LANGUAGE DoAndIfThenElse #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE ScopedTypeVariables #-} module Language.K3.Runtime.Dataspace.Test (tests) where import Control.Monad import Control.Monad.Trans.Either import Data.List import Data.Maybe import Test.HUnit hiding (Test) import Test.Framework.Providers.API...
DaMSL/K3
test/Language/K3/Runtime/Dataspace/Test.hs
apache-2.0
10,707
0
20
2,329
3,520
1,724
1,796
219
7
{-# LANGUAGE FlexibleInstances, ExistentialQuantification, MultiParamTypeClasses #-} -- | -- Module : Scion.Server.ConnectionIO -- License : BSD-style -- -- Maintainer : marco-oweber@gmx.de -- Stability : experimental -- Portability : portable -- -- Abstraction over Socket and Handle IO. module Scion.Serve...
CristhianMotoche/scion
server/Scion/Server/ConnectionIO.hs
bsd-3-clause
3,491
0
19
953
1,085
552
533
76
1
{-# Language GADTs, NoMonomorphismRestriction #-} module Midi.TimeSet ( normalize ) where import Data.Set (fromAscList, toAscList, unions) import Control.Arrow ((>>>)) normalize :: (Ord b, Ord a, Num a) => [[(a, b)]] -> [(a, b)] normalize = map absolute >>> norm >>> relative norm :: (Eq x, Ord x, Eq y, Ord y) => [[...
beni55/Midi
src/Midi/TimeSet.hs
bsd-3-clause
569
0
9
114
331
190
141
13
1
module Grammatik.Grace -- Grammatik mit Trace -- -- $Id$ where import Language import Grammatik
Erdwolf/autotool-bonn
src/Grammatik/Grace.hs
gpl-2.0
102
0
3
20
14
10
4
3
0
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# L...
kim/amazonka
amazonka-redshift/gen/Network/AWS/Redshift/DescribeClusterVersions.hs
mpl-2.0
7,276
0
12
1,516
812
488
324
86
1
{-# LANGUAGE LambdaCase #-} {-# LANGUAGE MultiWayIf #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} module Lazyfoo.Lesson18 (main) where import Prelude hiding (any, mapM_) import Control.Applicative import Control.Monad hiding (mapM_) import Data.Foldable import Data.Maybe import Foreign.C.Type...
bj4rtmar/sdl2
examples/lazyfoo/Lesson18.hs
bsd-3-clause
3,449
0
21
848
978
471
507
89
6
-- | -- Module : $Header$ -- Copyright : (c) 2013-2015 Galois, Inc. -- License : BSD3 -- Maintainer : cryptol@galois.com -- Stability : provisional -- Portability : portable -- -- Assumes that the `NoPat` pass has been run. {-# LANGUAGE CPP #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE PatternG...
beni55/cryptol
src/Cryptol/TypeCheck/Infer.hs
bsd-3-clause
28,607
0
23
10,291
9,831
4,871
4,960
598
30
-- | Spectral functions module Csound.Air.Spec( toSpec, fromSpec, mapSpec, scaleSpec, addSpec, scalePitch, CrossSpec(..), crossSpecFilter, crossSpecVocoder, crossSpecFilter1, crossSpecVocoder1 ) where import Data.Default import Csound.Typed import Csound.Typed.Opcode import Csound.Tab(sine) ---------...
isomorphism/csound-expression
src/Csound/Air/Spec.hs
bsd-3-clause
4,168
20
13
800
870
500
370
60
1
tick y = y:tock y tock y = y:tick y
themattchan/tandoori
input/mutual.hs
bsd-3-clause
36
0
6
10
31
14
17
2
1
{-# LANGUAGE Trustworthy #-} {-# LANGUAGE BangPatterns #-} {-# LANGUAGE CPP #-} {-# LANGUAGE ConstraintKinds #-} {-# LANGUAGE DataKinds #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MagicHash #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE Standa...
AlexanderPankiv/ghc
libraries/base/Data/Typeable/Internal.hs
bsd-3-clause
16,598
0
15
4,310
3,717
2,064
1,653
266
3
myEqual :: Eq a => a -> a -> Bool myEqual x y = if x == y then True else False foon :: Bool -> Bool -> Bool -> Bool foon a b c = let testName1 = myEqual a b testName2 = myEqual b c in testName1 && testName2
keithodulaigh/Hets
Haskell/test/HOL/ex_let.hs
gpl-2.0
213
0
9
57
102
51
51
7
2
import Test.Cabal.Prelude hiding (cabal) import qualified Test.Cabal.Prelude as P -- See #4332, dep solving output is not deterministic main = cabalTest . recordMode DoNotRecord $ do fails $ cabal "new-build" [] cabal "new-build" ["--allow-older"] fails $ cabal "new-build" ["--allow-older=baz,quux"] cab...
mydaum/cabal
cabal-testsuite/PackageTests/AllowOlder/cabal.test.hs
bsd-3-clause
1,476
0
10
327
310
158
152
26
1
main :: IO () main = asdf
MichielDerhaeg/stack
test/integration/tests/1659-skip-component/files/test/Spec.hs
bsd-3-clause
26
0
6
7
16
8
8
2
1
-- (c) 2007 Andy Gill module HpcFlags where import System.Console.GetOpt import qualified Data.Set as Set import Data.Char import Trace.Hpc.Tix import Trace.Hpc.Mix import System.Exit import System.FilePath data Flags = Flags { outputFile :: String , includeMods :: Set.Set String , excludeMods...
wxwxwwxxx/ghc
utils/hpc/HpcFlags.hs
bsd-3-clause
9,605
0
13
3,325
2,427
1,350
1,077
182
4
module ShouldFail where -- !!! Testing duplicate type variables type T a a = Either a a
urbanslug/ghc
testsuite/tests/module/mod23.hs
bsd-3-clause
88
0
5
17
18
12
6
2
0
module Hesh ( sh, cmd, (|>), (/>), (!>), (&>), (</), (/>>), (!>>), (&>>), (<//), (.=) , passThrough ) where import Hesh.Process import Hesh.Shell
jekor/hesh
lib/Hesh.hs
mit
171
0
4
48
75
56
19
4
0
module Development.Duplo.Utilities where import Control.Applicative ((<$>)) import Control.Lens.Operators import Control.Monad (filterM, zipWithM) import Control.Monad.IO.Class (MonadIO) import Control.Monad.Trans.Class (lift) i...
pixbi/duplo
src/Development/Duplo/Utilities.hs
mit
9,270
0
15
2,482
1,850
983
867
135
2
{-# OPTIONS_GHC -fno-warn-orphans #-} module Graphics.Urho3D.Math.Vector4( Vector4(..) , HasX(..) , HasY(..) , HasZ(..) , HasW(..) , vector4Context ) where import qualified Language.C.Inline as C import qualified Language.C.Inline.Cpp as C import Control.Lens import Data.Monoid import Foreign impor...
Teaspot-Studio/Urho3D-Haskell
src/Graphics/Urho3D/Math/Vector4.hs
mit
2,945
0
12
621
1,151
620
531
-1
-1
{-# LANGUAGE BangPatterns #-} module Language.HAsm.Types ( module Data.Word, module Data.Int, module Language.HAsm.X86.CPU, -- routines: safeHead, int, toInt32, immToW, immToB, isWord8, HasmStatement(..), Directive(..), ParseResult, HasmStmtWithPos, SrcPos(..) ) where import Data.Word import Data.Int ...
EarlGray/hasm
src/Language/HAsm/Types.hs
mit
4,072
0
10
862
1,075
611
464
113
1
-- Find the odd int -- http://www.codewars.com/kata/54da5a58ea159efa38000836/ module Codewars.Kata.FindOdd where import Data.List (sort, group) findOdd :: [Int] -> Int findOdd = head . head . filter (odd . length) . group . sort
gafiatulin/codewars
src/6 kyu/FindOdd.hs
mit
232
0
10
36
65
38
27
4
1
{-# LANGUAGE OverloadedStrings #-} {-| Module : HSat.Problem.Instances.CNF.Parser.Internal Description : Helper functions for parsing CNF files Copyright : (c) Andrew Burnett 2014-2015 Maintainer : andyburnett88@gmail.com Stability : experimental Portability : Unknown Exports a set of internally use...
aburnett88/HSat
src/HSat/Problem/Instances/CNF/Parser/Internal.hs
mit
3,495
0
15
746
699
368
331
55
1
{-# LANGUAGE LambdaCase #-} module Main(main) where import Parse import Write main :: IO () main = do specHtml <- getContents parseSpec specHtml >>= \case Nothing -> error "Unable to extract spec from html" Just spec -> writeSpecToFiles "SpirV" spec
expipiplus1/spir-v
generate/src/Main.hs
mit
274
0
11
64
73
37
36
10
2
module ProjectEuler.Problem106 ( problem ) where import Control.Monad import Data.Monoid import Petbox import qualified Data.List.Ordered as LOrdered import ProjectEuler.Types problem :: Problem problem = pureProblem 106 Solved result {- Looks like we should expect this to be a difficult one. But I blame t...
Javran/Project-Euler
src/ProjectEuler/Problem106.hs
mit
4,629
0
14
1,136
541
286
255
38
1
{-# LANGUAGE StandaloneDeriving #-} module GestionEvents ( space , parseEvents , keyDown , firing , rebooting ) where import Prelude hiding ((.), id, null, filter, until) import Control.Wire hiding (empty) import Control.Wire.Unsafe.Event as Event import FRP.Netwire hiding (empty) import Data.Monoid (Monoid) import Da...
hardkey/Netwire5-shmup-prototype
src/GestionEvents.hs
mit
1,532
0
12
271
481
263
218
38
4
{-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeSynonymInstances #-} module PostgREST.DbStructure ( getDbStructure , accessibleTables , doesProcExist , doesProcReturnJWT ) where import qualif...
league/postgrest
src/PostgREST/DbStructure.hs
mit
30,824
0
19
8,187
3,840
2,034
1,806
201
3
{-# LANGUAGE PatternSynonyms, ForeignFunctionInterface, JavaScriptFFI #-} module GHCJS.DOM.JSFFI.Generated.MediaSource (js_newMediaSource, newMediaSource, js_addSourceBuffer, addSourceBuffer, js_removeSourceBuffer, removeSourceBuffer, js_endOfStream, endOfStream, js_isTypeSupported, isTypeSupport...
manyoo/ghcjs-dom
ghcjs-dom-jsffi/src/GHCJS/DOM/JSFFI/Generated/MediaSource.hs
mit
5,611
68
11
862
1,148
644
504
85
1
{-# LANGUAGE OverloadedStrings, LambdaCase, FlexibleInstances, OverloadedLists, TypeSynonymInstances, FlexibleContexts #-} module Language.Rowling.Definitions.Types where import qualified Prelude as P import Data.Char (isLower) import qualified Data.HashMap.Strict as H import Data.Text (Text...
thinkpad20/rowling
src/Language/Rowling/Definitions/Types.hs
mit
8,002
0
16
1,879
2,229
1,159
1,070
143
5
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-stage-accesslogsettings.html module Stratosphere.ResourceProperties.ApiGatewayV2StageAccessLogSe...
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/ApiGatewayV2StageAccessLogSettings.hs
mit
2,241
0
12
205
264
151
113
27
1
{- | Module : $Header$ Description : SMT interface for set comparison Copyright : (c) Ewaryst Schulz, DFKI Bremen 2010 License : GPLv2 or higher, see LICENSE.txt Maintainer : ewaryst.schulz@dfki.de Stability : experimental Portability : portable This module defines an interface to the SMT solver ...
nevrenato/Hets_Fork
CSL/SMTComparison.hs
gpl-2.0
8,722
0
15
2,598
1,622
855
767
104
6
module Logic.PropositionalLogic.Resolution where import Control.Monad (forM_, unless) import Notes hiding (color, directed, not, (=:)) import Data.Maybe ...
NorfairKing/the-notes
src/Logic/PropositionalLogic/Resolution.hs
gpl-2.0
6,303
0
26
2,104
2,146
1,104
1,042
131
10
{-# language OverlappingInstances #-} module Inter.Collector where import Inter.Types import Data.Tree import qualified Blank import qualified Upload import qualified PCProblem.Quiz import qualified Boolean.Instance import qualified Boolean.Quiz import qualified Boolean2.Instance import qualified Boolean2.Quiz impo...
marcellussiegburg/autotool
collection/src/Inter/Collector.hs
gpl-2.0
27,210
68
16
9,490
5,067
2,976
2,091
584
1
{-# language DeriveDataTypeable, TemplateHaskell #-} {-# language TypeFamilies #-} {-# language FlexibleInstances #-} {-# language ScopedTypeVariables #-} module Bank where import Spieler import qualified Data.Map as M import Text.PrettyPrint.HughesPJ import Data.List ( sortBy ) import Data.Ord ( comparing ) import...
jwaldmann/mex
src/Bank.hs
gpl-3.0
2,154
0
17
646
679
353
326
57
1
module Main where import HEP.Util.Table s1 :: Table Int s1 = singletonTable 1 s2 = singletonTable 2 main :: IO () main = do putStrLn "table test" let x = (s1 <|> s2 <|> s1) y = (s1 <|> s1 ) print (x <-> y) print (resizeRow 3 [[Just 3]]) -- putStrLn (showLaTeX ((s1 <-> s2) <|> s1))
wavewave/lhc-analysis-collection
exe/tabletest.hs
gpl-3.0
308
0
12
84
124
64
60
12
1
m :: c -> (a, b) m x = (p x, q x)
hmemcpy/milewski-ctfp-pdf
src/content/1.5/code/haskell/snippet19.hs
gpl-3.0
33
0
6
12
36
19
17
2
1
-- 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/MEnv/GLFW/MEnv.hs
gpl-3.0
1,804
3
10
374
254
150
104
26
0
module Main where import HLocate.Options (Opts (..), parseOpts) import Shared.File (File (..)) import Control.Monad (liftM2) import Control.Monad.Trans.Reader (ReaderT, asks, runReaderT) import Control.Lens (view) import Pipes import Pipes.Binary (decoded) import System.IO (withFile, IOMode (..), Handle) import qual...
crossroads1112/hlocate
src/HLocate.hs
gpl-3.0
1,349
0
19
388
473
251
222
30
1
{-# LANGUAGE DataKinds #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE TypeOperators ...
brendanhay/gogol
gogol-appstate/gen/Network/Google/Resource/AppState/States/Update.hs
mpl-2.0
4,102
0
14
927
489
292
197
75
1
func :: Trither lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd (lkasdlkjalsdjlakjsdlkjasldkjalskdjlkajsd -> asd)
lspitzner/brittany
data/Test18.hs
agpl-3.0
171
0
7
31
20
10
10
5
0
module Data.GI.CodeGen.Constant ( genConstant ) where #if !MIN_VERSION_base(4,8,0) import Control.Applicative ((<$>)) #endif import Data.Monoid ((<>)) import Data.Text (Text) import Data.GI.CodeGen.API import Data.GI.CodeGen.Code import Data.GI.CodeGen.Conversions import Data.GI.CodeGen.Haddock (deprecatedPr...
ford-prefect/haskell-gi
lib/Data/GI/CodeGen/Constant.hs
lgpl-2.1
4,605
0
16
1,082
1,186
601
585
81
3
{-# LANGUAGE DataKinds #-} {-# LANGUAGE GADTs #-} {-# LANGUAGE KindSignatures #-} {-# LANGUAGE Rank2Types #-} {-# LANGUAGE Trustworthy #-} -- | A container for keeping values of various types together. module System.Hurtle.TypedStore ( Id(), Mode(..), TypedStore() , typedStore, insert, lookup,...
bens/hurtle
src/System/Hurtle/TypedStore.hs
apache-2.0
1,816
0
10
475
689
365
324
38
1
{-# Hey #-} {-# LANGUAGE OhMyGod #-} {-# OPTIONS_GHC --omG #-}
rikvdkleij/intellij-haskell
src/test/testData/parsing-hs/Pragma.hs
apache-2.0
63
0
2
11
5
4
1
2
0
module TransCFSpec (transSpec, testConcreteSyn) where import BackEnd import FrontEnd (source2core) import JavaUtils (getClassPath) import MonadLib import OptiUtils (Exp(Hide)) import PartialEvaluator (rewriteAndEval) import SpecHelper import StringPrefixes (namespace) import StringUtils (capitalize) import TestTerms ...
bixuanzju/fcore
testsuite/TransCFSpec.hs
bsd-2-clause
3,136
0
20
717
899
476
423
68
2
{-- Copyright (c) 2014-2020, Clockwork Dev Studio All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions a...
clockworkdevstudio/Idlewild-Lang
Assembler.hs
bsd-2-clause
4,077
0
23
1,089
580
294
286
49
4
-- base import Control.Concurrent (threadDelay) import Control.Monad (forM, forM_, when) import Data.Char (isAscii) import Data.List (intercalate, isPrefixOf) import Foreign.C.String (peekCString, withCString) import Foreign.C.Types (CDouble(..)) import Foreign.Marshal.Allo...
bsl/bindings-GLFW
Test.hs
bsd-2-clause
31,062
0
20
8,174
6,901
3,360
3,541
651
4
{-# LANGUAGE DataKinds, EmptyDataDecls, TypeOperators, UndecidableInstances #-} module HaskHOL.Lib.Pair.Context ( PairType , PairThry , PairCtxt , ctxtPair ) where import HaskHOL.Core import HaskHOL.Deductive hiding (newDefinition) import qualified HaskHOL.Deductive as D (newDefinition) import Has...
ecaustin/haskhol-math
src/HaskHOL/Lib/Pair/Context.hs
bsd-2-clause
3,729
1
15
1,380
789
487
302
-1
-1
{-# OPTIONS -fglasgow-exts #-} ----------------------------------------------------------------------------- {-| Module : QTableWidget.hs Copyright : (c) David Harley 2010 Project : qtHaskell Version : 1.1.4 Modified : 2010-09-02 17:02:26 Warning : this file is machine generated - do ...
keera-studios/hsQt
Qtc/Gui/QTableWidget.hs
bsd-2-clause
108,770
0
15
16,741
34,440
17,499
16,941
-1
-1
module Common ( BaseGene(..) , CoupleGene(..) , replaceAtIndex , boxMuller , InBounds , FitnessFunction(..) , GeneFormat(..) , StartPopulation(..) , calcFitness , mutateStandard , mutateGauss , evolve , generate ) where -- the (..) also exports the constructor im...
mezzomondo/dejong
src/Common.hs
bsd-3-clause
8,238
0
16
1,890
2,288
1,221
1,067
130
3
-- | An index function represents a mapping from an array index space -- to a flat byte offset. module Futhark.Representation.ExplicitMemory.IndexFunction ( IxFun(..) , index , iota , offsetIndex , strideIndex , permute , reshape , applyInd , base ...
CulpaBS/wbBach
src/Futhark/Representation/ExplicitMemory/IndexFunction.hs
bsd-3-clause
9,785
0
17
2,352
3,469
1,698
1,771
251
6
{-# LANGUAGE TypeOperators, DataKinds, TypeFamilies, NoMonomorphismRestriction #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} module Tests.OffSystemCSU where import Data.Metrology.Poly import Data.Metrology.SI import qualified Data.Dimensions.SI as D import Test.Tasty.HUnit import Test.HUnit.Approx type YardP...
goldfirere/units
units-test/Tests/OffSystemCSU.hs
bsd-3-clause
783
0
9
134
220
127
93
25
1
{-# LANGUAGE NoMonomorphismRestriction #-} import Control.Monad (zipWithM) import Diagrams.Prelude import Diagrams.TwoD.Text import Diagrams.Backend.SVG data LabelProps = LabelProps { lFontSize :: Double , lFontSlant :: FontSlant , lStrutWidth :: Double , lStrutHeight :: Double } data CurveProps ...
kowey/conceptdiagram-examples
conceptdiagram-examples.hs
bsd-3-clause
4,007
0
12
928
1,200
648
552
100
1
[(Call, Env aam, Store d aam, Time aam)]
davdar/quals
writeup-old/sections/04MonadicAAM/04Optimizations/00Widen/00BeforeSS.hs
bsd-3-clause
41
0
7
8
30
15
15
-1
-1
{-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE FunctionalDependencies #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE RankNTypes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE UndecidableInstances #-} -- | -- Module : ...
mainland/nikola
src/Data/Array/Nikola/Language/Monad.hs
bsd-3-clause
6,454
0
17
2,087
2,406
1,258
1,148
177
3
-- Copyright (c) 2016-present, Facebook, Inc. -- All rights reserved. -- -- This source code is licensed under the BSD-style license found in the -- LICENSE file in the root directory of this source tree. {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE NoRebindableSyntax #-} module Duckli...
facebookincubator/duckling
Duckling/Region.hs
bsd-3-clause
932
0
7
223
191
122
69
41
0
{-# OPTIONS -fno-implicit-prelude #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Either -- Copyright : (c) The University of Glasgow 2001 -- License : BSD-style (see the file libraries/base/LICENSE) -- -- Maintainer : libraries@haskell.org -- Sta...
OS2World/DEV-UTIL-HUGS
libraries/Data/Either.hs
bsd-3-clause
609
0
5
106
33
27
6
4
0
{-# LANGUAGE PatternSynonyms #-} -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.EXT.TextureSwizzle -- Copyright : (c) Sven Panne 2019 -- License : BSD3 -- -- Maintainer : Sven Panne <svenpanne@gmail.com> -- Stability : stable -- Portabili...
haskell-opengl/OpenGLRaw
src/Graphics/GL/EXT/TextureSwizzle.hs
bsd-3-clause
806
0
5
107
67
48
19
11
0
{-# LANGUAGE TypeApplications #-} module Database.PostgreSQL.PQTypes.JSON ( JSON(..) , JSONB(..) , aesonFromSQL , aesonToSQL ) where import Data.Aeson import Foreign.Ptr import qualified Control.Exception as E import qualified Data.ByteString.Char8 as BS import qualified Data.ByteString.Lazy.Char8 as BSL im...
scrive/hpqtypes
src/Database/PostgreSQL/PQTypes/JSON.hs
bsd-3-clause
2,970
0
13
516
871
474
397
-1
-1
{-# OPTIONS_GHC -fno-warn-tabs #-} import Common main = putStrLn "=== Challange15 ===" -- Challange done in library code
andrewcchen/matasano-cryptopals-solutions
set2/Challange15.hs
bsd-3-clause
124
0
5
21
14
8
6
3
1
module Koriel.Core.LambdaLift ( lambdalift, ) where import Control.Lens (At (at), Lens', lens, traverseOf, traversed, use, (<>=), (?=)) import qualified Data.HashMap.Strict as HashMap import qualified Data.HashSet as HashSet import Koriel.Core.Flat import Koriel.Core.Syntax import Koriel.Core.Type import Koriel.Id...
takoeight0821/malgo
src/Koriel/Core/LambdaLift.hs
bsd-3-clause
3,195
0
20
631
1,396
709
687
-1
-1
module Day7 where import Data.List import qualified Data.List.Split as LS data IP = IP { normal :: [String], hyper :: [String] } deriving Show parseIP :: String -> IP parseIP s = let (normal,hyper) = foldr (\y ~(xs,ys) -> (y:ys,xs)) ([],[]) ss ss = LS.splitOneOf "[]" s in IP normal hyp...
MarcelineVQ/advent2016
src/Day7.hs
bsd-3-clause
1,280
0
14
293
566
306
260
32
1
module Cache ( File , CacheSize , CacheStatistic , getCacheStatistic , calculateHits , Cache (..) , fits , WriteStrategy (..) , biggerAsMax ) where import Prelude hiding (fail) import Request type File = (FileID, FileSize) type CacheSize = Int type Ca...
wochinge/CacheSimulator
src/Cache.hs
bsd-3-clause
3,106
0
10
612
1,008
565
443
68
1
module Main where import qualified Bot main :: IO () main = Bot.run
wimdu/alonzo
src/Main.hs
mit
70
0
6
15
25
15
10
4
1