Search is not available for this dataset
repo_name
string
path
string
license
string
full_code
string
full_size
int64
uncommented_code
string
uncommented_size
int64
function_only_code
string
function_only_size
int64
is_commented
bool
is_signatured
bool
n_ast_errors
int64
ast_max_depth
int64
n_whitespaces
int64
n_ast_nodes
int64
n_ast_terminals
int64
n_ast_nonterminals
int64
loc
int64
cycloplexity
int64
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_HARDLIGHT_KHR :: GLenum gl_HARDLIGHT_KHR = 0x929B
52
gl_HARDLIGHT_KHR :: GLenum gl_HARDLIGHT_KHR = 0x929B
52
gl_HARDLIGHT_KHR = 0x929B
25
false
true
0
4
5
11
6
5
null
null
brendanhay/gogol
gogol-cloudprivatecatalogproducer/gen/Network/Google/CloudPrivateCatalogProducer/Types/Product.hs
mpl-2.0
-- | The \`Product\` returned from the list call. gcpvlprProducts :: Lens' GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse [GoogleCloudPrivatecatalogproducerV1beta1Product] gcpvlprProducts = lens _gcpvlprProducts (\ s a -> s{_gcpvlprProducts = a}) . _Default . _Coerce
301
gcpvlprProducts :: Lens' GoogleCloudPrivatecatalogproducerV1beta1ListProductsResponse [GoogleCloudPrivatecatalogproducerV1beta1Product] gcpvlprProducts = lens _gcpvlprProducts (\ s a -> s{_gcpvlprProducts = a}) . _Default . _Coerce
251
gcpvlprProducts = lens _gcpvlprProducts (\ s a -> s{_gcpvlprProducts = a}) . _Default . _Coerce
115
true
true
3
8
48
59
28
31
null
null
changlinli/nikki
src/Sorts/Tiles/Baking.hs
lgpl-3.0
groupTiles :: [(Animation Pixmap, Qt.Position Double)] -> [Grouped] groupTiles all = let (animationRelated, rest) = groupAnimated all statics = groupStatic rest in animationRelated ++ statics
207
groupTiles :: [(Animation Pixmap, Qt.Position Double)] -> [Grouped] groupTiles all = let (animationRelated, rest) = groupAnimated all statics = groupStatic rest in animationRelated ++ statics
207
groupTiles all = let (animationRelated, rest) = groupAnimated all statics = groupStatic rest in animationRelated ++ statics
139
false
true
0
9
40
71
36
35
null
null
builtinnya/lambdar-website
app/article.hs
mit
getArticle :: Database -> String -> String -> IO (Maybe (Entity Article)) getArticle db lang slug = do runSqlite db $ do res <- E.select $ E.from $ \(article, language) -> do E.where_ (article ^. ArticleSlug E.==. E.val (T.pack slug) E.&&. article ^. ArticleLang E.==. langua...
512
getArticle :: Database -> String -> String -> IO (Maybe (Entity Article)) getArticle db lang slug = do runSqlite db $ do res <- E.select $ E.from $ \(article, language) -> do E.where_ (article ^. ArticleSlug E.==. E.val (T.pack slug) E.&&. article ^. ArticleLang E.==. langua...
512
getArticle db lang slug = do runSqlite db $ do res <- E.select $ E.from $ \(article, language) -> do E.where_ (article ^. ArticleSlug E.==. E.val (T.pack slug) E.&&. article ^. ArticleLang E.==. language ^. LanguageId E.&&. language ^. LanguageSlug E.==. E.val...
438
false
true
0
28
161
210
101
109
null
null
nevrenato/HetsAlloy
Common/Keywords.hs
gpl-2.0
-- * DOL keywords alignArityBackwardS :: String alignArityBackwardS = "align-arity-backward"
93
alignArityBackwardS :: String alignArityBackwardS = "align-arity-backward"
74
alignArityBackwardS = "align-arity-backward"
44
true
true
0
4
10
12
7
5
null
null
timtylin/scholdoc
src/Text/Pandoc/Readers/LaTeX.hs
gpl-2.0
acute 'a' = "á"
15
acute 'a' = "á"
15
acute 'a' = "á"
15
false
false
0
5
3
9
4
5
null
null
koterpillar/labyrinth
src/Labyrinth/Map.hs
mit
advance (Pos x y) U = Pos x (y - 1)
35
advance (Pos x y) U = Pos x (y - 1)
35
advance (Pos x y) U = Pos x (y - 1)
35
false
false
0
7
10
33
15
18
null
null
rueshyna/gogol
gogol-spectrum/gen/Network/Google/Spectrum/Types/Product.hs
mpl-2.0
-- | The geolocation of the master device (a device with geolocation -- capability that makes an available spectrum request) is required whether -- the master device is making the request on its own behalf or on behalf -- of a slave device (one without geolocation capability). The location -- must be the location of th...
792
pgsrLocation :: Lens' PawsGetSpectrumRequest (Maybe GeoLocation) pgsrLocation = lens _pgsrLocation (\ s a -> s{_pgsrLocation = a})
132
pgsrLocation = lens _pgsrLocation (\ s a -> s{_pgsrLocation = a})
67
true
true
1
9
132
61
34
27
null
null
thomkoehler/MiscTools
src/Data/RecordModel/Parser.hs
gpl-2.0
parse :: SourceName -> String -> [Model] parse sourceName' input = case runIndentParser parseModels () sourceName' input of Left err -> error $ show err Right ms -> ms
171
parse :: SourceName -> String -> [Model] parse sourceName' input = case runIndentParser parseModels () sourceName' input of Left err -> error $ show err Right ms -> ms
171
parse sourceName' input = case runIndentParser parseModels () sourceName' input of Left err -> error $ show err Right ms -> ms
130
false
true
3
7
32
58
30
28
null
null
michaelochurch/jatek
Jatek/Actor.hs
mit
purely :: (Monad m) => (a -> b) -> SomeActor m a b purely f = SomeActor $ PureActor f
85
purely :: (Monad m) => (a -> b) -> SomeActor m a b purely f = SomeActor $ PureActor f
85
purely f = SomeActor $ PureActor f
34
false
true
2
9
19
53
25
28
null
null
fredokun/piexplorer
src/Syntax.hs
gpl-3.0
substProc (Mismatch a b p info) env = Mismatch (substName a env) (substName b env) (substProc p env) info
107
substProc (Mismatch a b p info) env = Mismatch (substName a env) (substName b env) (substProc p env) info
107
substProc (Mismatch a b p info) env = Mismatch (substName a env) (substName b env) (substProc p env) info
107
false
false
0
7
20
56
27
29
null
null
et4te/zero
server/src/Zero/ResetToken/Model.hs
bsd-3-clause
getResetTokenById :: SessionId -> Connection -> Text -> IO (Maybe Token) getResetTokenById sid conn uid = do let p = AttributeEqualityPredicate "token_id#" (NakedAtomExpr (TextAtom uid)) let q = Restrict p (RelationVariable "resetToken" ()) rel <- executeRelationalExpr sid conn q case rel of Left err -> ...
548
getResetTokenById :: SessionId -> Connection -> Text -> IO (Maybe Token) getResetTokenById sid conn uid = do let p = AttributeEqualityPredicate "token_id#" (NakedAtomExpr (TextAtom uid)) let q = Restrict p (RelationVariable "resetToken" ()) rel <- executeRelationalExpr sid conn q case rel of Left err -> ...
548
getResetTokenById sid conn uid = do let p = AttributeEqualityPredicate "token_id#" (NakedAtomExpr (TextAtom uid)) let q = Restrict p (RelationVariable "resetToken" ()) rel <- executeRelationalExpr sid conn q case rel of Left err -> error $ show err Right rl -> do let resetTokens = tokensFrom...
475
false
true
0
15
135
182
84
98
null
null
jozefg/ds-kanren
src/Language/DSKanren/Core.hs
mit
-- | Unification cannot need not backtrack so this will either -- universally succeed or failure. Tricksy bit, we don't want to allow -- infinite terms since that can be narly. To preserve reflexivity, we -- have a special check for when we compare a var to itself. This -- doesn't extend the enviroment. With this speci...
853
unify :: Term -> Term -> Sol -> Maybe Sol unify l r sol= case (l, r) of (Atom a, Atom a') | a == a' -> Just sol (Pair h t, Pair h' t') -> unify h h' sol >>= unify t t' (Var i, Var j) | i == j -> Just sol (Var i, t) | i `notIn` t -> Just (extend i t sol) (t, Var i) | i `notIn` t -> Just (extend i t sol) _ ->...
442
unify l r sol= case (l, r) of (Atom a, Atom a') | a == a' -> Just sol (Pair h t, Pair h' t') -> unify h h' sol >>= unify t t' (Var i, Var j) | i == j -> Just sol (Var i, t) | i `notIn` t -> Just (extend i t sol) (t, Var i) | i `notIn` t -> Just (extend i t sol) _ -> Nothing -- | Represents inequalities. @(...
400
true
true
6
8
192
235
119
116
null
null
shouya/thinking-dumps
tsp/TSPLib.hs
mit
yRange :: [Node] -> (Int, Int) yRange = (foldl1' min &&& foldl1' max) . map snd
79
yRange :: [Node] -> (Int, Int) yRange = (foldl1' min &&& foldl1' max) . map snd
79
yRange = (foldl1' min &&& foldl1' max) . map snd
48
false
true
0
8
15
50
24
26
null
null
raventid/coursera_learning
haskell/chapter15/semigroup/app/Main.hs
mit
runExercise11Spec :: IO () runExercise11Spec = quickCheck (semigroupAssoc :: ValidationAssoc)
93
runExercise11Spec :: IO () runExercise11Spec = quickCheck (semigroupAssoc :: ValidationAssoc)
93
runExercise11Spec = quickCheck (semigroupAssoc :: ValidationAssoc)
66
false
true
0
6
9
25
13
12
null
null
stgm/prac-testing
week4/Techniques.hs
mit
parseForm (TokenOP : tokens) = [ (Impl f1 f2, rest) | (f1,ys) <- parseForm tokens, (f2,rest) <- parseImpl ys ] ++ [ (Equiv f1 f2, rest) | (f1,ys) <- parseForm tokens, (f2,rest) <- parseEquiv ys ]
264
parseForm (TokenOP : tokens) = [ (Impl f1 f2, rest) | (f1,ys) <- parseForm tokens, (f2,rest) <- parseImpl ys ] ++ [ (Equiv f1 f2, rest) | (f1,ys) <- parseForm tokens, (f2,rest) <- parseEquiv ys ]
264
parseForm (TokenOP : tokens) = [ (Impl f1 f2, rest) | (f1,ys) <- parseForm tokens, (f2,rest) <- parseImpl ys ] ++ [ (Equiv f1 f2, rest) | (f1,ys) <- parseForm tokens, (f2,rest) <- parseEquiv ys ]
264
false
false
0
9
104
116
62
54
null
null
xcthulhu/lambda-geda
Geda/Parser.hs
gpl-3.0
pLL :: Parser Path pLL = do char 'L' spaces moves <- many pIntP newline return $ LL moves -- Parse combinator for a (relative Line instruction
154
pLL :: Parser Path pLL = do char 'L' spaces moves <- many pIntP newline return $ LL moves -- Parse combinator for a (relative Line instruction
154
pLL = do char 'L' spaces moves <- many pIntP newline return $ LL moves -- Parse combinator for a (relative Line instruction
135
false
true
0
9
38
53
21
32
null
null
jml/language-python
src/Language/Python/Common/StringEscape.hs
bsd-3-clause
-- Backslash (\) unescapeString ('\\':'\'':cs) = '\'' : unescapeString cs
73
unescapeString ('\\':'\'':cs) = '\'' : unescapeString cs
56
unescapeString ('\\':'\'':cs) = '\'' : unescapeString cs
56
true
false
0
7
9
24
12
12
null
null
green-haskell/ghc
compiler/main/Packages.hs
bsd-3-clause
lookupPackage' :: PackageConfigMap -> PackageKey -> Maybe PackageConfig lookupPackage' = lookupUFM
98
lookupPackage' :: PackageConfigMap -> PackageKey -> Maybe PackageConfig lookupPackage' = lookupUFM
98
lookupPackage' = lookupUFM
26
false
true
0
7
10
22
11
11
null
null
gridaphobe/liquid-fixpoint
src/Language/Fixpoint/Solver/Solution.hs
bsd-3-clause
folds :: (a -> b -> (c, a)) -> a -> [b] -> ([c], a) folds f b = L.foldl' step ([], b) where step (cs, acc) x = (c:cs, x') where (c, x') = f acc x
175
folds :: (a -> b -> (c, a)) -> a -> [b] -> ([c], a) folds f b = L.foldl' step ([], b) where step (cs, acc) x = (c:cs, x') where (c, x') = f acc x
175
folds f b = L.foldl' step ([], b) where step (cs, acc) x = (c:cs, x') where (c, x') = f acc x
121
false
true
0
9
67
119
66
53
null
null
dancor/melang
src/ProcZhEnJson.hs
mit
tcAppend (TCSemiNoRep t) tc = tc {tcText = DT.concat [t, "; ", tcText tc]}
74
tcAppend (TCSemiNoRep t) tc = tc {tcText = DT.concat [t, "; ", tcText tc]}
74
tcAppend (TCSemiNoRep t) tc = tc {tcText = DT.concat [t, "; ", tcText tc]}
74
false
false
1
10
13
45
22
23
null
null
vikraman/ghc
compiler/cmm/CLabel.hs
bsd-3-clause
toSlowEntryLbl :: CLabel -> CLabel toSlowEntryLbl (IdLabel n c _) = IdLabel n c Slow
84
toSlowEntryLbl :: CLabel -> CLabel toSlowEntryLbl (IdLabel n c _) = IdLabel n c Slow
84
toSlowEntryLbl (IdLabel n c _) = IdLabel n c Slow
49
false
true
0
7
14
35
17
18
null
null
GaloisInc/HaNS
src/Hans/IP4/Fragments.hs
bsd-3-clause
newFragTable :: Config -> IO FragTable newFragTable Config { .. } = do ftEntries <- HT.newHashTable 31 ftPurgeThread <- forkNamed "IP4 Fragment Purge Thread" (purgeEntries cfgIP4FragTimeout ftEntries) return FragTable { ftDuration = cfgIP4FragTimeout, .. }
298
newFragTable :: Config -> IO FragTable newFragTable Config { .. } = do ftEntries <- HT.newHashTable 31 ftPurgeThread <- forkNamed "IP4 Fragment Purge Thread" (purgeEntries cfgIP4FragTimeout ftEntries) return FragTable { ftDuration = cfgIP4FragTimeout, .. }
298
newFragTable Config { .. } = do ftEntries <- HT.newHashTable 31 ftPurgeThread <- forkNamed "IP4 Fragment Purge Thread" (purgeEntries cfgIP4FragTimeout ftEntries) return FragTable { ftDuration = cfgIP4FragTimeout, .. }
259
false
true
7
7
76
66
36
30
null
null
rsasse/tamarin-prover
lib/theory/src/Theory/Text/Parser/Token.hs
gpl-3.0
-- | The multiplication operator @*@. opMult :: Parser () opMult = symbol_ "*"
78
opMult :: Parser () opMult = symbol_ "*"
40
opMult = symbol_ "*"
20
true
true
0
6
13
20
10
10
null
null
ganeti-github-testing/ganeti-test-1
src/Ganeti/WConfd/Monad.hs
bsd-2-clause
modifyConfigDataErr_ :: (TempResState -> ConfigData -> AtomicModifyMonad ConfigData) -> WConfdMonad () modifyConfigDataErr_ f = modifyConfigStateErr_ (traverseOf csConfigDataL . f)
186
modifyConfigDataErr_ :: (TempResState -> ConfigData -> AtomicModifyMonad ConfigData) -> WConfdMonad () modifyConfigDataErr_ f = modifyConfigStateErr_ (traverseOf csConfigDataL . f)
186
modifyConfigDataErr_ f = modifyConfigStateErr_ (traverseOf csConfigDataL . f)
79
false
true
0
10
24
54
25
29
null
null
TomMD/ghc
compiler/utils/Outputable.hs
bsd-3-clause
-- E.g. "he has none" speakN 1 = ptext (sLit "one")
52
speakN 1 = ptext (sLit "one")
29
speakN 1 = ptext (sLit "one")
29
true
false
0
7
11
19
9
10
null
null
sjoerdvisscher/icfp2011
src/Brain/Mirror.hs
bsd-3-clause
mirrorBrain :: Brain mirrorBrain = toBrain $ forever $ lastOpponentMove >>= move . fromMaybe nop
98
mirrorBrain :: Brain mirrorBrain = toBrain $ forever $ lastOpponentMove >>= move . fromMaybe nop
98
mirrorBrain = toBrain $ forever $ lastOpponentMove >>= move . fromMaybe nop
77
false
true
2
6
16
37
16
21
null
null
allonsy/chatServer
test/TestChat.hs
mit
getUserName :: Handle -> IO Char getUserName hand = do _ <- hGetLine hand _ <- hGetLine hand str3 <- hGetLine hand return $ head str3 --ensures that users already in the channel see the proper --"N has joined" message when a user joins
252
getUserName :: Handle -> IO Char getUserName hand = do _ <- hGetLine hand _ <- hGetLine hand str3 <- hGetLine hand return $ head str3 --ensures that users already in the channel see the proper --"N has joined" message when a user joins
252
getUserName hand = do _ <- hGetLine hand _ <- hGetLine hand str3 <- hGetLine hand return $ head str3 --ensures that users already in the channel see the proper --"N has joined" message when a user joins
219
false
true
0
8
60
63
28
35
null
null
urbanslug/ghc
testsuite/tests/th/T4135a.hs
bsd-3-clause
createInstance' :: Q Type -> Q Dec createInstance' t = liftM head [d| instance Foo $t where type FooType $t = String |]
129
createInstance' :: Q Type -> Q Dec createInstance' t = liftM head [d| instance Foo $t where type FooType $t = String |]
129
createInstance' t = liftM head [d| instance Foo $t where type FooType $t = String |]
94
false
true
0
6
32
33
17
16
null
null
cutsea110/ExitFailure139
Handler/Home.hs
bsd-2-clause
getPostR :: PostId -> Handler RepHtml getPostR pid = do mp <- runDB $ get pid defaultLayout $ do setTitle "display post" $(widgetFile "post")
153
getPostR :: PostId -> Handler RepHtml getPostR pid = do mp <- runDB $ get pid defaultLayout $ do setTitle "display post" $(widgetFile "post")
153
getPostR pid = do mp <- runDB $ get pid defaultLayout $ do setTitle "display post" $(widgetFile "post")
115
false
true
0
12
35
58
25
33
null
null
mpickering/ghc-exactprint
src/Language/Haskell/GHC/ExactPrint/Print.hs
bsd-3-clause
-- AZ:TODO: harvest the commonality between this and printStringAtLsDelta printQueuedComment :: (Monad m, Monoid w) => Comment -> DeltaPos -> EP w m () printQueuedComment Comment{commentContents} dp = do p <- getPos colOffset <- getLayoutOffset let (dr,dc) = undelta (0,0) dp colOffset -- do not lose comments ag...
762
printQueuedComment :: (Monad m, Monoid w) => Comment -> DeltaPos -> EP w m () printQueuedComment Comment{commentContents} dp = do p <- getPos colOffset <- getLayoutOffset let (dr,dc) = undelta (0,0) dp colOffset -- do not lose comments against the left margin when (isGoodDelta (DP (dr,max 0 dc))) (do ...
688
printQueuedComment Comment{commentContents} dp = do p <- getPos colOffset <- getLayoutOffset let (dr,dc) = undelta (0,0) dp colOffset -- do not lose comments against the left margin when (isGoodDelta (DP (dr,max 0 dc))) (do printCommentAt (undelta p dp colOffset) commentContents let commentDP@...
610
true
true
0
17
151
240
123
117
null
null
k0001/gtk2hs
tools/c2hs/gen/GenBind.hs
gpl-3.0
(CDecl _ [(Just declr, _, _)] _) `declNamed` ide = declr `declrNamed` ide
73
(CDecl _ [(Just declr, _, _)] _) `declNamed` ide = declr `declrNamed` ide
73
(CDecl _ [(Just declr, _, _)] _) `declNamed` ide = declr `declrNamed` ide
73
false
false
0
10
12
45
25
20
null
null
ian-ross/c2hs-macos-test
c2hs-0.26.1/src/C2HS/Gen/Bind.hs
mit
boolArg :: ExtType -> Bool boolArg (PrimET CBoolPT) = True
58
boolArg :: ExtType -> Bool boolArg (PrimET CBoolPT) = True
58
boolArg (PrimET CBoolPT) = True
31
false
true
0
7
9
24
12
12
null
null
jrockway/c2hs
src/C2HS/C/Names.hs
gpl-2.0
naCExpr (CAssign _ expr1 expr2 _) = naCExpr expr1 >> naCExpr expr2
74
naCExpr (CAssign _ expr1 expr2 _) = naCExpr expr1 >> naCExpr expr2
74
naCExpr (CAssign _ expr1 expr2 _) = naCExpr expr1 >> naCExpr expr2
74
false
false
0
6
19
32
14
18
null
null
Fuuzetsu/lens
src/Control/Lens/Fold.hs
bsd-3-clause
-- | Map a function over all the targets of a 'Fold' of a container and concatenate the resulting lists. -- -- >>> concatMapOf both (\x -> [x, x + 1]) (1,3) -- [1,2,3,4] -- -- @ -- 'concatMap' ≡ 'concatMapOf' 'folded' -- @ -- -- @ -- 'concatMapOf' :: 'Getter' s a -> (a -> [r]) -> s -> [r] -- 'concatMapOf' :: 'Fold'...
673
concatMapOf :: Profunctor p => Accessing p [r] s a -> p a [r] -> s -> [r] concatMapOf l ces = getConst #. l (Const #. ces)
122
concatMapOf l ces = getConst #. l (Const #. ces)
48
true
true
0
9
167
88
52
36
null
null
holzensp/ghc
compiler/codeGen/StgCmmPrim.hs
bsd-3-clause
vecCmmCat :: PrimOpVecCat -> Width -> CmmType vecCmmCat IntVec = cmmBits
74
vecCmmCat :: PrimOpVecCat -> Width -> CmmType vecCmmCat IntVec = cmmBits
74
vecCmmCat IntVec = cmmBits
28
false
true
0
6
12
22
11
11
null
null
danr/hipspec
examples/old-examples/quickspec/Lists3.hs
gpl-3.0
headS (Append x y) = headS x
28
headS (Append x y) = headS x
28
headS (Append x y) = headS x
28
false
false
0
7
6
20
9
11
null
null
bruno-cadorette/TheLambdaReactor
src/Backend/Reactive.hs
mit
fps:: Int -> MomentIO (Event UTCTime) fps frame = do (eTime, fireTime) <- newEvent void $ liftIO . forkIO . forever $ threadDelay frame >> getCurrentTime >>= fireTime return eTime {- This function should be used just before reactimate to map your output. -}
286
fps:: Int -> MomentIO (Event UTCTime) fps frame = do (eTime, fireTime) <- newEvent void $ liftIO . forkIO . forever $ threadDelay frame >> getCurrentTime >>= fireTime return eTime {- This function should be used just before reactimate to map your output. -}
286
fps frame = do (eTime, fireTime) <- newEvent void $ liftIO . forkIO . forever $ threadDelay frame >> getCurrentTime >>= fireTime return eTime {- This function should be used just before reactimate to map your output. -}
248
false
true
0
13
72
82
38
44
null
null
sherwoodwang/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxALIGN_CENTER_HORIZONTAL :: Int wxALIGN_CENTER_HORIZONTAL = 256
64
wxALIGN_CENTER_HORIZONTAL :: Int wxALIGN_CENTER_HORIZONTAL = 256
64
wxALIGN_CENTER_HORIZONTAL = 256
31
false
true
0
6
5
18
7
11
null
null
yav/allegro
examples/hs/clicks.hs
bsd-3-clause
enQ :: (Int,Int) -> [Thing] -> [Thing] enQ (x,y) xs = Thing { pos = (fromIntegral x, fromIntegral y), life = 5 } : xs
117
enQ :: (Int,Int) -> [Thing] -> [Thing] enQ (x,y) xs = Thing { pos = (fromIntegral x, fromIntegral y), life = 5 } : xs
117
enQ (x,y) xs = Thing { pos = (fromIntegral x, fromIntegral y), life = 5 } : xs
78
false
true
0
9
24
81
43
38
null
null
andreyLevushkin/LambdaWars
src/WorldRules.hs
mit
- |Max deceleration in pixels per tick per tick maxDeceleration :: Double maxDeceleration = 1
94
maxDeceleration :: Double maxDeceleration = 1
45
maxDeceleration = 1
19
true
true
1
8
15
39
17
22
null
null
GaloisInc/halvm-ghc
compiler/types/Type.hs
bsd-3-clause
-- | Is this a function or forall? isPiTy :: Type -> Bool isPiTy (ForAllTy {}) = True
85
isPiTy :: Type -> Bool isPiTy (ForAllTy {}) = True
50
isPiTy (ForAllTy {}) = True
27
true
true
1
8
17
31
15
16
null
null
Macil-dev/verhface-hl
src/Bindings/Verba/HL/Ops.hs
unlicense
readSignStatus 0 = SIGN_STATUS_CORRECT
38
readSignStatus 0 = SIGN_STATUS_CORRECT
38
readSignStatus 0 = SIGN_STATUS_CORRECT
38
false
false
0
5
3
9
4
5
null
null
Tener/HaNS
src/Hans/Ports.hs
bsd-3-clause
isReserved :: (Eq i, Ord i) => i -> PortManager i -> Bool isReserved i pm = i `Set.member` portActive pm
104
isReserved :: (Eq i, Ord i) => i -> PortManager i -> Bool isReserved i pm = i `Set.member` portActive pm
104
isReserved i pm = i `Set.member` portActive pm
46
false
true
0
9
20
61
29
32
null
null
miguelpagano/equ
Equ/Exercise/Conf.hs
gpl-3.0
typeProofOptionList :: [TypeProof] typeProofOptionList = [Direct, Cases, Induction, Deduction]
94
typeProofOptionList :: [TypeProof] typeProofOptionList = [Direct, Cases, Induction, Deduction]
94
typeProofOptionList = [Direct, Cases, Induction, Deduction]
59
false
true
0
5
8
26
16
10
null
null
theam/haskell-do
src/common/HaskellDo/Toolbar/State.hs
apache-2.0
update CreateNewDirectory state = do let path = newDirectoryPath state exists <- atRemote . localIO $ doesDirectoryExist path unless exists $ atRemote . localIO $ createDirectory path update (NewPath (projectPath state)) state
240
update CreateNewDirectory state = do let path = newDirectoryPath state exists <- atRemote . localIO $ doesDirectoryExist path unless exists $ atRemote . localIO $ createDirectory path update (NewPath (projectPath state)) state
240
update CreateNewDirectory state = do let path = newDirectoryPath state exists <- atRemote . localIO $ doesDirectoryExist path unless exists $ atRemote . localIO $ createDirectory path update (NewPath (projectPath state)) state
240
false
false
0
11
45
82
36
46
null
null
wxwxwwxxx/ghc
testsuite/tests/programs/andy_cherry/DataTypes.hs
bsd-3-clause
castleK = "O-O"
15
castleK = "O-O"
15
castleK = "O-O"
15
false
false
0
4
2
6
3
3
null
null
mpickering/HaRe
src/Language/Haskell/Refact/Refactoring/SwapArgs.hs
bsd-3-clause
-- TODO: replace args with specific parameters swapArgs :: RefactSettings -> Options -> [String] -> IO [FilePath] swapArgs settings opts args = do let fileName = args!!0 row = (read (args!!1)::Int) col = (read (args!!2)::Int) runRefacSession settings opts [Left fileName] (comp fileName (r...
328
swapArgs :: RefactSettings -> Options -> [String] -> IO [FilePath] swapArgs settings opts args = do let fileName = args!!0 row = (read (args!!1)::Int) col = (read (args!!2)::Int) runRefacSession settings opts [Left fileName] (comp fileName (row,col))
281
swapArgs settings opts args = do let fileName = args!!0 row = (read (args!!1)::Int) col = (read (args!!2)::Int) runRefacSession settings opts [Left fileName] (comp fileName (row,col))
214
true
true
0
13
73
127
67
60
null
null
tjakway/ghcjvm
compiler/coreSyn/CoreSyn.hs
bsd-3-clause
isStableSource :: UnfoldingSource -> Bool -- Keep the unfolding template isStableSource InlineCompulsory = True
113
isStableSource :: UnfoldingSource -> Bool isStableSource InlineCompulsory = True
82
isStableSource InlineCompulsory = True
40
true
true
0
5
15
19
10
9
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/Functions/F25.hs
bsd-3-clause
ptr_glTexCoord4fVertex4fSUN :: FunPtr (GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> IO ()) ptr_glTexCoord4fVertex4fSUN = unsafePerformIO $ getCommand "glTexCoord4fVertex4fSUN"
218
ptr_glTexCoord4fVertex4fSUN :: FunPtr (GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> IO ()) ptr_glTexCoord4fVertex4fSUN = unsafePerformIO $ getCommand "glTexCoord4fVertex4fSUN"
218
ptr_glTexCoord4fVertex4fSUN = unsafePerformIO $ getCommand "glTexCoord4fVertex4fSUN"
84
false
true
0
16
26
61
30
31
null
null
weso/shexkell
src/Shexkell/Data/ShEx.hs
mit
setLabel lbl (ShapeAnd _ shapes) = ShapeAnd (Just lbl) shapes
61
setLabel lbl (ShapeAnd _ shapes) = ShapeAnd (Just lbl) shapes
61
setLabel lbl (ShapeAnd _ shapes) = ShapeAnd (Just lbl) shapes
61
false
false
0
7
9
30
14
16
null
null
abuiles/turbinado-blog
tmp/dependencies/hsx-0.4.5/src/HSX/Transform.hs
bsd-3-clause
cons :: HsQName cons = Special HsCons
37
cons :: HsQName cons = Special HsCons
37
cons = Special HsCons
21
false
true
0
6
6
21
8
13
null
null
keera-studios/hsQt
Qtc/Network/QHttpHeader.hs
bsd-2-clause
qHttpHeader_delete :: QHttpHeader a -> IO () qHttpHeader_delete x0 = withObjectPtr x0 $ \cobj_x0 -> qtc_QHttpHeader_delete cobj_x0
136
qHttpHeader_delete :: QHttpHeader a -> IO () qHttpHeader_delete x0 = withObjectPtr x0 $ \cobj_x0 -> qtc_QHttpHeader_delete cobj_x0
136
qHttpHeader_delete x0 = withObjectPtr x0 $ \cobj_x0 -> qtc_QHttpHeader_delete cobj_x0
91
false
true
0
7
22
41
19
22
null
null
hspec/hspec
hspec-core/src/Test/Hspec/Core/Runner.hs
mit
hspec :: Spec -> IO () hspec = evalSpec defaultConfig >=> \ (config, spec) -> getArgs >>= readConfig config >>= doNotLeakCommandLineArgumentsToExamples . runSpecForest spec >>= evaluateSummary
204
hspec :: Spec -> IO () hspec = evalSpec defaultConfig >=> \ (config, spec) -> getArgs >>= readConfig config >>= doNotLeakCommandLineArgumentsToExamples . runSpecForest spec >>= evaluateSummary
204
hspec = evalSpec defaultConfig >=> \ (config, spec) -> getArgs >>= readConfig config >>= doNotLeakCommandLineArgumentsToExamples . runSpecForest spec >>= evaluateSummary
181
false
true
6
7
37
67
33
34
null
null
39aldo39/klfc
src/Xkb/Symbols.hs
gpl-3.0
printLetter ∷ Logger m ⇒ Letter → m String printLetter (Char c) = pure $ fromMaybe (printf "U%04X" c) (lookup c charAndString)
130
printLetter ∷ Logger m ⇒ Letter → m String printLetter (Char c) = pure $ fromMaybe (printf "U%04X" c) (lookup c charAndString)
130
printLetter (Char c) = pure $ fromMaybe (printf "U%04X" c) (lookup c charAndString)
87
false
true
0
8
25
59
28
31
null
null
arekfu/project_euler
p0018/p0018.hs
mit
squareGrid = squarify grid
26
squareGrid = squarify grid
26
squareGrid = squarify grid
26
false
false
0
5
3
9
4
5
null
null
aniketd/learn.haskell
yesodbook/Application.hs
unlicense
-- | Run DB queries db :: ReaderT SqlBackend (HandlerT App IO) a -> IO a db = handler . runDB
93
db :: ReaderT SqlBackend (HandlerT App IO) a -> IO a db = handler . runDB
73
db = handler . runDB
20
true
true
3
7
20
43
19
24
null
null
ddssff/pandoc
src/Text/Pandoc/Readers/LaTeX.hs
gpl-2.0
tilde 'o' = "õ"
15
tilde 'o' = "õ"
15
tilde 'o' = "õ"
15
false
false
0
5
3
9
4
5
null
null
SwiftsNamesake/Copernicus
Palette.hs
mit
--------------------------------------------------------------------------------------------------- -- Colours --------------------------------------------------------------------------------------------------- black = (0, 0, 0, 1) :: Colour
242
black = (0, 0, 0, 1) :: Colour
31
black = (0, 0, 0, 1) :: Colour
31
true
false
0
5
12
24
16
8
null
null
hvr/vector
Data/Vector/Fusion/Stream/Monadic.hs
bsd-3-clause
postscanlM f z (Stream step s) = Stream step' (s,z) where {-# INLINE_INNER step' #-} step' (s,x) = do r <- step s case r of Yield y s' -> do z <- f x y return $ Yield z (s'...
470
postscanlM f z (Stream step s) = Stream step' (s,z) where {-# INLINE_INNER step' #-} step' (s,x) = do r <- step s case r of Yield y s' -> do z <- f x y return $ Yield z (s'...
470
postscanlM f z (Stream step s) = Stream step' (s,z) where {-# INLINE_INNER step' #-} step' (s,x) = do r <- step s case r of Yield y s' -> do z <- f x y return $ Yield z (s'...
470
false
false
0
14
260
144
68
76
null
null
damianfral/clay
src/Clay/Display.hs
bsd-3-clause
------------------------------------------------------------------------------- float :: FloatStyle -> Css float = key "float"
127
float :: FloatStyle -> Css float = key "float"
46
float = key "float"
19
true
true
0
5
10
19
10
9
null
null
CulpaBS/wbBach
src/Futhark/Analysis/AlgSimplify.hs
bsd-3-clause
toDNF :: ScalExp -> AlgSimplifyM DNF toDNF (Val (BoolValue v)) = return [[LogCt v]]
84
toDNF :: ScalExp -> AlgSimplifyM DNF toDNF (Val (BoolValue v)) = return [[LogCt v]]
84
toDNF (Val (BoolValue v)) = return [[LogCt v]]
47
false
true
0
8
14
49
23
26
null
null
abakst/symmetry
checker/tests/pos/DatabaseSample.hs
mit
worker :: DSL repr => repr (Process repr ()) worker = do app (fixM workerLoop) nil return tt where workerLoop = lam $ \loop -> lam $ \map -> do msg :: repr MsgT <- recv match msg (lam $ \m -> do let (k, p) = (proj1 m, proj2 m) re...
545
worker :: DSL repr => repr (Process repr ()) worker = do app (fixM workerLoop) nil return tt where workerLoop = lam $ \loop -> lam $ \map -> do msg :: repr MsgT <- recv match msg (lam $ \m -> do let (k, p) = (proj1 m, proj2 m) re...
545
worker = do app (fixM workerLoop) nil return tt where workerLoop = lam $ \loop -> lam $ \map -> do msg :: repr MsgT <- recv match msg (lam $ \m -> do let (k, p) = (proj1 m, proj2 m) result <- app2 SrcHelper.lookup k map ...
500
false
true
1
22
259
241
112
129
null
null
sherwoodwang/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxSTC_SCRIPTOL_VERBATIM :: Int wxSTC_SCRIPTOL_VERBATIM = 13
59
wxSTC_SCRIPTOL_VERBATIM :: Int wxSTC_SCRIPTOL_VERBATIM = 13
59
wxSTC_SCRIPTOL_VERBATIM = 13
28
false
true
0
6
5
18
7
11
null
null
yiannist/ganeti
test/hs/Test/Ganeti/HTools/Backend/Text.hs
bsd-2-clause
prop_IPolicyIdempotent :: Types.IPolicy -> Property prop_IPolicyIdempotent ipol = case Text.loadIPolicy . Utils.sepSplit '|' $ Text.serializeIPolicy owner ipol of Bad msg -> failTest $ "Failed to load ispec: " ++ msg Ok res -> res ==? (owner, ipol) where owner = "dummy" -- | This property, while bei...
694
prop_IPolicyIdempotent :: Types.IPolicy -> Property prop_IPolicyIdempotent ipol = case Text.loadIPolicy . Utils.sepSplit '|' $ Text.serializeIPolicy owner ipol of Bad msg -> failTest $ "Failed to load ispec: " ++ msg Ok res -> res ==? (owner, ipol) where owner = "dummy" -- | This property, while bei...
694
prop_IPolicyIdempotent ipol = case Text.loadIPolicy . Utils.sepSplit '|' $ Text.serializeIPolicy owner ipol of Bad msg -> failTest $ "Failed to load ispec: " ++ msg Ok res -> res ==? (owner, ipol) where owner = "dummy" -- | This property, while being in the text tests, does more than just -- test en...
642
false
true
1
9
127
104
52
52
null
null
reckbo/ppl
pipeline-lib/Teem.hs
bsd-3-clause
makeMask :: FilePath -> FilePath -> Action() makeMask invol outvol = do command_ [] "unu" ["3op","ifelse",invol,"1","0","-o",outvol] liftIO $ gzip outvol
165
makeMask :: FilePath -> FilePath -> Action() makeMask invol outvol = do command_ [] "unu" ["3op","ifelse",invol,"1","0","-o",outvol] liftIO $ gzip outvol
165
makeMask invol outvol = do command_ [] "unu" ["3op","ifelse",invol,"1","0","-o",outvol] liftIO $ gzip outvol
120
false
true
0
9
31
77
38
39
null
null
DanielG/cabal-helper
lib/Distribution/Helper.hs
apache-2.0
mkCompHelperEnv projloc (DistDirCabal SCV2 distdir) PreInfoCabal ProjInfo{piImpl=ProjInfoV2{piV2Plan=plan}} cabal_ver = CompHelperEnv {..} where cheProjDir = plCabalProjectDir projloc cheCabalVer = cabal_ver cheProjLocalCacheDir = distdir </> "cache" chePkgDb = [] chePjUnits = Jus...
367
mkCompHelperEnv projloc (DistDirCabal SCV2 distdir) PreInfoCabal ProjInfo{piImpl=ProjInfoV2{piV2Plan=plan}} cabal_ver = CompHelperEnv {..} where cheProjDir = plCabalProjectDir projloc cheCabalVer = cabal_ver cheProjLocalCacheDir = distdir </> "cache" chePkgDb = [] chePjUnits = Jus...
367
mkCompHelperEnv projloc (DistDirCabal SCV2 distdir) PreInfoCabal ProjInfo{piImpl=ProjInfoV2{piV2Plan=plan}} cabal_ver = CompHelperEnv {..} where cheProjDir = plCabalProjectDir projloc cheCabalVer = cabal_ver cheProjLocalCacheDir = distdir </> "cache" chePkgDb = [] chePjUnits = Jus...
367
false
false
6
8
81
110
52
58
null
null
OS2World/DEV-UTIL-HUGS
oldlib/SimpleQueue.hs
bsd-3-clause
unzipWith3 :: (a -> b) -> (a -> c) -> (a -> d) -> Seq a -> (Seq b, Seq c, Seq d) moduleName = "SimpleQueue"
112
unzipWith3 :: (a -> b) -> (a -> c) -> (a -> d) -> Seq a -> (Seq b, Seq c, Seq d) moduleName = "SimpleQueue"
111
moduleName = "SimpleQueue"
26
false
true
0
12
30
76
37
39
null
null
rawlep/EQS
sourceCode/LMisc.hs
mit
-- ----------- minimum function that does not crash ------------------- myMin :: (Ord a) => [a] -> Maybe a myMin [] = Nothing
129
myMin :: (Ord a) => [a] -> Maybe a myMin [] = Nothing
57
myMin [] = Nothing
22
true
true
0
7
25
37
20
17
null
null
mainland/nikola
examples/common/GUI/Commands.hs
bsd-3-clause
glutKeyToKey (GLUT.SpecialKey GLUT.KeyDelete) = SpecialKey KeyDelete
80
glutKeyToKey (GLUT.SpecialKey GLUT.KeyDelete) = SpecialKey KeyDelete
80
glutKeyToKey (GLUT.SpecialKey GLUT.KeyDelete) = SpecialKey KeyDelete
80
false
false
0
8
17
22
10
12
null
null
pparkkin/eta
libraries/base/System/IO.hs
bsd-3-clause
output_flags = std_flags .|. o_CREAT
39
output_flags = std_flags .|. o_CREAT
39
output_flags = std_flags .|. o_CREAT
39
false
false
1
5
7
13
5
8
null
null
michiexile/hplex
pershom/src/Math/VectorSpaces/Pearson.hs
bsd-3-clause
fromList :: [Double] -> Pearson fromList = C . Vect.fromList
60
fromList :: [Double] -> Pearson fromList = C . Vect.fromList
60
fromList = C . Vect.fromList
28
false
true
0
6
9
24
13
11
null
null
tomlokhorst/dutchhug-nl
src/Router.hs
bsd-2-clause
-- | A web handler which, given a Zwaluw Router, and a function to a handler, -- calls the handler, passing the value. router :: MonadSnap m => Router () (a :- ()) -> (a -> m b) -> m b router r f = do p <- BS.unpack . rqURI <$> getRequest maybe empty f (parse1 r p)
269
router :: MonadSnap m => Router () (a :- ()) -> (a -> m b) -> m b router r f = do p <- BS.unpack . rqURI <$> getRequest maybe empty f (parse1 r p)
150
router r f = do p <- BS.unpack . rqURI <$> getRequest maybe empty f (parse1 r p)
84
true
true
0
11
62
102
48
54
null
null
fmapfmapfmap/amazonka
amazonka-elasticbeanstalk/gen/Network/AWS/ElasticBeanstalk/UpdateEnvironment.hs
mpl-2.0
-- | If this parameter is specified, AWS Elastic Beanstalk deploys this -- configuration template to the environment. If no such configuration -- template is found, AWS Elastic Beanstalk returns an -- 'InvalidParameterValue' error. ueTemplateName :: Lens' UpdateEnvironment (Maybe Text) ueTemplateName = lens _ueTemplate...
358
ueTemplateName :: Lens' UpdateEnvironment (Maybe Text) ueTemplateName = lens _ueTemplateName (\ s a -> s{_ueTemplateName = a})
126
ueTemplateName = lens _ueTemplateName (\ s a -> s{_ueTemplateName = a})
71
true
true
1
9
50
53
28
25
null
null
kishoredbn/barrelfish
tools/flounder/UMPCommon.hs
mit
-- Name of the bind function bind_fn_name p n = ump_ifscope p n "bind"
70
bind_fn_name p n = ump_ifscope p n "bind"
41
bind_fn_name p n = ump_ifscope p n "bind"
41
true
false
0
5
13
19
9
10
null
null
duboisf/complementaires
src/Main.hs
gpl-3.0
nonEmpty xs = Just xs
21
nonEmpty xs = Just xs
21
nonEmpty xs = Just xs
21
false
false
0
5
4
12
5
7
null
null
advancedtelematic/quickcheck-state-machine-model
test/Bookstore.hs
bsd-3-clause
pubTitle :: Int -> Gen String pubTitle size = do i <- choose (1, size - 1) v1 <- vectorOf i $ choose ('0', '9') v2 <- vectorOf (size - i) $ choose ('0', '9') return $ v1 ++ "-" ++ v2
191
pubTitle :: Int -> Gen String pubTitle size = do i <- choose (1, size - 1) v1 <- vectorOf i $ choose ('0', '9') v2 <- vectorOf (size - i) $ choose ('0', '9') return $ v1 ++ "-" ++ v2
191
pubTitle size = do i <- choose (1, size - 1) v1 <- vectorOf i $ choose ('0', '9') v2 <- vectorOf (size - i) $ choose ('0', '9') return $ v1 ++ "-" ++ v2
161
false
true
0
11
50
114
54
60
null
null
fmapfmapfmap/amazonka
amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/Types/Product.hs
mpl-2.0
-- | The time the job was submitted to Elastic Transcoder, in epoch -- milliseconds. tSubmitTimeMillis :: Lens' Timing (Maybe Integer) tSubmitTimeMillis = lens _tSubmitTimeMillis (\ s a -> s{_tSubmitTimeMillis = a})
215
tSubmitTimeMillis :: Lens' Timing (Maybe Integer) tSubmitTimeMillis = lens _tSubmitTimeMillis (\ s a -> s{_tSubmitTimeMillis = a})
130
tSubmitTimeMillis = lens _tSubmitTimeMillis (\ s a -> s{_tSubmitTimeMillis = a})
80
true
true
0
9
31
47
26
21
null
null
brendanhay/gogol
gogol-containeranalysis/gen/Network/Google/ContainerAnalysis/Types/Product.hs
mpl-2.0
-- | The source from which the information in this Detail was obtained. detSource :: Lens' Detail (Maybe Text) detSource = lens _detSource (\ s a -> s{_detSource = a})
169
detSource :: Lens' Detail (Maybe Text) detSource = lens _detSource (\ s a -> s{_detSource = a})
97
detSource = lens _detSource (\ s a -> s{_detSource = a})
58
true
true
0
9
31
48
25
23
null
null
kim/amazonka
amazonka-rds/gen/Network/AWS/RDS/Types.hs
mpl-2.0
-- | The name of the DB parameter group. dbpgnmDBParameterGroupName :: Lens' DBParameterGroupNameMessage (Maybe Text) dbpgnmDBParameterGroupName = lens _dbpgnmDBParameterGroupName (\s a -> s { _dbpgnmDBParameterGroupName = a })
239
dbpgnmDBParameterGroupName :: Lens' DBParameterGroupNameMessage (Maybe Text) dbpgnmDBParameterGroupName = lens _dbpgnmDBParameterGroupName (\s a -> s { _dbpgnmDBParameterGroupName = a })
198
dbpgnmDBParameterGroupName = lens _dbpgnmDBParameterGroupName (\s a -> s { _dbpgnmDBParameterGroupName = a })
121
true
true
1
9
39
51
25
26
null
null
lukexi/ghc
compiler/nativeGen/X86/CodeGen.hs
bsd-3-clause
-------------------------------------------------------------------------------- getRegister :: CmmExpr -> NatM Register getRegister e = do dflags <- getDynFlags is32Bit <- is32BitPlatform getRegister' dflags is32Bit e
256
getRegister :: CmmExpr -> NatM Register getRegister e = do dflags <- getDynFlags is32Bit <- is32BitPlatform getRegister' dflags is32Bit e
175
getRegister e = do dflags <- getDynFlags is32Bit <- is32BitPlatform getRegister' dflags is32Bit e
135
true
true
0
8
58
51
22
29
null
null
jqpeterson/roc-translator
src/Protocol/ROC/PointTypes.hs
bsd-3-clause
decodePTID (PTID5 _) = 5
24
decodePTID (PTID5 _) = 5
24
decodePTID (PTID5 _) = 5
24
false
false
0
6
4
16
7
9
null
null
GaloisInc/halvm-ghc
compiler/types/Type.hs
bsd-3-clause
-- | Retrieve the free variables in this type, splitting them based -- on whether they are used visibly or invisibly. Invisible ones come -- first. splitVisVarsOfType :: Type -> Pair TyCoVarSet splitVisVarsOfType orig_ty = Pair invis_vars vis_vars where Pair invis_vars1 vis_vars = go orig_ty invis_vars = invi...
1,038
splitVisVarsOfType :: Type -> Pair TyCoVarSet splitVisVarsOfType orig_ty = Pair invis_vars vis_vars where Pair invis_vars1 vis_vars = go orig_ty invis_vars = invis_vars1 `minusVarSet` vis_vars go (TyVarTy tv) = Pair (tyCoVarsOfType $ tyVarKind tv) (unitVarSet tv) go (AppTy t1 t2) = go t1 `mappend` g...
890
splitVisVarsOfType orig_ty = Pair invis_vars vis_vars where Pair invis_vars1 vis_vars = go orig_ty invis_vars = invis_vars1 `minusVarSet` vis_vars go (TyVarTy tv) = Pair (tyCoVarsOfType $ tyVarKind tv) (unitVarSet tv) go (AppTy t1 t2) = go t1 `mappend` go t2 go (TyConApp tc tys) = go_tc tc tys ...
844
true
true
3
10
244
398
190
208
null
null
rglew/cis194
src/Week3/Log.hs
mit
testWhatWentWrong :: (String -> [LogMessage]) -> ([LogMessage] -> [String]) -> FilePath -> IO () testWhatWentWrong parse whatWentWrong file = do strings <- whatWentWrong . parse <$> readFile file mapM_ putStrLn strings
276
testWhatWentWrong :: (String -> [LogMessage]) -> ([LogMessage] -> [String]) -> FilePath -> IO () testWhatWentWrong parse whatWentWrong file = do strings <- whatWentWrong . parse <$> readFile file mapM_ putStrLn strings
276
testWhatWentWrong parse whatWentWrong file = do strings <- whatWentWrong . parse <$> readFile file mapM_ putStrLn strings
125
false
true
0
10
88
89
43
46
null
null
mzini/hosa
hosa/Main.hs
mit
status :: PP.Pretty e => String -> e -> RunM () status n e = do na <- reader noansi let d = PP.text (n ++ ":") PP.<$> PP.indent 2 (PP.pretty e) liftIO (putDocLn (if na then PP.plain d else d) >> putStrLn "")
216
status :: PP.Pretty e => String -> e -> RunM () status n e = do na <- reader noansi let d = PP.text (n ++ ":") PP.<$> PP.indent 2 (PP.pretty e) liftIO (putDocLn (if na then PP.plain d else d) >> putStrLn "")
216
status n e = do na <- reader noansi let d = PP.text (n ++ ":") PP.<$> PP.indent 2 (PP.pretty e) liftIO (putDocLn (if na then PP.plain d else d) >> putStrLn "")
168
false
true
0
14
52
125
59
66
null
null
k0001/reflex
src/Reflex/Dynamic.hs
bsd-3-clause
-- | Print the value of the 'Dynamic' on each change and prefix it -- with the provided string. This should /only/ be used for debugging. -- -- Note: Just like Debug.Trace.trace, the value will only be shown if something -- else in the system is depending on it. traceDyn :: (Reflex t, Show a) => String -> Dynamic t a -...
387
traceDyn :: (Reflex t, Show a) => String -> Dynamic t a -> Dynamic t a traceDyn s = traceDynWith $ \x -> s <> ": " <> show x
124
traceDyn s = traceDynWith $ \x -> s <> ": " <> show x
53
true
true
0
8
78
72
38
34
null
null
ezyang/ghc
testsuite/tests/dependent/should_compile/dynamic-paper.hs
bsd-3-clause
tcMaybe :: TyCon tcMaybe = TyCon { tc_module = Module { mod_pkg = "base" , mod_name = "Data.Maybe" } , tc_name = "Maybe" }
204
tcMaybe :: TyCon tcMaybe = TyCon { tc_module = Module { mod_pkg = "base" , mod_name = "Data.Maybe" } , tc_name = "Maybe" }
204
tcMaybe = TyCon { tc_module = Module { mod_pkg = "base" , mod_name = "Data.Maybe" } , tc_name = "Maybe" }
186
false
true
0
8
105
39
24
15
null
null
anttisalonen/economics
src/TestEquilibrium.hs
mit
pfRice = P.CobbDouglas 10 0.15 0.35
38
pfRice = P.CobbDouglas 10 0.15 0.35
38
pfRice = P.CobbDouglas 10 0.15 0.35
38
false
false
0
6
8
15
7
8
null
null
Kyarigwo/ki-component-store
test/Kyarigwo/ComponentStoreTest.hs
gpl-3.0
bar :: Gen Bar bar = Bar <$> Gen.string (Range.constantFrom 0 0 10) Gen.ascii
77
bar :: Gen Bar bar = Bar <$> Gen.string (Range.constantFrom 0 0 10) Gen.ascii
77
bar = Bar <$> Gen.string (Range.constantFrom 0 0 10) Gen.ascii
62
false
true
2
8
13
45
20
25
null
null
cameronbwhite/RelationalAlgebra
src/Function.hs
mit
-- | -- >>> (abs `around` (*)) (-2) (5) -- 10 around:: (c -> d) -> (a -> b -> c) -> a -> b -> d around f g x y = f (g x y)
122
around:: (c -> d) -> (a -> b -> c) -> a -> b -> d around f g x y = f (g x y)
76
around f g x y = f (g x y)
26
true
true
0
10
36
75
37
38
null
null
spechub/Hets
TPTP/Pretty.hs
gpl-2.0
printTFF_binary_formula :: TFF_binary_formula -> Doc printTFF_binary_formula x = case x of TFFBF_nonassoc a -> pretty a TFFBF_assoc a -> pretty a -- <tff_binary_nonassoc> ::= <tff_unitary_formula> <binary_connective> -- <tff_unitary_formula>
274
printTFF_binary_formula :: TFF_binary_formula -> Doc printTFF_binary_formula x = case x of TFFBF_nonassoc a -> pretty a TFFBF_assoc a -> pretty a -- <tff_binary_nonassoc> ::= <tff_unitary_formula> <binary_connective> -- <tff_unitary_formula>
274
printTFF_binary_formula x = case x of TFFBF_nonassoc a -> pretty a TFFBF_assoc a -> pretty a -- <tff_binary_nonassoc> ::= <tff_unitary_formula> <binary_connective> -- <tff_unitary_formula>
221
false
true
0
8
60
53
24
29
null
null
nrolland/react-flux
src/React/Flux/DOM.hs
bsd-3-clause
meta_ :: Term eventHandler arg result => arg -> result; meta_ = term "meta"
75
meta_ :: Term eventHandler arg result => arg -> result meta_ = term "meta"
74
meta_ = term "meta"
19
false
true
0
6
13
30
15
15
null
null
fmapfmapfmap/amazonka
amazonka-dynamodb/gen/Network/AWS/DynamoDB/Types/Product.hs
mpl-2.0
-- | Creates a value of 'DeleteGlobalSecondaryIndexAction' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'dgsiaIndexName' deleteGlobalSecondaryIndexAction :: Text -- ^ 'dgsiaIndexName' -> DeleteGlobalSecondaryIndexAction dele...
442
deleteGlobalSecondaryIndexAction :: Text -- ^ 'dgsiaIndexName' -> DeleteGlobalSecondaryIndexAction deleteGlobalSecondaryIndexAction pIndexName_ = DeleteGlobalSecondaryIndexAction' { _dgsiaIndexName = pIndexName_ }
233
deleteGlobalSecondaryIndexAction pIndexName_ = DeleteGlobalSecondaryIndexAction' { _dgsiaIndexName = pIndexName_ }
126
true
true
0
7
70
41
22
19
null
null
rickerbh/AoC
AoC2016/src/AoC201604.hs
mit
sectorSums :: [Room] -> Int sectorSums xs = sum $ map sectorId xs
65
sectorSums :: [Room] -> Int sectorSums xs = sum $ map sectorId xs
65
sectorSums xs = sum $ map sectorId xs
37
false
true
0
6
12
30
15
15
null
null
meteogrid/bindings-gdal
src/GDAL/Internal/OGRFieldInstances.hs
bsd-3-clause
tShow :: Show b => b -> Text tShow = pack . show
48
tShow :: Show b => b -> Text tShow = pack . show
48
tShow = pack . show
19
false
true
1
8
12
34
14
20
null
null
sdiehl/ghc
testsuite/tests/indexed-types/should_compile/T12522b.hs
bsd-3-clause
-- test2 :: Uncurried [Bool, Bool] Bool test2 = def $ \a b -> I $ a && b
72
test2 = def $ \a b -> I $ a && b
32
test2 = def $ \a b -> I $ a && b
32
true
false
0
8
18
26
14
12
null
null
limaner2002/OAuth2
src/Network/OAuth2/ConfigFile.hs
gpl-3.0
comment :: Parser () comment = do char '#' skipMany (noneOf "\r\n") <?> "comment"
104
comment :: Parser () comment = do char '#' skipMany (noneOf "\r\n") <?> "comment"
104
comment = do char '#' skipMany (noneOf "\r\n") <?> "comment"
83
false
true
0
10
36
38
17
21
null
null
jwiegley/ghc-release
compiler/llvmGen/Llvm/Types.hs
gpl-3.0
ppParams :: LlvmParameterListType -> [LlvmParameter] -> SDoc ppParams varg p = let varg' = case varg of VarArgs | null args -> sLit "..." | otherwise -> sLit ", ..." _otherwise -> sLit "" -- by default we don't print param attributes args = map fst p ...
354
ppParams :: LlvmParameterListType -> [LlvmParameter] -> SDoc ppParams varg p = let varg' = case varg of VarArgs | null args -> sLit "..." | otherwise -> sLit ", ..." _otherwise -> sLit "" -- by default we don't print param attributes args = map fst p ...
354
ppParams varg p = let varg' = case varg of VarArgs | null args -> sLit "..." | otherwise -> sLit ", ..." _otherwise -> sLit "" -- by default we don't print param attributes args = map fst p in ppCommaJoin args <> ptext varg'
293
false
true
2
15
121
108
48
60
null
null
Paow/encore
src/ir/AST/AST.hs
bsd-3-clause
isArrayLiteral :: Expr -> Bool isArrayLiteral ArrayLiteral{} = True
67
isArrayLiteral :: Expr -> Bool isArrayLiteral ArrayLiteral{} = True
67
isArrayLiteral ArrayLiteral{} = True
36
false
true
2
4
8
22
12
10
null
null
utsav2601/cmpe295A
hake/HakeTypes.hs
mit
frArch (PreDep _ a _ ) = a
26
frArch (PreDep _ a _ ) = a
26
frArch (PreDep _ a _ ) = a
26
false
false
0
7
7
19
9
10
null
null