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
lambda-llama/timeout
src/Control/Timeout.hs
mit
withTimeout :: (MonadMask m, MonadIO m) => NominalDiffTime -> (Timeout -> m a) -> m (Maybe a) withTimeout t f | t <= 0 = return Nothing | otherwise = do ex <- liftIO $ mdo pid <- myThreadId ex <- registerTimeout t (throwTo pid ex) return ex handleJust (\e -> if e == ex th...
556
withTimeout :: (MonadMask m, MonadIO m) => NominalDiffTime -> (Timeout -> m a) -> m (Maybe a) withTimeout t f | t <= 0 = return Nothing | otherwise = do ex <- liftIO $ mdo pid <- myThreadId ex <- registerTimeout t (throwTo pid ex) return ex handleJust (\e -> if e == ex th...
556
withTimeout t f | t <= 0 = return Nothing | otherwise = do ex <- liftIO $ mdo pid <- myThreadId ex <- registerTimeout t (throwTo pid ex) return ex handleJust (\e -> if e == ex then Just () else Nothing) (\_ -> return Nothing) (f ex >>= \r -> ...
462
false
true
0
15
174
212
104
108
null
null
gencer/bond
compiler/src/Language/Bond/Codegen/TypeMapping.hs
mit
javaBoxedType t = javaType t
28
javaBoxedType t = javaType t
28
javaBoxedType t = javaType t
28
false
false
0
5
4
12
5
7
null
null
ryantrinkle/ghcjs
src/Gen2/Prim.hs
mit
genPrim _ _ WriteArrayArrayOp_MutableArrayArray [] [a,n,v] = PrimInline [j| `a`[`n`] = `v` |]
93
genPrim _ _ WriteArrayArrayOp_MutableArrayArray [] [a,n,v] = PrimInline [j| `a`[`n`] = `v` |]
93
genPrim _ _ WriteArrayArrayOp_MutableArrayArray [] [a,n,v] = PrimInline [j| `a`[`n`] = `v` |]
93
false
false
3
6
12
36
20
16
null
null
mattias-lundell/timber-llvm
src/Syntax2Core.hs
bsd-3-clause
s2cDecls env (DKSig c k : ds) ke ts ws bss xs es = do ck <- s2cKSig (c,k) s2cDecls env ds (ck:ke) ts ws bss xs es
183
s2cDecls env (DKSig c k : ds) ke ts ws bss xs es = do ck <- s2cKSig (c,k) s2cDecls env ds (ck:ke) ts ws bss xs es
183
s2cDecls env (DKSig c k : ds) ke ts ws bss xs es = do ck <- s2cKSig (c,k) s2cDecls env ds (ck:ke) ts ws bss xs es
183
false
false
0
9
97
78
38
40
null
null
kim/amazonka
amazonka-ec2/gen/Network/AWS/EC2/Types.hs
mpl-2.0
-- | Any tags assigned to the VPC. vpcTags :: Lens' Vpc [Tag] vpcTags = lens _vpcTags (\s a -> s { _vpcTags = a }) . _List
122
vpcTags :: Lens' Vpc [Tag] vpcTags = lens _vpcTags (\s a -> s { _vpcTags = a }) . _List
87
vpcTags = lens _vpcTags (\s a -> s { _vpcTags = a }) . _List
60
true
true
0
9
27
54
27
27
null
null
bitemyapp/perdure
src/Database/Perdure/CDeserializer.hs
apache-2.0
-- TODO figure out why the Deserializer's Allocator df is free to differ from f. Why is it a type argument of Deserializer at all if it can be anything? -- TODO consider reimplementing as in CSerializer (no Serializer layer, and possibly with continuations) and check performance deserializeFromArray :: (Allocatio...
526
deserializeFromArray :: (Allocation f, Allocation df, Deserializable w) => Deserializer df a -> ArrayRange (PrimArray f w) -> DeserOut a deserializeFromArray d = (\(ArrayRange ar start _) -> deserialize d (refineLen start) ar) . deserInput
239
deserializeFromArray d = (\(ArrayRange ar start _) -> deserialize d (refineLen start) ar) . deserInput
102
true
true
0
10
88
103
51
52
null
null
ScrambledEggsOnToast/kdt
lib-src/Data/KdMap/Static.hs
mit
isTreeNodeValid pointAsList axis (TreeNode l (k, _) nodeAxisVal r) = let childrenAxisValues = map ((!! axis) . pointAsList . fst) . assocsInternal leftSubtreeLess = L.all (<= nodeAxisVal) $ childrenAxisValues l rightSubtreeGreater = L.all (> nodeAxisVal) $ childrenAxisValues r nextAxis = (axis + 1) ...
483
isTreeNodeValid pointAsList axis (TreeNode l (k, _) nodeAxisVal r) = let childrenAxisValues = map ((!! axis) . pointAsList . fst) . assocsInternal leftSubtreeLess = L.all (<= nodeAxisVal) $ childrenAxisValues l rightSubtreeGreater = L.all (> nodeAxisVal) $ childrenAxisValues r nextAxis = (axis + 1) ...
483
isTreeNodeValid pointAsList axis (TreeNode l (k, _) nodeAxisVal r) = let childrenAxisValues = map ((!! axis) . pointAsList . fst) . assocsInternal leftSubtreeLess = L.all (<= nodeAxisVal) $ childrenAxisValues l rightSubtreeGreater = L.all (> nodeAxisVal) $ childrenAxisValues r nextAxis = (axis + 1) ...
483
false
false
0
14
89
159
82
77
null
null
mhwombat/creatur-wains-iomha
src/ALife/Creatur/Wain/Iomha/Daemon.hs
bsd-3-clause
main :: IO () main = do u <- loadUniverse let message = versionInfo ++ ", configuration=" ++ show u let j = simpleJob { task=runInteractingAgents run doNothing endRoundProgram, onStartup=startupHandler message, onShutdown=shutdownHandler message, sleepTime=view uSleepBetweenT...
439
main :: IO () main = do u <- loadUniverse let message = versionInfo ++ ", configuration=" ++ show u let j = simpleJob { task=runInteractingAgents run doNothing endRoundProgram, onStartup=startupHandler message, onShutdown=shutdownHandler message, sleepTime=view uSleepBetweenT...
439
main = do u <- loadUniverse let message = versionInfo ++ ", configuration=" ++ show u let j = simpleJob { task=runInteractingAgents run doNothing endRoundProgram, onStartup=startupHandler message, onShutdown=shutdownHandler message, sleepTime=view uSleepBetweenTasks u } let...
425
false
true
1
10
108
144
74
70
null
null
jgm/pandoc2
Text/Pandoc2/Reader/Markdown.hs
gpl-2.0
pApplyMacros' :: Text -> MP m Text pApplyMacros' = return . id
62
pApplyMacros' :: Text -> MP m Text pApplyMacros' = return . id
62
pApplyMacros' = return . id
27
false
true
0
7
11
30
13
17
null
null
Lainepress/hub-src
Hub/Parse.hs
bsd-3-clause
chk_comnt st0 nd = simple_node True st0 nd "comnt" chk where chk st lc arg = case comntST st of Nothing -> YUP (st{comntST=Just arg}) Just _ -> NOPE $ err lc "<comnt> respecified"
287
chk_comnt st0 nd = simple_node True st0 nd "comnt" chk where chk st lc arg = case comntST st of Nothing -> YUP (st{comntST=Just arg}) Just _ -> NOPE $ err lc "<comnt> respecified"
287
chk_comnt st0 nd = simple_node True st0 nd "comnt" chk where chk st lc arg = case comntST st of Nothing -> YUP (st{comntST=Just arg}) Just _ -> NOPE $ err lc "<comnt> respecified"
287
false
false
1
12
141
89
40
49
null
null
mfpi/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/ARB/Compatibility/Tokens.hs
bsd-3-clause
gl_INTENSITY4 :: GLenum gl_INTENSITY4 = 0x804A
46
gl_INTENSITY4 :: GLenum gl_INTENSITY4 = 0x804A
46
gl_INTENSITY4 = 0x804A
22
false
true
0
4
5
11
6
5
null
null
VictorDenisov/mongodb
Database/MongoDB/Connection.hs
apache-2.0
openReplicaSet :: (ReplicaSetName, [Host]) -> IO ReplicaSet -- ^ Open connections (on demand) to servers in replica set. Supplied hosts is seed list. At least one of them must be a live member of the named replica set, otherwise fail. The value of 'globalConnectTimeout' at the time of this call is the timeout used for ...
493
openReplicaSet :: (ReplicaSetName, [Host]) -> IO ReplicaSet openReplicaSet rsSeed = readIORef globalConnectTimeout >>= flip openReplicaSet' rsSeed
146
openReplicaSet rsSeed = readIORef globalConnectTimeout >>= flip openReplicaSet' rsSeed
86
true
true
0
7
75
43
22
21
null
null
ndmitchell/cmdargs
System/Console/CmdArgs/Explicit/Help.hs
bsd-3-clause
helpText pre HelpFormatBash x = map Line $ completeBash $ head $ modeNames x ++ ["unknown"]
91
helpText pre HelpFormatBash x = map Line $ completeBash $ head $ modeNames x ++ ["unknown"]
91
helpText pre HelpFormatBash x = map Line $ completeBash $ head $ modeNames x ++ ["unknown"]
91
false
false
0
9
15
38
18
20
null
null
urbanslug/ghc
compiler/main/DynFlags.hs
bsd-3-clause
setWarnUnsafe False = return ()
31
setWarnUnsafe False = return ()
31
setWarnUnsafe False = return ()
31
false
false
1
6
4
17
6
11
null
null
enolan/Idris-dev
src/IRTS/CodegenC.hs
bsd-3-clause
irts_c FManagedPtr x = "GETMPTR(" ++ x ++ ")"
45
irts_c FManagedPtr x = "GETMPTR(" ++ x ++ ")"
45
irts_c FManagedPtr x = "GETMPTR(" ++ x ++ ")"
45
false
false
0
6
8
21
9
12
null
null
diku-dk/futhark
src/Futhark/CLI/Autotune.hs
isc
commandLineOptions :: [FunOptDescr AutotuneOptions] commandLineOptions = [ Option "r" ["runs"] ( ReqArg ( \n -> case reads n of [(n', "")] | n' >= 0 -> Right $ \config -> config { optRuns = n' ...
2,373
commandLineOptions :: [FunOptDescr AutotuneOptions] commandLineOptions = [ Option "r" ["runs"] ( ReqArg ( \n -> case reads n of [(n', "")] | n' >= 0 -> Right $ \config -> config { optRuns = n' ...
2,373
commandLineOptions = [ Option "r" ["runs"] ( ReqArg ( \n -> case reads n of [(n', "")] | n' >= 0 -> Right $ \config -> config { optRuns = n' } _ -> ...
2,321
false
true
0
18
986
566
308
258
null
null
marcellussiegburg/autotool
collection/src/Resolution/Roll.hs
gpl-2.0
medium :: Config -> IO ( [ Clause ], Clause ) medium conf = do let n = 5 candidates <- sequence $ replicate n $ rset conf return $ sortBy ( \ (cs, t) -> length cs ) candidates !! (n `div` 2)
203
medium :: Config -> IO ( [ Clause ], Clause ) medium conf = do let n = 5 candidates <- sequence $ replicate n $ rset conf return $ sortBy ( \ (cs, t) -> length cs ) candidates !! (n `div` 2)
203
medium conf = do let n = 5 candidates <- sequence $ replicate n $ rset conf return $ sortBy ( \ (cs, t) -> length cs ) candidates !! (n `div` 2)
157
false
true
0
12
56
102
52
50
null
null
yu-i9/thih
src/Thih/TI/Lit.hs
bsd-3-clause
tiLit (LitRat _) = do v <- newTVar Star return ([IsIn "Fractional" v], v) -----------------------------------------------------------------------------
176
tiLit (LitRat _) = do v <- newTVar Star return ([IsIn "Fractional" v], v) -----------------------------------------------------------------------------
176
tiLit (LitRat _) = do v <- newTVar Star return ([IsIn "Fractional" v], v) -----------------------------------------------------------------------------
176
false
false
0
10
39
46
22
24
null
null
ptek/sclent
src/Da/Http.hs
bsd-3-clause
fetchLinks :: Text -> IO [Tag Text] fetchLinks url = (filterLinksOnly . parseTags) <$> E.catch (downloadPage url) (anyIoError url)
130
fetchLinks :: Text -> IO [Tag Text] fetchLinks url = (filterLinksOnly . parseTags) <$> E.catch (downloadPage url) (anyIoError url)
130
fetchLinks url = (filterLinksOnly . parseTags) <$> E.catch (downloadPage url) (anyIoError url)
94
false
true
0
9
18
61
29
32
null
null
christiaanb/ghc
compiler/hsSyn/HsExpr.hs
bsd-3-clause
ppr_expr (ExplicitList _ _ exprs) = brackets (pprDeeperList fsep (punctuate comma (map ppr_lexpr exprs)))
107
ppr_expr (ExplicitList _ _ exprs) = brackets (pprDeeperList fsep (punctuate comma (map ppr_lexpr exprs)))
107
ppr_expr (ExplicitList _ _ exprs) = brackets (pprDeeperList fsep (punctuate comma (map ppr_lexpr exprs)))
107
false
false
0
10
15
47
22
25
null
null
fmapfmapfmap/amazonka
amazonka-codedeploy/gen/Network/AWS/CodeDeploy/UpdateDeploymentGroup.hs
mpl-2.0
-- | A replacement service role\'s ARN, if you want to change it. udgServiceRoleARN :: Lens' UpdateDeploymentGroup (Maybe Text) udgServiceRoleARN = lens _udgServiceRoleARN (\ s a -> s{_udgServiceRoleARN = a})
208
udgServiceRoleARN :: Lens' UpdateDeploymentGroup (Maybe Text) udgServiceRoleARN = lens _udgServiceRoleARN (\ s a -> s{_udgServiceRoleARN = a})
142
udgServiceRoleARN = lens _udgServiceRoleARN (\ s a -> s{_udgServiceRoleARN = a})
80
true
true
0
9
29
46
25
21
null
null
goldfirere/singletons
singletons-th/src/Data/Singletons/TH/Util.hs
bsd-3-clause
resultSigToMaybeKind :: DFamilyResultSig -> Maybe DKind resultSigToMaybeKind DNoSig = Nothing
116
resultSigToMaybeKind :: DFamilyResultSig -> Maybe DKind resultSigToMaybeKind DNoSig = Nothing
116
resultSigToMaybeKind DNoSig = Nothing
60
false
true
0
6
32
21
10
11
null
null
tolysz/prepare-ghcjs
spec-lts8/base/Data/Void.hs
bsd-3-clause
-- | If 'Void' is uninhabited then any 'Functor' that holds only -- values of type 'Void' is holding no values. -- -- @since 4.8.0.0 vacuous :: Functor f => f Void -> f a vacuous = fmap absurd
192
vacuous :: Functor f => f Void -> f a vacuous = fmap absurd
59
vacuous = fmap absurd
21
true
true
0
8
38
41
19
22
null
null
sdiehl/ghc
utils/deriveConstants/Main.hs
bsd-3-clause
constantBool :: Where -> Name -> String -> Wanteds constantBool w name expr = [(w, GetBool name (Fst (CPPExpr expr)))]
118
constantBool :: Where -> Name -> String -> Wanteds constantBool w name expr = [(w, GetBool name (Fst (CPPExpr expr)))]
118
constantBool w name expr = [(w, GetBool name (Fst (CPPExpr expr)))]
67
false
true
0
11
19
56
29
27
null
null
sgillespie/ghc
compiler/cmm/CmmUtils.hs
bsd-3-clause
cmmArgType dflags (CmmRubbishArg ty) = typeCmmType dflags ty
60
cmmArgType dflags (CmmRubbishArg ty) = typeCmmType dflags ty
60
cmmArgType dflags (CmmRubbishArg ty) = typeCmmType dflags ty
60
false
false
0
7
7
23
10
13
null
null
ocharles/hs-quake-3
Quake3/Shader/TypeCheck.hs
bsd-3-clause
tcScale :: [String] -> Validation [String] TCModScale tcScale (sfactor:tfactor:_) = TCScale <$> tcDouble sfactor <*> tcDouble tfactor
133
tcScale :: [String] -> Validation [String] TCModScale tcScale (sfactor:tfactor:_) = TCScale <$> tcDouble sfactor <*> tcDouble tfactor
133
tcScale (sfactor:tfactor:_) = TCScale <$> tcDouble sfactor <*> tcDouble tfactor
79
false
true
2
10
16
59
28
31
null
null
osa1/toylisp
src/Eval.hs
bsd-3-clause
eval _ (Val v) cont = applyCont cont v
38
eval _ (Val v) cont = applyCont cont v
38
eval _ (Val v) cont = applyCont cont v
38
false
false
0
7
8
24
11
13
null
null
anchor/haskell2package
lib/Anchor/Package/Template.hs
bsd-3-clause
generateSpecFile :: Packager String generateSpecFile = generateTemplate "/usr/share/haskell2package/templates/TEMPLATE.spec"
124
generateSpecFile :: Packager String generateSpecFile = generateTemplate "/usr/share/haskell2package/templates/TEMPLATE.spec"
124
generateSpecFile = generateTemplate "/usr/share/haskell2package/templates/TEMPLATE.spec"
88
false
true
1
5
7
20
8
12
null
null
roberth/uu-helium
test/typeerrors/Edinburgh/Ex8.hs
gpl-3.0
f y (h:t) = t y
15
f y (h:t) = t y
15
f y (h:t) = t y
15
false
false
0
6
5
23
10
13
null
null
brendanhay/gogol
gogol-container/gen/Network/Google/Container/Types/Product.hs
mpl-2.0
-- | Cluster-level Vertical Pod Autoscaling configuration. cVerticalPodAutoscaling :: Lens' Cluster (Maybe VerticalPodAutoscaling) cVerticalPodAutoscaling = lens _cVerticalPodAutoscaling (\ s a -> s{_cVerticalPodAutoscaling = a})
237
cVerticalPodAutoscaling :: Lens' Cluster (Maybe VerticalPodAutoscaling) cVerticalPodAutoscaling = lens _cVerticalPodAutoscaling (\ s a -> s{_cVerticalPodAutoscaling = a})
178
cVerticalPodAutoscaling = lens _cVerticalPodAutoscaling (\ s a -> s{_cVerticalPodAutoscaling = a})
106
true
true
1
9
31
51
25
26
null
null
ryuichiueda/ProbabilisticRaspiMouse
pfc/offline_calculation/state_transition/gen_state_trans.hs
mit
xy_pair = [ (iy,ix,it) | iy <- [0..(ynum-1)] , ix <- [0..(xnum-1)] , it <- [0..(tnum-1)] ]
90
xy_pair = [ (iy,ix,it) | iy <- [0..(ynum-1)] , ix <- [0..(xnum-1)] , it <- [0..(tnum-1)] ]
90
xy_pair = [ (iy,ix,it) | iy <- [0..(ynum-1)] , ix <- [0..(xnum-1)] , it <- [0..(tnum-1)] ]
90
false
false
0
10
16
78
44
34
null
null
jcpetruzza/haskell-ast
src/Language/Haskell/AST/Core.hs
bsd-3-clause
----------------------------------------------------------------------------- -- Builtin names. prelude_mod, main_mod :: l -> ModuleName String l prelude_mod l = ModuleName l "Prelude"
185
prelude_mod, main_mod :: l -> ModuleName String l prelude_mod l = ModuleName l "Prelude"
88
prelude_mod l = ModuleName l "Prelude"
38
true
true
2
7
18
37
17
20
null
null
alokpndy/haskell-learn
src/extensions/comonads.hs
mit
initialThermostat :: (Kelvin, Kelvin -> Celsius) initialThermostat = (Kelvin 298.15, kelvinToCelsius)
101
initialThermostat :: (Kelvin, Kelvin -> Celsius) initialThermostat = (Kelvin 298.15, kelvinToCelsius)
101
initialThermostat = (Kelvin 298.15, kelvinToCelsius)
52
false
true
0
8
10
37
18
19
null
null
siddhanathan/yi
yi-keymap-cua/src/Yi/Keymap/Cua.hs
gpl-2.0
rect = choice [meta (shift k) ?>>! setMark True >> a | (k,a) <- moveKeys]
78
rect = choice [meta (shift k) ?>>! setMark True >> a | (k,a) <- moveKeys]
78
rect = choice [meta (shift k) ?>>! setMark True >> a | (k,a) <- moveKeys]
78
false
false
1
11
19
50
23
27
null
null
ekmett/reactive
src/Test/SimpleFilter.hs
agpl-3.0
t10 = t 1 e10
13
t10 = t 1 e10
13
t10 = t 1 e10
13
false
false
1
5
4
16
5
11
null
null
beni55/fay
src/haskell-names/Language/Haskell/Names/SyntaxUtils.hs
bsd-3-clause
getModuleHead m = ModuleHead l (main_mod l) Nothing (Just (ExportSpecList l [EVar l (NoNamespace l) (UnQual l (Ident l "main"))])) where l = ann m
148
getModuleHead m = ModuleHead l (main_mod l) Nothing (Just (ExportSpecList l [EVar l (NoNamespace l) (UnQual l (Ident l "main"))])) where l = ann m
148
getModuleHead m = ModuleHead l (main_mod l) Nothing (Just (ExportSpecList l [EVar l (NoNamespace l) (UnQual l (Ident l "main"))])) where l = ann m
148
false
false
2
15
26
90
39
51
null
null
f-me/snap-core
src/Snap/Internal/Test/RequestBuilder.hs
bsd-3-clause
dumpResponse :: Response -> IO () dumpResponse resp = responseToString resp >>= S.putStrLn
90
dumpResponse :: Response -> IO () dumpResponse resp = responseToString resp >>= S.putStrLn
90
dumpResponse resp = responseToString resp >>= S.putStrLn
56
false
true
0
8
12
37
16
21
null
null
janrain/riak-haskell-client
src/Network/Riak/Basic.hs
apache-2.0
-- | Check to see if the connection to the server is alive. ping :: Connection -> IO () ping conn = exchange_ conn Req.ping
123
ping :: Connection -> IO () ping conn = exchange_ conn Req.ping
63
ping conn = exchange_ conn Req.ping
35
true
true
0
7
24
31
15
16
null
null
johanneshilden/hashids-haskell
src/Web/Hashids.hs
mit
(|>) :: a -> (a -> b) -> b (|>) a f = f a
41
(|>) :: a -> (a -> b) -> b (|>) a f = f a
41
(|>) a f = f a
14
false
true
0
8
14
42
22
20
null
null
prowdsponsor/esqueleto
src/Database/Esqueleto/Internal/Sql.hs
bsd-3-clause
makeWhere _ (Where (ECompositeKey _)) = unexpectedCompositeKeyError "makeWhere"
82
makeWhere _ (Where (ECompositeKey _)) = unexpectedCompositeKeyError "makeWhere"
82
makeWhere _ (Where (ECompositeKey _)) = unexpectedCompositeKeyError "makeWhere"
82
false
false
0
9
10
26
12
14
null
null
shlevy/ghc
compiler/main/PackageConfig.hs
bsd-3-clause
definitePackageConfigId :: PackageConfig -> Maybe DefUnitId definitePackageConfigId p = case packageConfigId p of DefiniteUnitId def_uid -> Just def_uid _ -> Nothing
185
definitePackageConfigId :: PackageConfig -> Maybe DefUnitId definitePackageConfigId p = case packageConfigId p of DefiniteUnitId def_uid -> Just def_uid _ -> Nothing
185
definitePackageConfigId p = case packageConfigId p of DefiniteUnitId def_uid -> Just def_uid _ -> Nothing
125
false
true
0
8
40
51
22
29
null
null
bacchanalia/KitchenSink
KitchenSink/Math.hs
gpl-3.0
-- | The Fibonacci sequence fibs :: [Integer] fibs = fix $ scanl (+) 0 . (1:)
77
fibs :: [Integer] fibs = fix $ scanl (+) 0 . (1:)
49
fibs = fix $ scanl (+) 0 . (1:)
31
true
true
3
7
16
44
21
23
null
null
sjfloat/bloodhound
src/Database/Bloodhound/Types.hs
bsd-3-clause
commonHighlightPairs :: Maybe CommonHighlight -> [Pair] commonHighlightPairs Nothing = []
89
commonHighlightPairs :: Maybe CommonHighlight -> [Pair] commonHighlightPairs Nothing = []
89
commonHighlightPairs Nothing = []
33
false
true
0
6
9
30
14
16
null
null
tomahawkins/statechart
src/Rhapsody.hs
bsd-3-clause
containerRecords :: String -> Record -> [Record] containerRecords name rec = case records name rec of [] -> [] a : _ -> records "value" a -- | A unique identifier field.
175
containerRecords :: String -> Record -> [Record] containerRecords name rec = case records name rec of [] -> [] a : _ -> records "value" a -- | A unique identifier field.
175
containerRecords name rec = case records name rec of [] -> [] a : _ -> records "value" a -- | A unique identifier field.
126
false
true
0
9
37
67
32
35
null
null
peti/postmaster
src/Postmaster/IO.hs
agpl-3.0
send :: (MonadPeer env m) => ByteString -> m () send buf = view sendToPeer >>= \f -> f buf
90
send :: (MonadPeer env m) => ByteString -> m () send buf = view sendToPeer >>= \f -> f buf
90
send buf = view sendToPeer >>= \f -> f buf
42
false
true
0
8
19
49
24
25
null
null
brendanhay/gogol
gogol-drive/gen/Network/Google/Resource/Drive/Changes/Watch.hs
mpl-2.0
-- | The maximum number of changes to return per page. cwPageSize :: Lens' ChangesWatch Int32 cwPageSize = lens _cwPageSize (\ s a -> s{_cwPageSize = a}) . _Coerce
171
cwPageSize :: Lens' ChangesWatch Int32 cwPageSize = lens _cwPageSize (\ s a -> s{_cwPageSize = a}) . _Coerce
116
cwPageSize = lens _cwPageSize (\ s a -> s{_cwPageSize = a}) . _Coerce
77
true
true
0
10
36
46
24
22
null
null
noteed/rescoyl-checks
bin/rescoyl-checks.hs
bsd-3-clause
step r (ImageDoesntExist (i:is)) = Just ( checkPushImageJson 200 "Push image meta-data" r i , ImageJsonPushed (i:is) )
122
step r (ImageDoesntExist (i:is)) = Just ( checkPushImageJson 200 "Push image meta-data" r i , ImageJsonPushed (i:is) )
122
step r (ImageDoesntExist (i:is)) = Just ( checkPushImageJson 200 "Push image meta-data" r i , ImageJsonPushed (i:is) )
122
false
false
0
9
21
52
26
26
null
null
databrary/databrary
src/Model/Party/SQL.hs
agpl-3.0
-- | Build party, with a circular connection to an account if an account creation function is provided makeParty :: PartyRow -> Maybe (Party -> Account) -> Permission -> Maybe Access -> Party makeParty pr mMkAcct perm mAccess = makeParty2 pr mMkAcct NotLoaded perm mAccess
272
makeParty :: PartyRow -> Maybe (Party -> Account) -> Permission -> Maybe Access -> Party makeParty pr mMkAcct perm mAccess = makeParty2 pr mMkAcct NotLoaded perm mAccess
169
makeParty pr mMkAcct perm mAccess = makeParty2 pr mMkAcct NotLoaded perm mAccess
80
true
true
0
9
44
61
30
31
null
null
cirquit/Personal-Repository
Haskell/svg-loading/app/Main.hs
mit
loadSVGImage :: FilePath -> IO (Maybe (Image PixelRGBA8)) loadSVGImage filepath = do mdoc <- loadSvgFile filepath case mdoc of Nothing -> return Nothing Just doc -> do cache <- loadCreateFontCache "fonty-texture-cache" (finalImage, _) <- renderSvgDocument cache Nothing 96 doc ...
345
loadSVGImage :: FilePath -> IO (Maybe (Image PixelRGBA8)) loadSVGImage filepath = do mdoc <- loadSvgFile filepath case mdoc of Nothing -> return Nothing Just doc -> do cache <- loadCreateFontCache "fonty-texture-cache" (finalImage, _) <- renderSvgDocument cache Nothing 96 doc ...
345
loadSVGImage filepath = do mdoc <- loadSvgFile filepath case mdoc of Nothing -> return Nothing Just doc -> do cache <- loadCreateFontCache "fonty-texture-cache" (finalImage, _) <- renderSvgDocument cache Nothing 96 doc return $ Just finalImage
287
false
true
0
13
86
110
50
60
null
null
uwap/Idris-dev
src/Idris/Delaborate.hs
bsd-3-clause
pprintErr' i (CantSolveGoal x env) = text "Can't solve goal " <> indented (annTm x (pprintTerm' i (map (\ (n, b) -> (n, False)) env) (delabSugared i x))) <> if (opt_errContext (idris_options i)) then line <> showSc i env else empty
237
pprintErr' i (CantSolveGoal x env) = text "Can't solve goal " <> indented (annTm x (pprintTerm' i (map (\ (n, b) -> (n, False)) env) (delabSugared i x))) <> if (opt_errContext (idris_options i)) then line <> showSc i env else empty
237
pprintErr' i (CantSolveGoal x env) = text "Can't solve goal " <> indented (annTm x (pprintTerm' i (map (\ (n, b) -> (n, False)) env) (delabSugared i x))) <> if (opt_errContext (idris_options i)) then line <> showSc i env else empty
237
false
false
2
14
46
120
60
60
null
null
bos/text
tests/Tests/Properties/Text.hs
bsd-2-clause
sf_zipWith p c s = (L.zipWith c (L.filter p s) . L.filter p) `eqP` (unpackS . S.zipWith c (S.filter p $ packS s) . S.filter p)
147
sf_zipWith p c s = (L.zipWith c (L.filter p s) . L.filter p) `eqP` (unpackS . S.zipWith c (S.filter p $ packS s) . S.filter p)
147
sf_zipWith p c s = (L.zipWith c (L.filter p s) . L.filter p) `eqP` (unpackS . S.zipWith c (S.filter p $ packS s) . S.filter p)
147
false
false
0
13
46
86
42
44
null
null
sjpet/quark
src/Quark/Lexer/Core.hs
mit
liftT f (IntLiteral s) = IntLiteral $ f s
44
liftT f (IntLiteral s) = IntLiteral $ f s
44
liftT f (IntLiteral s) = IntLiteral $ f s
44
false
false
0
7
11
24
11
13
null
null
abuiles/turbinado-blog
tmp/dependencies/harp-0.4/Harp/Match.hs
bsd-3-clause
unzip2 :: [(a,b)] -> ([a],[b]) unzip2 = unzip
45
unzip2 :: [(a,b)] -> ([a],[b]) unzip2 = unzip
45
unzip2 = unzip
14
false
true
0
9
7
43
23
20
null
null
HIPERFIT/futhark
src/Futhark/Util/Log.hs
isc
toText :: Log -> T.Text toText = T.intercalate "\n" . DL.toList . unLog
71
toText :: Log -> T.Text toText = T.intercalate "\n" . DL.toList . unLog
71
toText = T.intercalate "\n" . DL.toList . unLog
47
false
true
0
8
12
32
16
16
null
null
seereason/ansi-wl-pprint
Text/PrettyPrint/ANSI/Leijen.hs
bsd-2-clause
(magenta, dullmagenta) = colorFunctions Magenta
47
(magenta, dullmagenta) = colorFunctions Magenta
47
(magenta, dullmagenta) = colorFunctions Magenta
47
false
false
0
5
4
16
8
8
null
null
v0lkan/learning-haskell
session-004/004-functional-toolbox.hs
mit
quicksort (x:xs) = let smallerOrEqual = filter (<=x) xs larger = filter (>x) xs in quicksort smallerOrEqual ++ [x] ++ quicksort larger
166
quicksort (x:xs) = let smallerOrEqual = filter (<=x) xs larger = filter (>x) xs in quicksort smallerOrEqual ++ [x] ++ quicksort larger
166
quicksort (x:xs) = let smallerOrEqual = filter (<=x) xs larger = filter (>x) xs in quicksort smallerOrEqual ++ [x] ++ quicksort larger
166
false
false
0
10
53
67
34
33
null
null
tjakway/ghcjvm
testsuite/tests/deSugar/should_run/DsStrict.hs
bsd-3-clause
main :: IO () main = mapM_ (\(what,f) -> putStrLn (f (v what))) fs where fs = [("fun",f0 ) ,("fun lazy",f0') ,("case",f1) ,("case lazy",f1') ,("lambda",f2) ,("lambda lazy",f2') ,("newtype",(\ ~i -> f4 (MkAge i))) ,("newtype lazy",(\ ~i ->...
382
main :: IO () main = mapM_ (\(what,f) -> putStrLn (f (v what))) fs where fs = [("fun",f0 ) ,("fun lazy",f0') ,("case",f1) ,("case lazy",f1') ,("lambda",f2) ,("lambda lazy",f2') ,("newtype",(\ ~i -> f4 (MkAge i))) ,("newtype lazy",(\ ~i ->...
382
main = mapM_ (\(what,f) -> putStrLn (f (v what))) fs where fs = [("fun",f0 ) ,("fun lazy",f0') ,("case",f1) ,("case lazy",f1') ,("lambda",f2) ,("lambda lazy",f2') ,("newtype",(\ ~i -> f4 (MkAge i))) ,("newtype lazy",(\ ~i -> f4' (MkAge i)...
368
false
true
1
12
139
186
106
80
null
null
k0001/reflex
src/Reflex/Class.hs
bsd-3-clause
-- | Switches to the new event whenever it receives one; the new event is used immediately, on the same frame that it is switched to switchPromptly :: forall t m a. (Reflex t, MonadHold t m) => Event t a -> Event t (Event t a) -> m (Event t a) switchPromptly ea0 eea = do bea <- hold ea0 eea let eLag = switch bea ...
397
switchPromptly :: forall t m a. (Reflex t, MonadHold t m) => Event t a -> Event t (Event t a) -> m (Event t a) switchPromptly ea0 eea = do bea <- hold ea0 eea let eLag = switch bea eCoincidences = coincidence eea return $ leftmost [eCoincidences, eLag]
264
switchPromptly ea0 eea = do bea <- hold ea0 eea let eLag = switch bea eCoincidences = coincidence eea return $ leftmost [eCoincidences, eLag]
153
true
true
0
11
87
126
62
64
null
null
kim/amazonka
amazonka-redshift/gen/Network/AWS/Redshift/Types.hs
mpl-2.0
-- | The pending or in-progress change of the automated snapshot retention -- period. pmvAutomatedSnapshotRetentionPeriod :: Lens' PendingModifiedValues (Maybe Int) pmvAutomatedSnapshotRetentionPeriod = lens _pmvAutomatedSnapshotRetentionPeriod (\s a -> s { _pmvAutomatedSnapshotRetentionPeriod = a })
313
pmvAutomatedSnapshotRetentionPeriod :: Lens' PendingModifiedValues (Maybe Int) pmvAutomatedSnapshotRetentionPeriod = lens _pmvAutomatedSnapshotRetentionPeriod (\s a -> s { _pmvAutomatedSnapshotRetentionPeriod = a })
227
pmvAutomatedSnapshotRetentionPeriod = lens _pmvAutomatedSnapshotRetentionPeriod (\s a -> s { _pmvAutomatedSnapshotRetentionPeriod = a })
148
true
true
0
9
44
47
26
21
null
null
michalkonecny/polypaver
examples/haskell/true.hs
bsd-3-clause
main = defaultMain problem
30
main = defaultMain problem
30
main = defaultMain problem
30
false
false
1
5
7
13
4
9
null
null
WeAreWizards/passopolis-mail-queue
src/Main.hs
gpl-3.0
renderMail (OnboardFirstSecret {..}) = M.simpleMail messageTo (M.Address (Just "Passopolis") "team@passopolis.com") "Passopolis recorded your first secret" (renderHtml $(shamletFile "./templates/onboard-first-secret.txt")) (renderHtml $(shamletFile "./templates/onboard-first-secret.html")) []
314
renderMail (OnboardFirstSecret {..}) = M.simpleMail messageTo (M.Address (Just "Passopolis") "team@passopolis.com") "Passopolis recorded your first secret" (renderHtml $(shamletFile "./templates/onboard-first-secret.txt")) (renderHtml $(shamletFile "./templates/onboard-first-secret.html")) []
314
renderMail (OnboardFirstSecret {..}) = M.simpleMail messageTo (M.Address (Just "Passopolis") "team@passopolis.com") "Passopolis recorded your first secret" (renderHtml $(shamletFile "./templates/onboard-first-secret.txt")) (renderHtml $(shamletFile "./templates/onboard-first-secret.html")) []
314
false
false
0
10
42
77
37
40
null
null
juodaspaulius/clafer
src/Language/Clafer/Intermediate/TypeSystem.hs
mit
intersection _ _ _ = do -- traceM $ "(DEBUG) TypeSystem.intersection: cannot intersect incompatible types: '" -- ++ show t1 -- ++ "'' and '" -- ++ show t2 -- ++ "'" return Nothing -- old version -- intersection :: Monad m => UIDIClaferMap -> IType -> I...
1,020
intersection _ _ _ = do -- traceM $ "(DEBUG) TypeSystem.intersection: cannot intersect incompatible types: '" -- ++ show t1 -- ++ "'' and '" -- ++ show t2 -- ++ "'" return Nothing -- old version -- intersection :: Monad m => UIDIClaferMap -> IType -> I...
1,020
intersection _ _ _ = do -- traceM $ "(DEBUG) TypeSystem.intersection: cannot intersect incompatible types: '" -- ++ show t1 -- ++ "'' and '" -- ++ show t2 -- ++ "'" return Nothing -- old version -- intersection :: Monad m => UIDIClaferMap -> IType -> I...
1,020
false
false
1
8
261
41
29
12
null
null
ezyang/ghc
compiler/stgSyn/CoreToStg.hs
bsd-3-clause
coreToStgExpr (Let bind body) = do coreToStgLet bind body
61
coreToStgExpr (Let bind body) = do coreToStgLet bind body
61
coreToStgExpr (Let bind body) = do coreToStgLet bind body
61
false
false
0
7
12
25
11
14
null
null
xabbu42/balance-game
balance_game.hs
bsd-3-clause
empty_position :: Position empty_position = Position {unknown = 0, heavy = 0, light = 0, normal = 0}
100
empty_position :: Position empty_position = Position {unknown = 0, heavy = 0, light = 0, normal = 0}
100
empty_position = Position {unknown = 0, heavy = 0, light = 0, normal = 0}
73
false
true
0
6
17
37
23
14
null
null
TomMD/FixedPoint
Test/testFP.hs
bsd-3-clause
subI128 a b = a - b == (fromIntegral a - fromIntegral b)
56
subI128 a b = a - b == (fromIntegral a - fromIntegral b)
56
subI128 a b = a - b == (fromIntegral a - fromIntegral b)
56
false
false
1
9
12
37
15
22
null
null
CarmineM74/haskell_craft3e
ExChap8.hs
mit
copyToOutput :: IO [String] copyToOutput = do lines <- getLinesAcc [] return lines
114
copyToOutput :: IO [String] copyToOutput = do lines <- getLinesAcc [] return lines
114
copyToOutput = do lines <- getLinesAcc [] return lines
86
false
true
0
10
44
41
17
24
null
null
input-output-hk/pos-haskell-prototype
crypto/Pos/Crypto/Signing/Types/Signing.hs
mit
-- | Formatter for 'PublicKey' to show it in hex, but only first 8 chars. shortPublicKeyHexF :: Format r (PublicKey -> r) shortPublicKeyHexF = fitLeft 8 %. fullPublicKeyHexF
173
shortPublicKeyHexF :: Format r (PublicKey -> r) shortPublicKeyHexF = fitLeft 8 %. fullPublicKeyHexF
99
shortPublicKeyHexF = fitLeft 8 %. fullPublicKeyHexF
51
true
true
0
7
27
31
16
15
null
null
gsnewmark/cis194
src/Cis194/Week3/Lecture.hs
apache-2.0
lst1 :: List Int lst1 = C 3 (C 5 (C 2 E))
41
lst1 :: List Int lst1 = C 3 (C 5 (C 2 E))
41
lst1 = C 3 (C 5 (C 2 E))
24
false
true
0
9
12
35
17
18
null
null
KommuSoft/dep-software
Dep.Ui.Utils.hs
gpl-3.0
linC 130 = '\x251b'
19
linC 130 = '\x251b'
19
linC 130 = '\x251b'
19
false
false
0
5
3
9
4
5
null
null
peter-fogg/pardoc
src/Text/Pandoc/Readers/TWiki.hs
gpl-2.0
parseHtmlContentWithAttrs :: String -> TWParser a -> TWParser (Attr, [a]) parseHtmlContentWithAttrs tag parser = do (attr, content) <- htmlElement tag parsedContent <- try $ parseContent content return (attr, parsedContent) where parseContent = parseFromString $ nested $ manyTill parser endOfContent end...
377
parseHtmlContentWithAttrs :: String -> TWParser a -> TWParser (Attr, [a]) parseHtmlContentWithAttrs tag parser = do (attr, content) <- htmlElement tag parsedContent <- try $ parseContent content return (attr, parsedContent) where parseContent = parseFromString $ nested $ manyTill parser endOfContent end...
377
parseHtmlContentWithAttrs tag parser = do (attr, content) <- htmlElement tag parsedContent <- try $ parseContent content return (attr, parsedContent) where parseContent = parseFromString $ nested $ manyTill parser endOfContent endOfContent = try $ skipMany blankline >> skipSpaces >> eof
303
false
true
4
9
64
130
60
70
null
null
yoo-e/weixin-mp-sdk
WeiXin/PublicPlatform/Pay/BankCode.hs
mit
renderBankCodeSC HBNX_DEBIT = "湖北农信(借记卡)"
48
renderBankCodeSC HBNX_DEBIT = "湖北农信(借记卡)"
48
renderBankCodeSC HBNX_DEBIT = "湖北农信(借记卡)"
48
false
false
0
5
10
9
4
5
null
null
rleshchinskiy/vector
Data/Vector/Generic/Mutable.hs
bsd-3-clause
copy dst src = BOUNDS_CHECK(check) "copy" "overlapping vectors" (not (dst `overlaps` src)) $ BOUNDS_CHECK(check) "copy" "length mismatch" (length dst == length src) $ unsafeCopy dst src
295
copy dst src = BOUNDS_CHECK(check) "copy" "overlapping vectors" (not (dst `overlaps` src)) $ BOUNDS_CHECK(check) "copy" "length mismatch" (length dst == length src) $ unsafeCopy dst src
295
copy dst src = BOUNDS_CHECK(check) "copy" "overlapping vectors" (not (dst `overlaps` src)) $ BOUNDS_CHECK(check) "copy" "length mismatch" (length dst == length src) $ unsafeCopy dst src
295
false
false
5
9
135
82
38
44
null
null
vito/atomo-old
Atomo/Typecheck.hs
mit
checkExpr e v = error $ "Don't know how to check this expression: " ++ show v
77
checkExpr e v = error $ "Don't know how to check this expression: " ++ show v
77
checkExpr e v = error $ "Don't know how to check this expression: " ++ show v
77
false
false
0
6
16
22
10
12
null
null
scott-fleischman/greek-grammar
haskell/greek-grammar/src/Text/Greek/Source/Perseus/Catalog.hs
mit
dcNamespace :: Text dcNamespace = "http://purl.org/dc/elements/1.1/"
68
dcNamespace :: Text dcNamespace = "http://purl.org/dc/elements/1.1/"
68
dcNamespace = "http://purl.org/dc/elements/1.1/"
48
false
true
0
4
5
11
6
5
null
null
gbwey/persistentold
persistent/Database/Persist.hs
mit
-- | NotIn f /<-. a = Filter f (Right a) NotIn
46
f /<-. a = Filter f (Right a) NotIn
35
f /<-. a = Filter f (Right a) NotIn
35
true
false
2
7
11
26
13
13
null
null
wochinge/CacheSimulator
test/Clock/ClockSpec.hs
bsd-3-clause
testfile' = ("2", 200)
22
testfile' = ("2", 200)
22
testfile' = ("2", 200)
22
false
false
0
5
3
12
7
5
null
null
mainland/nikola
src/Data/Array/Nikola/Language/Syntax.hs
bsd-3-clause
isFunT _ = False
24
isFunT _ = False
24
isFunT _ = False
24
false
false
0
4
11
10
4
6
null
null
brendanhay/gogol
gogol-analyticsreporting/gen/Network/Google/AnalyticsReporting/Types/Product.hs
mpl-2.0
-- | Creates a value of 'SegmentFilter' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'sfNot' -- -- * 'sfSimpleSegment' -- -- * 'sfSequenceSegment' segmentFilter :: SegmentFilter segmentFilter = SegmentFilter' {_sfNot = Not...
383
segmentFilter :: SegmentFilter segmentFilter = SegmentFilter' {_sfNot = Nothing, _sfSimpleSegment = Nothing, _sfSequenceSegment = Nothing}
148
segmentFilter = SegmentFilter' {_sfNot = Nothing, _sfSimpleSegment = Nothing, _sfSequenceSegment = Nothing}
113
true
true
0
7
66
50
30
20
null
null
fmapfmapfmap/amazonka
amazonka-route53/gen/Network/AWS/Route53/UpdateHostedZoneComment.hs
mpl-2.0
-- | The response status code. uhzcrsResponseStatus :: Lens' UpdateHostedZoneCommentResponse Int uhzcrsResponseStatus = lens _uhzcrsResponseStatus (\ s a -> s{_uhzcrsResponseStatus = a})
186
uhzcrsResponseStatus :: Lens' UpdateHostedZoneCommentResponse Int uhzcrsResponseStatus = lens _uhzcrsResponseStatus (\ s a -> s{_uhzcrsResponseStatus = a})
155
uhzcrsResponseStatus = lens _uhzcrsResponseStatus (\ s a -> s{_uhzcrsResponseStatus = a})
89
true
true
0
9
21
40
22
18
null
null
eborden/redeux
src/Redeux/DOM.hs
bsd-3-clause
div_, span_, p_, a_, h1_, h2_, h3_ , section_, footer_, header_, strong_ , label_, ul_, li_ , button_ :: [AttrOrHandler g] -> DOM g a -> DOM g a div_ = el_ "div"
173
div_, span_, p_, a_, h1_, h2_, h3_ , section_, footer_, header_, strong_ , label_, ul_, li_ , button_ :: [AttrOrHandler g] -> DOM g a -> DOM g a div_ = el_ "div"
173
div_ = el_ "div"
21
false
true
2
7
44
70
46
24
null
null
silky/csound-expression
src/Csound/Tab.hs
bsd-3-clause
llofi = setDegree (-2)
24
llofi = setDegree (-2)
24
llofi = setDegree (-2)
24
false
false
1
7
5
17
7
10
null
null
urbanslug/ghc
compiler/basicTypes/Lexeme.hs
bsd-3-clause
-- Infix data constructors startsVarId c = c == '_' || case generalCategory c of -- Ordinary Ids LowercaseLetter -> True OtherLetter -> True -- See #1103 _ -> False
192
startsVarId c = c == '_' || case generalCategory c of -- Ordinary Ids LowercaseLetter -> True OtherLetter -> True -- See #1103 _ -> False
165
startsVarId c = c == '_' || case generalCategory c of -- Ordinary Ids LowercaseLetter -> True OtherLetter -> True -- See #1103 _ -> False
165
true
false
0
8
57
45
23
22
null
null
creichert/wai
wai-extra/Network/Wai/Middleware/Rewrite.hs
mit
-- | Produce a function that works on 'PathsAndQueries' from one working -- only on paths. This is not exported, as it is only needed to handle -- code written for versions ≤ 3.0 of the library; see the -- example above using 'Data.Bifunctor.first' to do something similar. pathsOnly :: (Applicative m, Monad m) ...
511
pathsOnly :: (Applicative m, Monad m) => ([Text] -> H.RequestHeaders -> m [Text]) -> PathsAndQueries -> H.RequestHeaders -> m PathsAndQueries pathsOnly convert psAndQs headers = (,[]) <$> convert (fst psAndQs) headers
237
pathsOnly convert psAndQs headers = (,[]) <$> convert (fst psAndQs) headers
75
true
true
0
11
98
97
52
45
null
null
MichaeGon/java
ClassFileParser.hs
mit
checkMask :: U2 -> [AccessFlag] checkMask x = foldr ff [] masks where ff (a, n) acc | x .&. n /= 0 = a : acc | otherwise = acc -- end
170
checkMask :: U2 -> [AccessFlag] checkMask x = foldr ff [] masks where ff (a, n) acc | x .&. n /= 0 = a : acc | otherwise = acc -- end
170
checkMask x = foldr ff [] masks where ff (a, n) acc | x .&. n /= 0 = a : acc | otherwise = acc -- end
138
false
true
0
9
69
77
38
39
null
null
GaloisInc/halvm-ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
-- Recursive-do notation monadFixClassName, mfixName :: Name monadFixClassName = clsQual mONAD_FIX (fsLit "MonadFix") monadFixClassKey
135
monadFixClassName, mfixName :: Name monadFixClassName = clsQual mONAD_FIX (fsLit "MonadFix") monadFixClassKey
110
monadFixClassName = clsQual mONAD_FIX (fsLit "MonadFix") monadFixClassKey
74
true
true
2
7
14
34
15
19
null
null
supki/libjenkins
example/jenkins-cli/src/Main.hs
bsd-2-clause
waitJobs :: Jenkins () waitJobs = Jenkins.get Jenkins.json Jenkins.queue >>= liftIO . printJobs where printJobs info = mapM_ Text.putStrLn (info ^.. key "items".values.key "task".key "name"._String)
199
waitJobs :: Jenkins () waitJobs = Jenkins.get Jenkins.json Jenkins.queue >>= liftIO . printJobs where printJobs info = mapM_ Text.putStrLn (info ^.. key "items".values.key "task".key "name"._String)
199
waitJobs = Jenkins.get Jenkins.json Jenkins.queue >>= liftIO . printJobs where printJobs info = mapM_ Text.putStrLn (info ^.. key "items".values.key "task".key "name"._String)
176
false
true
0
10
25
74
36
38
null
null
uuhan/Idris-dev
src/Idris/Reflection.hs
bsd-3-clause
reflectBinderQuotePattern q ty unq (Guess x y) = do x' <- claimTy (sMN 0 "ty") ty; movelast x' y' <- claimTy (sMN 0 "v") ty; movelast y' fill $ reflCall "Guess" [ty, Var x', Var y'] solve focus x'; q unq x focus y'; q unq y
266
reflectBinderQuotePattern q ty unq (Guess x y) = do x' <- claimTy (sMN 0 "ty") ty; movelast x' y' <- claimTy (sMN 0 "v") ty; movelast y' fill $ reflCall "Guess" [ty, Var x', Var y'] solve focus x'; q unq x focus y'; q unq y
266
reflectBinderQuotePattern q ty unq (Guess x y) = do x' <- claimTy (sMN 0 "ty") ty; movelast x' y' <- claimTy (sMN 0 "v") ty; movelast y' fill $ reflCall "Guess" [ty, Var x', Var y'] solve focus x'; q unq x focus y'; q unq y
266
false
false
0
10
89
137
61
76
null
null
hvr/text
tests/Tests/Properties.hs
bsd-2-clause
t_Eq s = (s==) `eq` ((T.pack s==) . T.pack)
57
t_Eq s = (s==) `eq` ((T.pack s==) . T.pack)
57
t_Eq s = (s==) `eq` ((T.pack s==) . T.pack)
57
false
false
0
10
22
37
21
16
null
null
fffej/HS-Poker
LookupPatternMatch.hs
bsd-3-clause
getValueFromProduct 110946 = 3541
33
getValueFromProduct 110946 = 3541
33
getValueFromProduct 110946 = 3541
33
false
false
0
5
3
9
4
5
null
null
ducis/cassandra-minimalist
cassandra-cql-0.3.0.1/Database/Cassandra/CQL1.hs
apache-2.0
newPool :: [Server] -> Keyspace -> IO Pool newPool svrs ks = do let sessions = map (\svr -> Session svr Nothing) svrs sess <- atomically $ newTVar (Seq.fromList sessions) return $ Pool { piKeyspace = ks, piSessions = sess }
267
newPool :: [Server] -> Keyspace -> IO Pool newPool svrs ks = do let sessions = map (\svr -> Session svr Nothing) svrs sess <- atomically $ newTVar (Seq.fromList sessions) return $ Pool { piKeyspace = ks, piSessions = sess }
267
newPool svrs ks = do let sessions = map (\svr -> Session svr Nothing) svrs sess <- atomically $ newTVar (Seq.fromList sessions) return $ Pool { piKeyspace = ks, piSessions = sess }
224
false
true
0
13
84
105
51
54
null
null
ekmett/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxSTC_PS_HEXSTRING :: Int wxSTC_PS_HEXSTRING = 13
49
wxSTC_PS_HEXSTRING :: Int wxSTC_PS_HEXSTRING = 13
49
wxSTC_PS_HEXSTRING = 13
23
false
true
0
6
5
18
7
11
null
null
kaizhang/bioinformatics-toolkit
bioinformatics-toolkit/src/Bio/ChIPSeq/FragLen.hs
mit
-- | calcuate cross corrlation with different shifts naiveCCWithSmooth :: Int -> [BED] -> [Int] -> [(Int, Int)] naiveCCWithSmooth smooth input range = f . fromBED $ input where cc :: [(B.ByteString, (S.HashSet Int, S.HashSet Int))] -> Int -> Int cc xs d = foldl' (+) 0 . map ((\(forwd, rev) -> apprxC...
407
naiveCCWithSmooth :: Int -> [BED] -> [Int] -> [(Int, Int)] naiveCCWithSmooth smooth input range = f . fromBED $ input where cc :: [(B.ByteString, (S.HashSet Int, S.HashSet Int))] -> Int -> Int cc xs d = foldl' (+) 0 . map ((\(forwd, rev) -> apprxCorr forwd rev smooth d).snd) $ xs f xs = zip ...
354
naiveCCWithSmooth smooth input range = f . fromBED $ input where cc :: [(B.ByteString, (S.HashSet Int, S.HashSet Int))] -> Int -> Int cc xs d = foldl' (+) 0 . map ((\(forwd, rev) -> apprxCorr forwd rev smooth d).snd) $ xs f xs = zip range $ parMap rpar (cc xs) range
295
true
true
0
14
98
180
96
84
null
null
goens/rand-code-graph
src/Backends/Haskell.hs
mit
toFunHs :: Graph.LNode CodeGraphNodeLabel -> [Expr] -> Expr toFunHs (n, CodeGraphNodeLabel _ lab _) = case lab of Custom "function" -> applyMany (VarE (Symbol $ "fn" ++ show n)) Custom "map" -> ApplyE (VarE "mapM" `ApplyE` VarE (Symbol $ "fn" ++ show n)) . LitE . LitList -- Rename name -> applyMany (VarE "pure") ...
643
toFunHs :: Graph.LNode CodeGraphNodeLabel -> [Expr] -> Expr toFunHs (n, CodeGraphNodeLabel _ lab _) = case lab of Custom "function" -> applyMany (VarE (Symbol $ "fn" ++ show n)) Custom "map" -> ApplyE (VarE "mapM" `ApplyE` VarE (Symbol $ "fn" ++ show n)) . LitE . LitList -- Rename name -> applyMany (VarE "pure") ...
643
toFunHs (n, CodeGraphNodeLabel _ lab _) = case lab of Custom "function" -> applyMany (VarE (Symbol $ "fn" ++ show n)) Custom "map" -> ApplyE (VarE "mapM" `ApplyE` VarE (Symbol $ "fn" ++ show n)) . LitE . LitList -- Rename name -> applyMany (VarE "pure") Conditional b t e -> applyMany $ IfE (maybe (LitE (LitBool...
583
false
true
3
17
137
319
151
168
null
null
hferreiro/replay
compiler/cmm/CLabel.hs
bsd-3-clause
mkAltLabel uniq tag = CaseLabel uniq (CaseAlt tag)
62
mkAltLabel uniq tag = CaseLabel uniq (CaseAlt tag)
62
mkAltLabel uniq tag = CaseLabel uniq (CaseAlt tag)
62
false
false
0
7
19
22
10
12
null
null
charlesrosenbauer/Bzo-Compiler
src/Builtins.hs
gpl-3.0
isBuiltinType "#Unt8" = 5
27
isBuiltinType "#Unt8" = 5
27
isBuiltinType "#Unt8" = 5
27
false
false
0
5
5
9
4
5
null
null
sgillespie/ghc
compiler/typecheck/TcPatSyn.hs
bsd-3-clause
{- ************************************************************************ * * Constructing the "builder" Id * * ***********************************************************...
1,433
mkPatSynBuilderId :: HsPatSynDir a -> Located Name -> [TyVarBinder] -> ThetaType -> [TyVarBinder] -> ThetaType -> [Type] -> Type -> TcM (Maybe (Id, Bool)) mkPatSynBuilderId dir (L _ name) univ_bndrs req_theta ex_bndrs prov_theta ...
1,095
mkPatSynBuilderId dir (L _ name) univ_bndrs req_theta ex_bndrs prov_theta arg_tys pat_ty | isUnidirectional dir = return Nothing | otherwise = do { builder_name <- newImplicitBinder name mkBuilderOcc ; let theta = req_theta ++ prov_theta need_dumm...
868
true
true
0
16
614
246
119
127
null
null
rueshyna/gogol
gogol-maps-coordinate/gen/Network/Google/Resource/Coordinate/Jobs/List.hs
mpl-2.0
-- | Creates a value of 'JobsList' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'jlTeamId' -- -- * 'jlMinModifiedTimestampMs' -- -- * 'jlOmitJobChanges' -- -- * 'jlPageToken' -- -- * 'jlMaxResults' jobsList :: Text -- ^ 'jlTeamI...
544
jobsList :: Text -- ^ 'jlTeamId' -> JobsList jobsList pJlTeamId_ = JobsList' { _jlTeamId = pJlTeamId_ , _jlMinModifiedTimestampMs = Nothing , _jlOmitJobChanges = Nothing , _jlPageToken = Nothing , _jlMaxResults = Nothing }
258
jobsList pJlTeamId_ = JobsList' { _jlTeamId = pJlTeamId_ , _jlMinModifiedTimestampMs = Nothing , _jlOmitJobChanges = Nothing , _jlPageToken = Nothing , _jlMaxResults = Nothing }
205
true
true
0
7
118
73
46
27
null
null
wochinge/CacheSimulator
src/Lfu.hs
bsd-3-clause
removeLFU :: Lfu -> Lfu removeLFU cache = let (sizeOfRemoved, files') = H.alterMin delete' $ files cache in cache {files = files', size = size cache - sizeOfRemoved}
173
removeLFU :: Lfu -> Lfu removeLFU cache = let (sizeOfRemoved, files') = H.alterMin delete' $ files cache in cache {files = files', size = size cache - sizeOfRemoved}
173
removeLFU cache = let (sizeOfRemoved, files') = H.alterMin delete' $ files cache in cache {files = files', size = size cache - sizeOfRemoved}
149
false
true
0
11
35
78
37
41
null
null
mtlstats/mtlstats
src/Mtlstats/Control/EditGoalie.hs
gpl-3.0
ltGamesC :: Bool -> Action () -> Controller ltGamesC = curry $ promptController . uncurry editGoalieLtGamesPrompt
115
ltGamesC :: Bool -> Action () -> Controller ltGamesC = curry $ promptController . uncurry editGoalieLtGamesPrompt
115
ltGamesC = curry $ promptController . uncurry editGoalieLtGamesPrompt
71
false
true
2
9
17
43
18
25
null
null
projedi/hsmenu
src/Main.hs
gpl-2.0
doCallWithPath :: String -> IO (Maybe String) doCallWithPath title = do progs <- populateFromPath res <- doCall title (Map.keys progs) return $ flip Map.lookup progs =<< res
182
doCallWithPath :: String -> IO (Maybe String) doCallWithPath title = do progs <- populateFromPath res <- doCall title (Map.keys progs) return $ flip Map.lookup progs =<< res
182
doCallWithPath title = do progs <- populateFromPath res <- doCall title (Map.keys progs) return $ flip Map.lookup progs =<< res
136
false
true
0
11
35
72
33
39
null
null