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
lynnard/cocos2d-hs
src/Graphics/UI/Cocos2d/Node.hs
bsd-3-clause
node_removeAllChildrenWithCleanup :: (NodePtr arg'1) => arg'1 -> HoppyP.Bool -> HoppyP.IO () node_removeAllChildrenWithCleanup arg'1 arg'2 = HoppyFHR.withCppPtr (toNode arg'1) $ \arg'1' -> let arg'2' = if arg'2 then 1 else 0 in (node_removeAllChildrenWithCleanup' arg'1' arg'2')
284
node_removeAllChildrenWithCleanup :: (NodePtr arg'1) => arg'1 -> HoppyP.Bool -> HoppyP.IO () node_removeAllChildrenWithCleanup arg'1 arg'2 = HoppyFHR.withCppPtr (toNode arg'1) $ \arg'1' -> let arg'2' = if arg'2 then 1 else 0 in (node_removeAllChildrenWithCleanup' arg'1' arg'2')
284
node_removeAllChildrenWithCleanup arg'1 arg'2 = HoppyFHR.withCppPtr (toNode arg'1) $ \arg'1' -> let arg'2' = if arg'2 then 1 else 0 in (node_removeAllChildrenWithCleanup' arg'1' arg'2')
191
false
true
0
11
39
89
45
44
null
null
aaronpr95/4_en_raya
4enraya.hs
mit
list_diagonal1 t m n j = if length j < 4 then list_diagonal1 t (m-1) (n-1) (j++[t!!m!!n]) else j
154
list_diagonal1 t m n j = if length j < 4 then list_diagonal1 t (m-1) (n-1) (j++[t!!m!!n]) else j
154
list_diagonal1 t m n j = if length j < 4 then list_diagonal1 t (m-1) (n-1) (j++[t!!m!!n]) else j
154
false
false
0
11
76
74
37
37
null
null
imalsogreg/tetrode-ephys
samples/watchfield.hs
gpl-3.0
track = circularTrack (0,0) 0.57 0.5 0.25 0.15
47
track = circularTrack (0,0) 0.57 0.5 0.25 0.15
47
track = circularTrack (0,0) 0.57 0.5 0.25 0.15
47
false
false
0
6
8
23
12
11
null
null
travitch/hbgl-experimental
src/Data/Graph/Algorithms/DFS.hs
bsd-3-clause
dffWith' :: (DecomposableGraph gr, VertexListGraph gr) => (Context gr -> c) -> gr -> [Tree c] dffWith' f = fixVertices (dffWith f)
166
dffWith' :: (DecomposableGraph gr, VertexListGraph gr) => (Context gr -> c) -> gr -> [Tree c] dffWith' f = fixVertices (dffWith f)
166
dffWith' f = fixVertices (dffWith f)
36
false
true
0
9
57
62
31
31
null
null
diegoeche/tupleinstances
src/Data/Tuple/THMacros.hs
bsd-3-clause
appTnInstance :: Int -> Dec appTnInstance n = InstanceD [] type' [pureN, star] where type' = tnTypeClass "Applicative" n pureN = mkName "pure" `FunD` [Clause [var "a"] (NormalB pureNBody) []] pureNBody = ConE (tn n) `AppE` (TupE . replicate n $ var "a") ...
631
appTnInstance :: Int -> Dec appTnInstance n = InstanceD [] type' [pureN, star] where type' = tnTypeClass "Applicative" n pureN = mkName "pure" `FunD` [Clause [var "a"] (NormalB pureNBody) []] pureNBody = ConE (tn n) `AppE` (TupE . replicate n $ var "a") ...
631
appTnInstance n = InstanceD [] type' [pureN, star] where type' = tnTypeClass "Applicative" n pureN = mkName "pure" `FunD` [Clause [var "a"] (NormalB pureNBody) []] pureNBody = ConE (tn n) `AppE` (TupE . replicate n $ var "a") star = mkName "<*>...
603
false
true
6
11
222
303
144
159
null
null
jstolarek/sandbox
haskell/jacobi/LinearAlgebra.hs
unlicense
zero :: VU.Unbox Double => Int -> Array U DIM2 Double zero dim = R.computeUnboxedS $ R.fromFunction (Z:. dim:. dim) $ (\sh -> 0.0)
142
zero :: VU.Unbox Double => Int -> Array U DIM2 Double zero dim = R.computeUnboxedS $ R.fromFunction (Z:. dim:. dim) $ (\sh -> 0.0)
142
zero dim = R.computeUnboxedS $ R.fromFunction (Z:. dim:. dim) $ (\sh -> 0.0)
87
false
true
0
10
35
68
34
34
null
null
bitemyapp/mustache
src/lib/Text/Mustache/Parser.hs
bsd-3-clause
-- | Cannot be a letter, number or the nesting separation Character @.@ isAllowedDelimiterCharacter ∷ Char → Bool isAllowedDelimiterCharacter = not . Prel.or . sequence [ isSpace, isAlphaNum, flip elem nestingSeparator ]
226
isAllowedDelimiterCharacter ∷ Char → Bool isAllowedDelimiterCharacter = not . Prel.or . sequence [ isSpace, isAlphaNum, flip elem nestingSeparator ]
154
isAllowedDelimiterCharacter = not . Prel.or . sequence [ isSpace, isAlphaNum, flip elem nestingSeparator ]
112
true
true
2
7
37
52
24
28
null
null
danr/hipspec
testsuite/prod/zeno_version/PropT32.hs
gpl-3.0
qfac :: Nat -> Nat -> Nat qfac Z acc = acc
42
qfac :: Nat -> Nat -> Nat qfac Z acc = acc
42
qfac Z acc = acc
16
false
true
0
6
11
24
12
12
null
null
johannesgerer/buchhaltung
src/Buchhaltung/Import.hs
mit
-- | convert a batch of importedEntries to Ledger Transactions fillTxn :: (MonadError Msg m, MonadReader (Options User Config env) m) => T.Text -- ^ current time string -> ImportedEntry -> m FilledEntry fillTxn datetime e@(ImportedEntry t postings source) = do tag <- askTag todo <- readConfig cTodoAcco...
1,828
fillTxn :: (MonadError Msg m, MonadReader (Options User Config env) m) => T.Text -- ^ current time string -> ImportedEntry -> m FilledEntry fillTxn datetime e@(ImportedEntry t postings source) = do tag <- askTag todo <- readConfig cTodoAccount postings' <- mapM toPosting postings let amount = sum $ ...
1,764
fillTxn datetime e@(ImportedEntry t postings source) = do tag <- askTag todo <- readConfig cTodoAccount postings' <- mapM toPosting postings let amount = sum $ pamount <$> postings' tx = injectSource tag source $ t{tcomment = "generated by 'buchhaltung' " <> datetime <>...
1,612
true
true
59
9
616
461
241
220
null
null
joshrule/poplog
src/Repl.hs
mit
-- Repl repE :: (MonadState s m, Show e, Show b) => (a -> m (Either e b)) -> a -> ExceptT ReplError m b repE evalFn input = do result <- lift $ evalFn input case result of Left err -> throwError $ ReplError (show err) Right val -> return val
273
repE :: (MonadState s m, Show e, Show b) => (a -> m (Either e b)) -> a -> ExceptT ReplError m b repE evalFn input = do result <- lift $ evalFn input case result of Left err -> throwError $ ReplError (show err) Right val -> return val
265
repE evalFn input = do result <- lift $ evalFn input case result of Left err -> throwError $ ReplError (show err) Right val -> return val
161
true
true
0
13
83
128
61
67
null
null
ethercrow/ai-challenger
test-rps/TestMain.hs
mit
main :: IO () main = do constPlayersTest pythonPlayersTest putStrLn "All done"
90
main :: IO () main = do constPlayersTest pythonPlayersTest putStrLn "All done"
90
main = do constPlayersTest pythonPlayersTest putStrLn "All done"
76
false
true
0
7
23
28
12
16
null
null
DanielG/kvm-in-a-box
src/Utils.hs
agpl-3.0
writeFile' f c = writeFile'' f Nothing c
40
writeFile' f c = writeFile'' f Nothing c
40
writeFile' f c = writeFile'' f Nothing c
40
false
false
0
5
7
18
8
10
null
null
GaloisInc/halvm-ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
ltDataConName = dcQual gHC_TYPES (fsLit "LT") ltDataConKey
62
ltDataConName = dcQual gHC_TYPES (fsLit "LT") ltDataConKey
62
ltDataConName = dcQual gHC_TYPES (fsLit "LT") ltDataConKey
62
false
false
1
7
10
22
9
13
null
null
cdepillabout/lens
src/Control/Lens/Wrapped.hs
bsd-3-clause
getArrowMonad :: ArrowMonad m a -> m () a getArrowMonad (ArrowMonad x) = x
74
getArrowMonad :: ArrowMonad m a -> m () a getArrowMonad (ArrowMonad x) = x
74
getArrowMonad (ArrowMonad x) = x
32
false
true
0
7
13
36
17
19
null
null
spechub/Hets
CSL/Print_AS.hs
gpl-2.0
printBasicSpec :: BASIC_SPEC -> Doc printBasicSpec (Basic_spec xs) = vcat $ map pretty xs
89
printBasicSpec :: BASIC_SPEC -> Doc printBasicSpec (Basic_spec xs) = vcat $ map pretty xs
89
printBasicSpec (Basic_spec xs) = vcat $ map pretty xs
53
false
true
2
9
13
39
17
22
null
null
fffej/HS-Poker
LookupPatternMatch.hs
bsd-3-clause
getValueFromProduct 8272201 = 3356
34
getValueFromProduct 8272201 = 3356
34
getValueFromProduct 8272201 = 3356
34
false
false
0
5
3
9
4
5
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/sum_1.hs
mit
primMulInt (Neg x) (Neg y) = Pos (primMulNat x y)
49
primMulInt (Neg x) (Neg y) = Pos (primMulNat x y)
49
primMulInt (Neg x) (Neg y) = Pos (primMulNat x y)
49
false
false
0
7
9
36
16
20
null
null
polarina/sdl2
Graphics/UI/SDL/Video.hs
bsd-3-clause
destroyTexture :: MonadIO m => Texture -> m () destroyTexture v1 = liftIO $ destroyTexture' v1
94
destroyTexture :: MonadIO m => Texture -> m () destroyTexture v1 = liftIO $ destroyTexture' v1
94
destroyTexture v1 = liftIO $ destroyTexture' v1
47
false
true
0
8
15
37
17
20
null
null
mongodb-haskell/mongodb
Database/MongoDB/Internal/Protocol.hs
apache-2.0
iBits :: [InsertOption] -> Int32 iBits = bitOr . map iBit
57
iBits :: [InsertOption] -> Int32 iBits = bitOr . map iBit
57
iBits = bitOr . map iBit
24
false
true
0
6
10
25
13
12
null
null
beni55/cryptol
src/Cryptol/REPL/Monad.hs
bsd-3-clause
-- | Initial, empty environment. defaultRW :: Bool -> IO RW defaultRW isBatch = do env <- M.initialModuleEnv return RW { eLoadedMod = Nothing , eContinue = True , eIsBatch = isBatch , eModuleEnv = env , eNameSupply = 0 , eUserEnv = mkUserEnv userOptions , ePutStr = p...
428
defaultRW :: Bool -> IO RW defaultRW isBatch = do env <- M.initialModuleEnv return RW { eLoadedMod = Nothing , eContinue = True , eIsBatch = isBatch , eModuleEnv = env , eNameSupply = 0 , eUserEnv = mkUserEnv userOptions , ePutStr = putStr , eLetEnabled = True ...
395
defaultRW isBatch = do env <- M.initialModuleEnv return RW { eLoadedMod = Nothing , eContinue = True , eIsBatch = isBatch , eModuleEnv = env , eNameSupply = 0 , eUserEnv = mkUserEnv userOptions , ePutStr = putStr , eLetEnabled = True , eUpdateTitle = return ...
368
true
true
0
12
134
107
59
48
null
null
tonyfloatersu/solution-haskell-craft-of-FP
Chapter17.hs
mit
-- -- The neighbours of a point in a graph. nbhrs :: Ord a => Relation a -> a -> [a] nbhrs rel x = flatten (image rel x)
123
nbhrs :: Ord a => Relation a -> a -> [a] nbhrs rel x = flatten (image rel x)
76
nbhrs rel x = flatten (image rel x)
35
true
true
0
10
31
55
26
29
null
null
andorp/bead
src/Bead/Controller/Pages.hs
bsd-3-clause
modifyPageCata createCourse createGroup assignCourseAdmin assignGroupAdmin changePassword deleteUsersFromCourse deleteUsersFromGroup unsubscribeFromCourse p = case p of CreateCourse a -> createCourse a CreateGroup a -> createGroup a AssignCourseAdmin a -> assignCourseAdmin a AssignGrou...
572
modifyPageCata createCourse createGroup assignCourseAdmin assignGroupAdmin changePassword deleteUsersFromCourse deleteUsersFromGroup unsubscribeFromCourse p = case p of CreateCourse a -> createCourse a CreateGroup a -> createGroup a AssignCourseAdmin a -> assignCourseAdmin a AssignGrou...
572
modifyPageCata createCourse createGroup assignCourseAdmin assignGroupAdmin changePassword deleteUsersFromCourse deleteUsersFromGroup unsubscribeFromCourse p = case p of CreateCourse a -> createCourse a CreateGroup a -> createGroup a AssignCourseAdmin a -> assignCourseAdmin a AssignGrou...
572
false
false
1
8
109
148
60
88
null
null
Mokosha/Lambency
lib/Lambency/Renderer/OpenGL/Render.hs
mit
divideAndRenderROs ros cam light = do addRenderVar "eyePos" (Vector3Val $ getCamPos cam) xf <- ask st <- lift $ get let vars = currentRenderVars st (trans, opaque) = partition (\ro -> Transparent `elem` (flags ro)) $ map (place cam . xformWorld xf) ros case RenderState'DepthOnly `elem`...
798
divideAndRenderROs ros cam light = do addRenderVar "eyePos" (Vector3Val $ getCamPos cam) xf <- ask st <- lift $ get let vars = currentRenderVars st (trans, opaque) = partition (\ro -> Transparent `elem` (flags ro)) $ map (place cam . xformWorld xf) ros case RenderState'DepthOnly `elem`...
798
divideAndRenderROs ros cam light = do addRenderVar "eyePos" (Vector3Val $ getCamPos cam) xf <- ask st <- lift $ get let vars = currentRenderVars st (trans, opaque) = partition (\ro -> Transparent `elem` (flags ro)) $ map (place cam . xformWorld xf) ros case RenderState'DepthOnly `elem`...
798
false
false
0
23
232
296
141
155
null
null
choener/BiobaseTurner
Biobase/Turner/Import/Vienna.hs
gpl-3.0
dgDbg = DDG 999999
19
ddgDbg = DDG 999999
19
ddgDbg = DDG 999999
19
false
false
0
5
4
9
4
5
null
null
MichaelXavier/Bucketeer
Bucketeer/Testing/Manager.hs
bsd-2-clause
bob :: Consumer bob = Consumer "bob"
36
bob :: Consumer bob = Consumer "bob"
36
bob = Consumer "bob"
20
false
true
0
6
6
21
8
13
null
null
xkollar/yaml
Text/Libyaml.hs
bsd-2-clause
stringToTag "" = NoTag
22
stringToTag "" = NoTag
22
stringToTag "" = NoTag
22
false
false
0
5
3
9
4
5
null
null
athanclark/set-with
src/Data/SetWith.hs
bsd-3-clause
lookupLT :: Ord k => a -> SetWith k a -> Maybe a lookupLT x (SetWith (f,xs)) = snd <$> Map.lookupLT (f x) xs
108
lookupLT :: Ord k => a -> SetWith k a -> Maybe a lookupLT x (SetWith (f,xs)) = snd <$> Map.lookupLT (f x) xs
108
lookupLT x (SetWith (f,xs)) = snd <$> Map.lookupLT (f x) xs
59
false
true
0
8
23
68
33
35
null
null
brendanhay/gogol
gogol-monitoring/gen/Network/Google/Resource/Monitoring/Projects/NotificationChannelDescriptors/List.hs
mpl-2.0
-- | OAuth access token. pncdlAccessToken :: Lens' ProjectsNotificationChannelDescriptorsList (Maybe Text) pncdlAccessToken = lens _pncdlAccessToken (\ s a -> s{_pncdlAccessToken = a})
192
pncdlAccessToken :: Lens' ProjectsNotificationChannelDescriptorsList (Maybe Text) pncdlAccessToken = lens _pncdlAccessToken (\ s a -> s{_pncdlAccessToken = a})
167
pncdlAccessToken = lens _pncdlAccessToken (\ s a -> s{_pncdlAccessToken = a})
85
true
true
0
9
29
48
25
23
null
null
ane/hisg
src/Hisg/Formatter.hs
bsd-3-clause
kickScoreboard :: [(S.ByteString, UserStats)] -> FormatterM () kickScoreboard [] = do openPanel; addOutput "Nobody kicked anyone in the channel."; closePanel
157
kickScoreboard :: [(S.ByteString, UserStats)] -> FormatterM () kickScoreboard [] = do openPanel; addOutput "Nobody kicked anyone in the channel."; closePanel
157
kickScoreboard [] = do openPanel; addOutput "Nobody kicked anyone in the channel."; closePanel
94
false
true
0
8
19
50
25
25
null
null
DavidAlphaFox/ghc
compiler/hsSyn/HsPat.hs
bsd-3-clause
pprPat (ViewPat expr pat _) = hcat [pprLExpr expr, text " -> ", ppr pat]
72
pprPat (ViewPat expr pat _) = hcat [pprLExpr expr, text " -> ", ppr pat]
72
pprPat (ViewPat expr pat _) = hcat [pprLExpr expr, text " -> ", ppr pat]
72
false
false
0
7
14
40
19
21
null
null
pauloborba/plc
src/InterpretacaoEAnaliseEstaticaComMonads.hs
cc0-1.0
procurar n ((n1,s):xs) | n == n1 = Justt (n1,s) | otherwise = procurar n xs
98
procurar n ((n1,s):xs) | n == n1 = Justt (n1,s) | otherwise = procurar n xs
98
procurar n ((n1,s):xs) | n == n1 = Justt (n1,s) | otherwise = procurar n xs
98
false
false
0
8
38
57
28
29
null
null
rrnewton/pcg-random
src/System/Random/PCG/Class.hs
bsd-3-clause
uniformBF :: Generator g m => Float -> g -> m Float uniformBF = uniformB
72
uniformBF :: Generator g m => Float -> g -> m Float uniformBF = uniformB
72
uniformBF = uniformB
20
false
true
0
9
14
37
16
21
null
null
rad1al/hutton_exercises
ch04.hs
gpl-2.0
-- using list indexing !! third' :: [a] -> a third' xs = xs !! 2
64
third' :: [a] -> a third' xs = xs !! 2
38
third' xs = xs !! 2
19
true
true
0
7
15
32
15
17
null
null
ian-ross/c2hs-macos-test
c2hs-0.26.1/src/C2HS/C/Trav.hs
mit
-- | transform user-defined state -- transCT :: (s -> (s, a)) -> CT s a transCT trans = transCST $ \(ac, s) -> let (s', r) = trans s in ((ac, s'), r)
278
transCT :: (s -> (s, a)) -> CT s a transCT trans = transCST $ \(ac, s) -> let (s', r) = trans s in ((ac, s'), r)
241
transCT trans = transCST $ \(ac, s) -> let (s', r) = trans s in ((ac, s'), r)
200
true
true
0
11
162
86
48
38
null
null
keithodulaigh/Hets
Common/Keywords.hs
gpl-2.0
-- | partial function arrow pFun :: String pFun = funS ++ quMark
64
pFun :: String pFun = funS ++ quMark
36
pFun = funS ++ quMark
21
true
true
0
5
12
16
9
7
null
null
scolobb/fgl
Data/Graph/Inductive/Query/BFS.hs
bsd-3-clause
suci :: Context a b -> Int -> [(Node, Int)] suci c i = zip (suc' c) (repeat i)
78
suci :: Context a b -> Int -> [(Node, Int)] suci c i = zip (suc' c) (repeat i)
78
suci c i = zip (suc' c) (repeat i)
34
false
true
0
8
18
55
28
27
null
null
DavidAlphaFox/ghc
libraries/haskeline/System/Console/Haskeline/History.hs
bsd-3-clause
writeHistory :: FilePath -> History -> IO () writeHistory file = handle (\(_::IOException) -> return ()) . writeUTF8File file . unlines . historyLines
166
writeHistory :: FilePath -> History -> IO () writeHistory file = handle (\(_::IOException) -> return ()) . writeUTF8File file . unlines . historyLines
166
writeHistory file = handle (\(_::IOException) -> return ()) . writeUTF8File file . unlines . historyLines
121
false
true
3
9
38
73
33
40
null
null
mariefarrell/Hets
Common/Id.hs
gpl-2.0
-- | the name of projections projToken :: Token projToken = genToken "proj"
75
projToken :: Token projToken = genToken "proj"
46
projToken = genToken "proj"
27
true
true
0
5
12
15
8
7
null
null
jfischoff/hs-mitsuba
src/Mitsuba/Element/Class.hs
bsd-3-clause
tag tagName = Element tagName mempty
36
tag tagName = Element tagName mempty
36
tag tagName = Element tagName mempty
36
false
false
1
5
5
19
6
13
null
null
tftio/advent-of-code-2016
src/Day02.hs
cc0-1.0
firstTransitionTable = [[1, 4, 1, 2], [2, 5, 1, 3], [3, 6, 2, 3], [1, 7, 4, 5], [2, 8, 4, 6], [3, 9, 5, 6], [4, 7, 7, 8], [5, 8, 7, 9], ...
341
firstTransitionTable = [[1, 4, 1, 2], [2, 5, 1, 3], [3, 6, 2, 3], [1, 7, 4, 5], [2, 8, 4, 6], [3, 9, 5, 6], [4, 7, 7, 8], [5, 8, 7, 9], ...
341
firstTransitionTable = [[1, 4, 1, 2], [2, 5, 1, 3], [3, 6, 2, 3], [1, 7, 4, 5], [2, 8, 4, 6], [3, 9, 5, 6], [4, 7, 7, 8], [5, 8, 7, 9], ...
341
false
false
0
6
229
141
93
48
null
null
m3mitsuppe/haskell
exercises/ch_07_final.hs
unlicense
foldBool :: a -> a -> Bool -> a foldBool x y b = case b of True -> x False -> y
99
foldBool :: a -> a -> Bool -> a foldBool x y b = case b of True -> x False -> y
99
foldBool x y b = case b of True -> x False -> y
67
false
true
0
7
42
46
23
23
null
null
sdiehl/ghc
compiler/GHC/Hs/Expr.hs
bsd-3-clause
isAtomicHsExpr (HsLit {}) = True
39
isAtomicHsExpr (HsLit {}) = True
39
isAtomicHsExpr (HsLit {}) = True
39
false
false
0
7
11
16
8
8
null
null
nkpart/lens-xml
test/Spec.hs
bsd-3-clause
sample = "<a>5</a>"
21
sample = "<a>5</a>"
21
sample = "<a>5</a>"
21
false
false
0
4
4
6
3
3
null
null
phadej/hpack
src/Hpack/Util.hs
mit
tryReadFile :: FilePath -> IO (Maybe String) tryReadFile file = do r <- try (readFile file) :: IO (Either IOException String) return $!! either (const Nothing) Just r
170
tryReadFile :: FilePath -> IO (Maybe String) tryReadFile file = do r <- try (readFile file) :: IO (Either IOException String) return $!! either (const Nothing) Just r
170
tryReadFile file = do r <- try (readFile file) :: IO (Either IOException String) return $!! either (const Nothing) Just r
125
false
true
0
10
31
77
36
41
null
null
vbalalla/financial_contract_language
valuation.hs
mit
oneCal :: Amount -> Calender oneCal k = konst [1]
49
oneCal :: Amount -> Calender oneCal k = konst [1]
49
oneCal k = konst [1]
20
false
true
0
6
9
27
13
14
null
null
sdiehl/ghc
libraries/base/Foreign/C/Error.hs
bsd-3-clause
eAGAIN = Errno (CONST_EAGAIN)
38
eAGAIN = Errno (CONST_EAGAIN)
38
eAGAIN = Errno (CONST_EAGAIN)
38
false
false
1
5
12
15
6
9
null
null
mjgpy3/butters
test/Butters/TestParser.hs
bsd-3-clause
prop_arbitrary_depth_single_constructor_parser :: Int -> Property prop_arbitrary_depth_single_constructor_parser n = n > 0 ==> single_constructor_text "Name" nestedNTimes `parsesTo` DataDef "Name" [] expectedBListNesting where nestedNTimes = foldr (\_ o -> "[" ++ o ++ "]") "" [1..n] expectedBListNesting = [...
364
prop_arbitrary_depth_single_constructor_parser :: Int -> Property prop_arbitrary_depth_single_constructor_parser n = n > 0 ==> single_constructor_text "Name" nestedNTimes `parsesTo` DataDef "Name" [] expectedBListNesting where nestedNTimes = foldr (\_ o -> "[" ++ o ++ "]") "" [1..n] expectedBListNesting = [...
364
prop_arbitrary_depth_single_constructor_parser n = n > 0 ==> single_constructor_text "Name" nestedNTimes `parsesTo` DataDef "Name" [] expectedBListNesting where nestedNTimes = foldr (\_ o -> "[" ++ o ++ "]") "" [1..n] expectedBListNesting = [foldr (\_ o -> BList [o]) (BList []) [2..n]]
298
false
true
1
11
56
129
67
62
null
null
brendanhay/gogol
gogol-redis/gen/Network/Google/Resource/Redis/Projects/Locations/Instances/Create.hs
mpl-2.0
-- | Required. The logical name of the Redis instance in the customer project -- with the following restrictions: * Must contain only lowercase letters, -- numbers, and hyphens. * Must start with a letter. * Must be between 1-40 -- characters. * Must end with a number or a letter. * Must be unique -- within the custome...
491
plicInstanceId :: Lens' ProjectsLocationsInstancesCreate (Maybe Text) plicInstanceId = lens _plicInstanceId (\ s a -> s{_plicInstanceId = a})
149
plicInstanceId = lens _plicInstanceId (\ s a -> s{_plicInstanceId = a})
79
true
true
0
9
86
52
29
23
null
null
alios/iho-presentation
Data/IHO/S52/Types/Helper.hs
bsd-3-clause
parseVectorInstructions :: Text -> Parser [Text] parseVectorInstructions t = parseLine t $ many' $ do c <- takeWhile $ notInClass ";" skip $ inClass ";" return c
184
parseVectorInstructions :: Text -> Parser [Text] parseVectorInstructions t = parseLine t $ many' $ do c <- takeWhile $ notInClass ";" skip $ inClass ";" return c
184
parseVectorInstructions t = parseLine t $ many' $ do c <- takeWhile $ notInClass ";" skip $ inClass ";" return c
135
false
true
0
10
49
65
29
36
null
null
bravit/Idris-dev
src/Idris/Reflection.hs
bsd-3-clause
reifyTT t = fail ("Unknown reflection term: " ++ show t)
56
reifyTT t = fail ("Unknown reflection term: " ++ show t)
56
reifyTT t = fail ("Unknown reflection term: " ++ show t)
56
false
false
1
8
10
26
10
16
null
null
thomaseding/cgs
src/Hoops/Lex.hs
bsd-3-clause
removeK :: SyntaxToken Hoops -> SyntaxToken Hoops removeK tok = case tok of Identifier name -> case name of "HC_KEY" -> tok 'H':'C':'_':'K':c:cs -> if isUpper c then Identifier $ "HC_" ++ [c] ++ cs else tok _ -> tok _ -> tok
280
removeK :: SyntaxToken Hoops -> SyntaxToken Hoops removeK tok = case tok of Identifier name -> case name of "HC_KEY" -> tok 'H':'C':'_':'K':c:cs -> if isUpper c then Identifier $ "HC_" ++ [c] ++ cs else tok _ -> tok _ -> tok
280
removeK tok = case tok of Identifier name -> case name of "HC_KEY" -> tok 'H':'C':'_':'K':c:cs -> if isUpper c then Identifier $ "HC_" ++ [c] ++ cs else tok _ -> tok _ -> tok
230
false
true
2
12
98
113
55
58
null
null
brendanhay/gogol
gogol-serviceusage/gen/Network/Google/ServiceUsage/Types/Product.hs
mpl-2.0
-- | Creates a value of 'StatusDetailsItem' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'sdiAddtional' statusDetailsItem :: HashMap Text JSONValue -- ^ 'sdiAddtional' -> StatusDetailsItem statusDetailsItem pSdiAddtional_ = ...
383
statusDetailsItem :: HashMap Text JSONValue -- ^ 'sdiAddtional' -> StatusDetailsItem statusDetailsItem pSdiAddtional_ = StatusDetailsItem' {_sdiAddtional = _Coerce # pSdiAddtional_}
191
statusDetailsItem pSdiAddtional_ = StatusDetailsItem' {_sdiAddtional = _Coerce # pSdiAddtional_}
98
true
true
0
7
62
41
24
17
null
null
mb21/qua-kit
apps/hs/helen/src/Helen/Core/Types.hs
mit
-- | Keeps track of all services serviceManager :: Functor f => (ServiceManager -> f ServiceManager) -> Helen -> f Helen serviceManager k h = fmap (\newM -> h { _serviceManager = newM }) (k $ _serviceManager h)
211
serviceManager :: Functor f => (ServiceManager -> f ServiceManager) -> Helen -> f Helen serviceManager k h = fmap (\newM -> h { _serviceManager = newM }) (k $ _serviceManager h)
178
serviceManager k h = fmap (\newM -> h { _serviceManager = newM }) (k $ _serviceManager h)
90
true
true
0
10
38
80
40
40
null
null
flipstone/kioku
benchmarks/Main.hs
mit
recallPrefixed65535 :: BS.ByteString -> BenchItem recallPrefixed65535 = unLengthPrefix65535 BenchItem (field &. field &. field &. field &. field)
169
recallPrefixed65535 :: BS.ByteString -> BenchItem recallPrefixed65535 = unLengthPrefix65535 BenchItem (field &. field &. field &. field &. field)
169
recallPrefixed65535 = unLengthPrefix65535 BenchItem (field &. field &. field &. field &. field)
119
false
true
0
10
41
41
21
20
null
null
lucasbraun/mt-rewrite
src/MtRewriteSelect.hs
bsd-3-clause
rewriteScalarExpr spec (c,d,o) p0 (Pa.Identifier iAnn i) trefs _ b = if MtTrivialOptimization `elem` o && (length d == 1) && (head d == c) then Right (p0, Pa.Identifier iAnn i) else rewriteIdentifier spec (c,d,o) p0 (Pa.Identifier iAnn i) trefs b
266
rewriteScalarExpr spec (c,d,o) p0 (Pa.Identifier iAnn i) trefs _ b = if MtTrivialOptimization `elem` o && (length d == 1) && (head d == c) then Right (p0, Pa.Identifier iAnn i) else rewriteIdentifier spec (c,d,o) p0 (Pa.Identifier iAnn i) trefs b
266
rewriteScalarExpr spec (c,d,o) p0 (Pa.Identifier iAnn i) trefs _ b = if MtTrivialOptimization `elem` o && (length d == 1) && (head d == c) then Right (p0, Pa.Identifier iAnn i) else rewriteIdentifier spec (c,d,o) p0 (Pa.Identifier iAnn i) trefs b
266
false
false
0
10
60
130
69
61
null
null
allanderek/ipclib
Language/Pepa/Syntax.hs
gpl-2.0
{-| The component caused by combining two components together in a parallel composition in which the two processes synchronise over all of the names which they share. CLEARLY CURRENTLY WRONG -} wildcardComposition :: ParsedComponent -> ParsedComponent -> ParsedComponent wildcardComposition l = Cooperation l...
329
wildcardComposition :: ParsedComponent -> ParsedComponent -> ParsedComponent wildcardComposition l = Cooperation l WildCard
123
wildcardComposition l = Cooperation l WildCard
46
true
true
0
6
55
28
14
14
null
null
rahulmutt/ghcvm
compiler/Eta/Rename/RnUtils.hs
bsd-3-clause
pprHsDocContext (ForeignDeclCtx name) = text "the foreign declaration for" <+> quotes (ppr name)
99
pprHsDocContext (ForeignDeclCtx name) = text "the foreign declaration for" <+> quotes (ppr name)
99
pprHsDocContext (ForeignDeclCtx name) = text "the foreign declaration for" <+> quotes (ppr name)
99
false
false
0
8
15
31
14
17
null
null
jstolarek/ghc
compiler/nativeGen/X86/Ppr.hs
bsd-3-clause
pprInstr (CALL (Left imm) _) = ptext (sLit "\tcall ") <> pprImm imm
77
pprInstr (CALL (Left imm) _) = ptext (sLit "\tcall ") <> pprImm imm
77
pprInstr (CALL (Left imm) _) = ptext (sLit "\tcall ") <> pprImm imm
77
false
false
0
9
22
39
18
21
null
null
jhedev/campus
Main.hs
mit
main :: IO () main = do port <- read <$> getEnv "PORT" run port app
71
main :: IO () main = do port <- read <$> getEnv "PORT" run port app
71
main = do port <- read <$> getEnv "PORT" run port app
57
false
true
0
9
19
38
17
21
null
null
Happstack/happstack-server
src/Happstack/Server/Internal/Cookie.hs
bsd-3-clause
calcLife (Expires expirationDate) = do now <- getApproximateUTCTime return $ Just (round $ expirationDate `diffUTCTime` now, expirationDate)
164
calcLife (Expires expirationDate) = do now <- getApproximateUTCTime return $ Just (round $ expirationDate `diffUTCTime` now, expirationDate)
164
calcLife (Expires expirationDate) = do now <- getApproximateUTCTime return $ Just (round $ expirationDate `diffUTCTime` now, expirationDate)
164
false
false
0
11
40
48
24
24
null
null
siddhanathan/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
smallArrayPrimTyConKey = mkPreludeTyConUnique 178
57
smallArrayPrimTyConKey = mkPreludeTyConUnique 178
57
smallArrayPrimTyConKey = mkPreludeTyConUnique 178
57
false
false
0
5
11
9
4
5
null
null
rawlep/EQS
esit2.hs
mit
add (Add (Sub l r) k) | canComp l r = Add (sub $ Sub l r) $ add k | canComp k r = Add (add l) (sub $ Sub k r) | canComp l k = Sub (add $ Add l k) (add r) | otherwise ...
364
add (Add (Sub l r) k) | canComp l r = Add (sub $ Sub l r) $ add k | canComp k r = Add (add l) (sub $ Sub k r) | canComp l k = Sub (add $ Add l k) (add r) | otherwise ...
364
add (Add (Sub l r) k) | canComp l r = Add (sub $ Sub l r) $ add k | canComp k r = Add (add l) (sub $ Sub k r) | canComp l k = Sub (add $ Add l k) (add r) | otherwise ...
364
false
false
3
10
219
169
79
90
null
null
sdiehl/ghc
libraries/base/Data/OldList.hs
bsd-3-clause
foldr7_left _ z _ _ _ _ _ _ _ _ = z
66
foldr7_left _ z _ _ _ _ _ _ _ _ = z
66
foldr7_left _ z _ _ _ _ _ _ _ _ = z
66
false
false
0
5
43
27
13
14
null
null
np/ling
Ling/Fmt/Benjamin/Migrate.hs
bsd-3-clause
transOptSig :: OptSig -> L.OptSig transOptSig = \case NoSig -> L.NoSig SoSig term -> L.SoSig (transTerm term)
118
transOptSig :: OptSig -> L.OptSig transOptSig = \case NoSig -> L.NoSig SoSig term -> L.SoSig (transTerm term)
118
transOptSig = \case NoSig -> L.NoSig SoSig term -> L.SoSig (transTerm term)
84
false
true
0
10
25
47
23
24
null
null
noteed/mojito
Language/Mojito/Inference/SystemCT1999/SystemCT1999.hs
bsd-3-clause
---------------------------------------------------------------------- -- Type inference ---------------------------------------------------------------------- pp :: Expr Int -> Context -> Inf (Constrained,Context) pp e g = (\(a,b) -> do a' <- substitute a b' <- substitute' b return (...
7,335
pp :: Expr Int -> Context -> Inf (Constrained,Context) pp e g = (\(a,b) -> do a' <- substitute a b' <- substitute' b return (a',b')) =<< case e of Id key x -> do (t1, g1) <- pt x g recordType key t1 g1 tell [NId key x g (t1, g1)] return (t1, g1) FltLit key x -> d...
7,174
pp e g = (\(a,b) -> do a' <- substitute a b' <- substitute' b return (a',b')) =<< case e of Id key x -> do (t1, g1) <- pt x g recordType key t1 g1 tell [NId key x g (t1, g1)] return (t1, g1) FltLit key x -> do (t1, g1) <- do c <- refresh $ typed flt32 -- mimi...
7,119
true
true
56
17
2,774
2,312
1,170
1,142
null
null
andorp/grin
grin/src/AbstractInterpretation/BinaryIR.hs
bsd-3-clause
writeTagSet :: Set Tag -> W () writeTagSet s = do tm <- gets envTagMap let size = fromIntegral $ Map.size tm case Map.lookup s tm of Just idx -> writeI32 idx Nothing -> do modify' $ \env@Env{..} -> env {envTagMap = Map.insert s size envTagMap} writeI32 size
283
writeTagSet :: Set Tag -> W () writeTagSet s = do tm <- gets envTagMap let size = fromIntegral $ Map.size tm case Map.lookup s tm of Just idx -> writeI32 idx Nothing -> do modify' $ \env@Env{..} -> env {envTagMap = Map.insert s size envTagMap} writeI32 size
283
writeTagSet s = do tm <- gets envTagMap let size = fromIntegral $ Map.size tm case Map.lookup s tm of Just idx -> writeI32 idx Nothing -> do modify' $ \env@Env{..} -> env {envTagMap = Map.insert s size envTagMap} writeI32 size
252
false
true
0
19
73
136
61
75
null
null
ctford/Idris-Elba-dev
src/Idris/ElabDecls.hs
bsd-3-clause
elabCon :: ElabInfo -> SyntaxInfo -> Name -> Bool -> (String, Name, PTerm, FC, [Name]) -> Idris (Name, Type) elabCon info syn tn codata (doc, n, t_in, fc, forcenames) = do checkUndefined fc n ctxt <- getContext i <- getIState t_in <- implicit syn n (if codata then mkLazy t_in e...
2,079
elabCon :: ElabInfo -> SyntaxInfo -> Name -> Bool -> (String, Name, PTerm, FC, [Name]) -> Idris (Name, Type) elabCon info syn tn codata (doc, n, t_in, fc, forcenames) = do checkUndefined fc n ctxt <- getContext i <- getIState t_in <- implicit syn n (if codata then mkLazy t_in e...
2,079
elabCon info syn tn codata (doc, n, t_in, fc, forcenames) = do checkUndefined fc n ctxt <- getContext i <- getIState t_in <- implicit syn n (if codata then mkLazy t_in else t_in) let t = addImpl i t_in logLvl 2 $ show fc ++ ":Constructor " ++ show n ++ " : " ++ show t ...
1,959
false
true
3
16
733
897
430
467
null
null
forked-upstream-packages-for-ghcjs/ghc
libraries/base/GHC/Event/TimerManager.hs
bsd-3-clause
loop :: TimerManager -> IO () loop mgr = do state <- atomicModifyIORef' (emState mgr) $ \s -> case s of Created -> (Running, s) _ -> (s, s) case state of Created -> go `finally` cleanup mgr Dying -> cleanup mgr _ -> do cleanup mgr error $ "GHC.Event.Manager.loop: ...
437
loop :: TimerManager -> IO () loop mgr = do state <- atomicModifyIORef' (emState mgr) $ \s -> case s of Created -> (Running, s) _ -> (s, s) case state of Created -> go `finally` cleanup mgr Dying -> cleanup mgr _ -> do cleanup mgr error $ "GHC.Event.Manager.loop: ...
437
loop mgr = do state <- atomicModifyIORef' (emState mgr) $ \s -> case s of Created -> (Running, s) _ -> (s, s) case state of Created -> go `finally` cleanup mgr Dying -> cleanup mgr _ -> do cleanup mgr error $ "GHC.Event.Manager.loop: state is already " ++ ...
407
false
true
0
13
158
159
76
83
null
null
Paow/encore
src/back/CodeGen/CCodeNames.hs
bsd-3-clause
runtimeTypeInitFnName :: Ty.Type -> CCode Name runtimeTypeInitFnName clazz = Nam $ encoreName "type_init" (qualifyRefType clazz)
132
runtimeTypeInitFnName :: Ty.Type -> CCode Name runtimeTypeInitFnName clazz = Nam $ encoreName "type_init" (qualifyRefType clazz)
132
runtimeTypeInitFnName clazz = Nam $ encoreName "type_init" (qualifyRefType clazz)
85
false
true
0
8
18
38
18
20
null
null
robrix/surface
src/Text/Pretty.hs
bsd-3-clause
iff :: (a -> Bool) -> (a -> b) -> (a -> b) -> a -> b iff test con alt a = (if test a then con else alt) a
105
iff :: (a -> Bool) -> (a -> b) -> (a -> b) -> a -> b iff test con alt a = (if test a then con else alt) a
105
iff test con alt a = (if test a then con else alt) a
52
false
true
0
9
30
80
40
40
null
null
YuichiroSato/CategoryTheory
src/chapter01/FreeMonoid.hs
apache-2.0
fromList :: [String] -> AStar fromList xs = generate $ Alphabet $ Set.fromList xs
81
fromList :: [String] -> AStar fromList xs = generate $ Alphabet $ Set.fromList xs
81
fromList xs = generate $ Alphabet $ Set.fromList xs
51
false
true
0
7
13
34
17
17
null
null
Tener/HaNS
example/dhcp.hs
bsd-3-clause
bootpc = UdpPort 68
19
bootpc = UdpPort 68
19
bootpc = UdpPort 68
19
false
false
1
5
3
13
4
9
null
null
vincenthz/hs-bytedump
Text/Bytedump.hs
bsd-3-clause
ex _ = ' '
12
hex _ = ' '
12
hex _ = ' '
12
false
false
0
5
6
9
4
5
null
null
jonaprieto/athena
src/Athena/TSTP/Base.hs
mit
readType "axiom_of_choice" = AxiomOfChoice
42
readType "axiom_of_choice" = AxiomOfChoice
42
readType "axiom_of_choice" = AxiomOfChoice
42
false
false
0
4
3
10
4
6
null
null
Philonous/d-bus
src/DBus/Wire.hs
mit
getDBV' :: Sing t -> DBusGet (DBusValue t) getDBV' (SDBusSimpleType STypeByte ) = DBVByte <$> getWord8
108
getDBV' :: Sing t -> DBusGet (DBusValue t) getDBV' (SDBusSimpleType STypeByte ) = DBVByte <$> getWord8
108
getDBV' (SDBusSimpleType STypeByte ) = DBVByte <$> getWord8
65
false
true
0
8
21
40
19
21
null
null
afcowie/vaultaire
bench/ReaderAlgorithms.hs
bsd-3-clause
simplePoints :: [Word64] -> ByteString simplePoints = toStrict . toLazyByteString . mconcat . map makeSimplePoint
113
simplePoints :: [Word64] -> ByteString simplePoints = toStrict . toLazyByteString . mconcat . map makeSimplePoint
113
simplePoints = toStrict . toLazyByteString . mconcat . map makeSimplePoint
74
false
true
0
7
14
33
17
16
null
null
ilikebits/euler
test/Spec.hs
bsd-3-clause
main :: IO () main = do p22data <- readFile "./data/names.txt" hspec $ do describe "Project Euler problems" $ do expect 1 233168 expect 2 4613732 expect 3 6857 expect 4 906609 expect 5 232792560 expect 6 25164150 expect 7 104743 expect 8 23514624000 expect ...
1,136
main :: IO () main = do p22data <- readFile "./data/names.txt" hspec $ do describe "Project Euler problems" $ do expect 1 233168 expect 2 4613732 expect 3 6857 expect 4 906609 expect 5 232792560 expect 6 25164150 expect 7 104743 expect 8 23514624000 expect ...
1,136
main = do p22data <- readFile "./data/names.txt" hspec $ do describe "Project Euler problems" $ do expect 1 233168 expect 2 4613732 expect 3 6857 expect 4 906609 expect 5 232792560 expect 6 25164150 expect 7 104743 expect 8 23514624000 expect 9 31875000 ...
1,122
false
true
0
16
407
394
153
241
null
null
plaprade/haskoin
haskoin-core/src/Network/Haskoin/Script/Evaluator.hs
unlicense
tStack1 :: (StackValue -> Stack) -> StackOperation () tStack1 f = f <$> popStack >>= prependStack
97
tStack1 :: (StackValue -> Stack) -> StackOperation () tStack1 f = f <$> popStack >>= prependStack
97
tStack1 f = f <$> popStack >>= prependStack
43
false
true
2
8
15
43
20
23
null
null
olsner/ghc
libraries/template-haskell/Language/Haskell/TH/Lib.hs
bsd-3-clause
conE :: Name -> ExpQ conE s = return (ConE s)
46
conE :: Name -> ExpQ conE s = return (ConE s)
46
conE s = return (ConE s)
25
false
true
0
7
11
32
14
18
null
null
Peaker/lamdu
src/Lamdu/Sugar/Convert/Fragment.hs
gpl-3.0
makeToNom :: Monad m => Ann (Input.Payload m a) # V.Term -> Pure # T.Type -> NominalId -> T m [(TypeMatch, Ann (Write m) # V.Term)] makeToNom arg t tid = emplaceExtendArg t arg <&> Lens.mapped . _2 %~ Ann WriteNew . V.BToNom . V.ToNom tid
254
makeToNom :: Monad m => Ann (Input.Payload m a) # V.Term -> Pure # T.Type -> NominalId -> T m [(TypeMatch, Ann (Write m) # V.Term)] makeToNom arg t tid = emplaceExtendArg t arg <&> Lens.mapped . _2 %~ Ann WriteNew . V.BToNom . V.ToNom tid
254
makeToNom arg t tid = emplaceExtendArg t arg <&> Lens.mapped . _2 %~ Ann WriteNew . V.BToNom . V.ToNom tid
110
false
true
0
16
61
129
62
67
null
null
toddmohney/tweeter-bot
lib/Tweet/Tweet.hs
mit
parseTweet (i:c:rt:[]) | isJust safeIndex = Just $ Tweet (fromJust safeIndex) c (readMay rt) | otherwise = Nothing where safeIndex = readMay i
165
parseTweet (i:c:rt:[]) | isJust safeIndex = Just $ Tweet (fromJust safeIndex) c (readMay rt) | otherwise = Nothing where safeIndex = readMay i
165
parseTweet (i:c:rt:[]) | isJust safeIndex = Just $ Tweet (fromJust safeIndex) c (readMay rt) | otherwise = Nothing where safeIndex = readMay i
165
false
false
0
10
45
77
36
41
null
null
spechub/Hets
CSL/Keywords.hs
gpl-2.0
acoshS :: String acoshS = "acosh"
33
acoshS :: String acoshS = "acosh"
33
acoshS = "acosh"
16
false
true
0
6
5
18
7
11
null
null
samgd/graph
tests/doctests.hs
mit
main = doctest ["-isrc", "src/Graph/Parse.hs"]
46
main = doctest ["-isrc", "src/Graph/Parse.hs"]
46
main = doctest ["-isrc", "src/Graph/Parse.hs"]
46
false
false
0
6
4
15
8
7
null
null
Kheldar/hw-koans
solution/Koan/Simple.hs
bsd-3-clause
zipWith :: (a -> b -> c) -> [a] -> [b] -> [c] zipWith _ [] _ = []
75
zipWith :: (a -> b -> c) -> [a] -> [b] -> [c] zipWith _ [] _ = []
75
zipWith _ [] _ = []
29
false
true
0
10
28
60
30
30
null
null
energyflowanalysis/efa-2.1
test/EFA/Test/Signal.hs
bsd-3-clause
machineEpsilon :: Double machineEpsilon = last . Prelude.map (subtract 1) . takeWhile (/= 1) . Prelude.map (+ 1) . iterate (/2) $ 1
141
machineEpsilon :: Double machineEpsilon = last . Prelude.map (subtract 1) . takeWhile (/= 1) . Prelude.map (+ 1) . iterate (/2) $ 1
141
machineEpsilon = last . Prelude.map (subtract 1) . takeWhile (/= 1) . Prelude.map (+ 1) . iterate (/2) $ 1
116
false
true
4
7
32
70
34
36
null
null
gabesoft/kapi
src/Persistence/Common.hs
bsd-3-clause
-- ^ -- Extract the document from a field value and convert it to a record docToRec :: Label -> Field -> Record docToRec name field = Record (at name [field])
158
docToRec :: Label -> Field -> Record docToRec name field = Record (at name [field])
83
docToRec name field = Record (at name [field])
46
true
true
0
8
30
40
21
19
null
null
juanpaucar/hadron
src/Hadron/Run.hs
bsd-3-clause
hdfsMkdir :: RunContext -> FilePath -> IO () hdfsMkdir rc fp = case rc of LocalRun lcs -> L.runLocal lcs (L.hdfsMkdir (LocalFile fp)) HadoopRun he _ -> H.hdfsMkdir he fp -------------------------------------------------------------------------------
259
hdfsMkdir :: RunContext -> FilePath -> IO () hdfsMkdir rc fp = case rc of LocalRun lcs -> L.runLocal lcs (L.hdfsMkdir (LocalFile fp)) HadoopRun he _ -> H.hdfsMkdir he fp -------------------------------------------------------------------------------
259
hdfsMkdir rc fp = case rc of LocalRun lcs -> L.runLocal lcs (L.hdfsMkdir (LocalFile fp)) HadoopRun he _ -> H.hdfsMkdir he fp -------------------------------------------------------------------------------
214
false
true
4
11
40
75
37
38
null
null
bgold-cosmos/Tidal
src/Sound/Tidal/Params.hs
gpl-3.0
panwidthbus :: Pattern Int -> Pattern Double -> ControlPattern panwidthbus busid pat = (pF "panwidth" pat) # (pI "^panwidth" busid)
131
panwidthbus :: Pattern Int -> Pattern Double -> ControlPattern panwidthbus busid pat = (pF "panwidth" pat) # (pI "^panwidth" busid)
131
panwidthbus busid pat = (pF "panwidth" pat) # (pI "^panwidth" busid)
68
false
true
2
8
19
57
25
32
null
null
lambdageek/insomnia
src/Insomnia/Typecheck/Module.hs
bsd-3-clause
checkSigDecl :: Stochasticity -> Type -> TC ValueDecl checkSigDecl stoch t = do t' <- checkType t KType return $ SigDecl stoch t'
133
checkSigDecl :: Stochasticity -> Type -> TC ValueDecl checkSigDecl stoch t = do t' <- checkType t KType return $ SigDecl stoch t'
133
checkSigDecl stoch t = do t' <- checkType t KType return $ SigDecl stoch t'
79
false
true
0
8
26
51
23
28
null
null
jwiegley/github
samples/Repos/ShowRepo.hs
bsd-3-clause
formatDate = show . Github.fromDate
35
formatDate = show . Github.fromDate
35
formatDate = show . Github.fromDate
35
false
false
0
6
4
12
6
6
null
null
randen/cabal
Cabal/Distribution/Simple.hs
bsd-3-clause
benchAction :: UserHooks -> BenchmarkFlags -> Args -> IO () benchAction hooks flags args = do distPref <- findDistPrefOrDefault (benchmarkDistPref flags) let verbosity = fromFlag $ benchmarkVerbosity flags flags' = flags { benchmarkDistPref = toFlag distPref } hookedActionWithArgs preBench benchHook...
414
benchAction :: UserHooks -> BenchmarkFlags -> Args -> IO () benchAction hooks flags args = do distPref <- findDistPrefOrDefault (benchmarkDistPref flags) let verbosity = fromFlag $ benchmarkVerbosity flags flags' = flags { benchmarkDistPref = toFlag distPref } hookedActionWithArgs preBench benchHook...
414
benchAction hooks flags args = do distPref <- findDistPrefOrDefault (benchmarkDistPref flags) let verbosity = fromFlag $ benchmarkVerbosity flags flags' = flags { benchmarkDistPref = toFlag distPref } hookedActionWithArgs preBench benchHook postBench (getBuildConfig hooks verbosity distP...
354
false
true
0
13
91
117
54
63
null
null
AlexeyRaga/eta
compiler/ETA/Prelude/PrimOp.hs
bsd-3-clause
tagOf_PrimOp IndexJByteArrayOp = _ILIT(1095)
44
tagOf_PrimOp IndexJByteArrayOp = _ILIT(1095)
44
tagOf_PrimOp IndexJByteArrayOp = _ILIT(1095)
44
false
false
0
6
3
16
7
9
null
null
yuga/ghc-mod
Language/Haskell/GhcMod/ErrMsg.hs
bsd-3-clause
handleErrMsg :: LineSeparator -> SourceError -> Ghc [String] handleErrMsg ls err = do dflag <- G.getSessionDynFlags style <- getStyle return . errBagToStrList dflag ls style . srcErrorMessages $ err
210
handleErrMsg :: LineSeparator -> SourceError -> Ghc [String] handleErrMsg ls err = do dflag <- G.getSessionDynFlags style <- getStyle return . errBagToStrList dflag ls style . srcErrorMessages $ err
210
handleErrMsg ls err = do dflag <- G.getSessionDynFlags style <- getStyle return . errBagToStrList dflag ls style . srcErrorMessages $ err
149
false
true
0
10
40
73
33
40
null
null
emwap/feldspar-compiler
src/Feldspar/Compiler/Frontend/CommandLine/Main.hs
bsd-3-clause
main :: IO () main = do (opts, inputFileName) <- handleOptions optionDescriptors startOptions helpHeader let outputFileName = convertOutputFileName inputFileName (optOutputFileName opts) cOutputFileName = makeCFileName outputFileName hOutputFileName = makeHFileName outputFileName prepareInp...
1,854
main :: IO () main = do (opts, inputFileName) <- handleOptions optionDescriptors startOptions helpHeader let outputFileName = convertOutputFileName inputFileName (optOutputFileName opts) cOutputFileName = makeCFileName outputFileName hOutputFileName = makeHFileName outputFileName prepareInp...
1,854
main = do (opts, inputFileName) <- handleOptions optionDescriptors startOptions helpHeader let outputFileName = convertOutputFileName inputFileName (optOutputFileName opts) cOutputFileName = makeCFileName outputFileName hOutputFileName = makeHFileName outputFileName prepareInputFile inputFi...
1,840
false
true
0
18
446
372
166
206
null
null
ezyang/ghc
compiler/utils/Outputable.hs
bsd-3-clause
debugStyle :: PprStyle -> Bool debugStyle PprDebug = True
57
debugStyle :: PprStyle -> Bool debugStyle PprDebug = True
57
debugStyle PprDebug = True
26
false
true
0
5
8
18
9
9
null
null
fmapfmapfmap/amazonka
amazonka-storagegateway/gen/Network/AWS/StorageGateway/ActivateGateway.hs
mpl-2.0
-- | One of the values that indicates the time zone you want to set for the -- gateway. The time zone is used, for example, for scheduling snapshots -- and your gateway\'s maintenance schedule. agGatewayTimezone :: Lens' ActivateGateway Text agGatewayTimezone = lens _agGatewayTimezone (\ s a -> s{_agGatewayTimezone = a...
322
agGatewayTimezone :: Lens' ActivateGateway Text agGatewayTimezone = lens _agGatewayTimezone (\ s a -> s{_agGatewayTimezone = a})
128
agGatewayTimezone = lens _agGatewayTimezone (\ s a -> s{_agGatewayTimezone = a})
80
true
true
1
9
50
47
24
23
null
null
romanb/amazonka
amazonka-route53/gen/Network/AWS/Route53/GetReusableDelegationSet.hs
mpl-2.0
-- | 'GetReusableDelegationSetResponse' constructor. -- -- The fields accessible through corresponding lenses are: -- -- * 'grdsrDelegationSet' @::@ 'DelegationSet' -- getReusableDelegationSetResponse :: DelegationSet -- ^ 'grdsrDelegationSet' -> GetReusableDelegationSetResponse getReus...
420
getReusableDelegationSetResponse :: DelegationSet -- ^ 'grdsrDelegationSet' -> GetReusableDelegationSetResponse getReusableDelegationSetResponse p1 = GetReusableDelegationSetResponse { _grdsrDelegationSet = p1 }
252
getReusableDelegationSetResponse p1 = GetReusableDelegationSetResponse { _grdsrDelegationSet = p1 }
107
true
true
0
7
77
42
23
19
null
null
sdiehl/ghc
compiler/prelude/PrelInfo.hs
bsd-3-clause
knownNamesInfo :: NameEnv SDoc knownNamesInfo = unitNameEnv coercibleTyConName $ vcat [ text "Coercible is a special constraint with custom solving rules." , text "It is not a class." , text "Please see section `The Coercible constraint`" , text "of the user's guide for details." ]
313
knownNamesInfo :: NameEnv SDoc knownNamesInfo = unitNameEnv coercibleTyConName $ vcat [ text "Coercible is a special constraint with custom solving rules." , text "It is not a class." , text "Please see section `The Coercible constraint`" , text "of the user's guide for details." ]
313
knownNamesInfo = unitNameEnv coercibleTyConName $ vcat [ text "Coercible is a special constraint with custom solving rules." , text "It is not a class." , text "Please see section `The Coercible constraint`" , text "of the user's guide for details." ]
282
false
true
0
8
75
48
23
25
null
null
johanneshilden/liquid-epsilon
Util/HTML.hs
bsd-3-clause
empty :: Html empty = Empty
27
empty :: Html empty = Empty
27
empty = Empty
13
false
true
0
4
5
11
6
5
null
null
rodrigo-machado/verigraph
src/library/Logic/Ctl/Semantics.hs
gpl-3.0
-- | Obtain all states that satisfy the given CTL expression. satisfyExpr :: KripkeStructure String -> Expr -> [State String] satisfyExpr model expr = statesByIds model (satisfyExpr' model expr)
196
satisfyExpr :: KripkeStructure String -> Expr -> [State String] satisfyExpr model expr = statesByIds model (satisfyExpr' model expr)
134
satisfyExpr model expr = statesByIds model (satisfyExpr' model expr)
70
true
true
0
8
30
47
23
24
null
null