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
oldmanmike/ghc
compiler/hsSyn/HsExpr.hs
bsd-3-clause
ppr_expr (RecordUpd { rupd_expr = aexp, rupd_flds = rbinds }) = hang (pprLExpr aexp) 2 (braces (fsep (punctuate comma (map ppr rbinds))))
139
ppr_expr (RecordUpd { rupd_expr = aexp, rupd_flds = rbinds }) = hang (pprLExpr aexp) 2 (braces (fsep (punctuate comma (map ppr rbinds))))
139
ppr_expr (RecordUpd { rupd_expr = aexp, rupd_flds = rbinds }) = hang (pprLExpr aexp) 2 (braces (fsep (punctuate comma (map ppr rbinds))))
139
false
false
0
13
23
68
35
33
null
null
adinapoli/api-tools
src/Data/API/Changes.hs
bsd-3-clause
withObject :: (JS.Object -> Position -> Either (ValueError, Position) JS.Object) -> JS.Value -> Position -> Either (ValueError, Position) JS.Value withObject alter (JS.Object obj) p = JS.Object <$> alter obj p
220
withObject :: (JS.Object -> Position -> Either (ValueError, Position) JS.Object) -> JS.Value -> Position -> Either (ValueError, Position) JS.Value withObject alter (JS.Object obj) p = JS.Object <$> alter obj p
220
withObject alter (JS.Object obj) p = JS.Object <$> alter obj p
62
false
true
0
12
40
94
47
47
null
null
BartAdv/Idris-dev
src/IRTS/JavaScript/AST.hs
bsd-3-clause
compileJS' indent (JSType ty) | JSIntTy <- ty = "i$Int" | JSStringTy <- ty = "i$String" | JSIntegerTy <- ty = "i$Integer" | JSFloatTy <- ty = "i$Float" | JSCharTy <- ty = "i$Char" | JSPtrTy <- ty = "i$Ptr" | JSForgotTy <- ty = "i$Forgot"
266
compileJS' indent (JSType ty) | JSIntTy <- ty = "i$Int" | JSStringTy <- ty = "i$String" | JSIntegerTy <- ty = "i$Integer" | JSFloatTy <- ty = "i$Float" | JSCharTy <- ty = "i$Char" | JSPtrTy <- ty = "i$Ptr" | JSForgotTy <- ty = "i$Forgot"
266
compileJS' indent (JSType ty) | JSIntTy <- ty = "i$Int" | JSStringTy <- ty = "i$String" | JSIntegerTy <- ty = "i$Integer" | JSFloatTy <- ty = "i$Float" | JSCharTy <- ty = "i$Char" | JSPtrTy <- ty = "i$Ptr" | JSForgotTy <- ty = "i$Forgot"
266
false
false
0
8
74
120
54
66
null
null
michalc/haskell-experiments
mem.hs
mit
myMemo :: Ord a => (a -> MyMemo a b) -> a -> MyMemo a b myMemo f x = gets (Map.lookup x) >>= maybe y' return where y' = f x >>= \y -> modify (Map.insert x y) >> return y
175
myMemo :: Ord a => (a -> MyMemo a b) -> a -> MyMemo a b myMemo f x = gets (Map.lookup x) >>= maybe y' return where y' = f x >>= \y -> modify (Map.insert x y) >> return y
175
myMemo f x = gets (Map.lookup x) >>= maybe y' return where y' = f x >>= \y -> modify (Map.insert x y) >> return y
119
false
true
0
11
47
108
51
57
null
null
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_CONVOLUTION_1D_EXT :: GLenum gl_CONVOLUTION_1D_EXT = 0x8010
62
gl_CONVOLUTION_1D_EXT :: GLenum gl_CONVOLUTION_1D_EXT = 0x8010
62
gl_CONVOLUTION_1D_EXT = 0x8010
30
false
true
0
4
5
11
6
5
null
null
forked-upstream-packages-for-ghcjs/ghc
compiler/simplCore/CoreMonad.hs
bsd-3-clause
getPrintUnqualified :: CoreM PrintUnqualified getPrintUnqualified = read cr_print_unqual
88
getPrintUnqualified :: CoreM PrintUnqualified getPrintUnqualified = read cr_print_unqual
88
getPrintUnqualified = read cr_print_unqual
42
false
true
0
5
7
17
8
9
null
null
copton/ocram
ocram/src/Ocram/Names.hs
gpl-2.0
-- TODO: split this file into the submodules ecPrefix :: String ecPrefix = "ec_"
81
ecPrefix :: String ecPrefix = "ec_"
35
ecPrefix = "ec_"
16
true
true
0
6
14
19
8
11
null
null
apyrgio/snf-ganeti
src/Ganeti/HTools/CLI.hs
bsd-2-clause
oMinGainLim :: OptType oMinGainLim = (Option "" ["min-gain-limit"] (reqWithConversion (tryRead "min gain limit") (\g opts -> Ok opts { optMinGainLim = g }) "SCORE") "minimum cluster score for which we start checking the min-gain", OptComplFloat)
260
oMinGainLim :: OptType oMinGainLim = (Option "" ["min-gain-limit"] (reqWithConversion (tryRead "min gain limit") (\g opts -> Ok opts { optMinGainLim = g }) "SCORE") "minimum cluster score for which we start checking the min-gain", OptComplFloat)
260
oMinGainLim = (Option "" ["min-gain-limit"] (reqWithConversion (tryRead "min gain limit") (\g opts -> Ok opts { optMinGainLim = g }) "SCORE") "minimum cluster score for which we start checking the min-gain", OptComplFloat)
237
false
true
0
14
49
73
37
36
null
null
ModernSteward/blog
Handler/Blog.hs
bsd-2-clause
getDeleteEntryR :: Text -> Handler RepHtml getDeleteEntryR slug = do (msgType, msg) <- runDB $ do mentity <- getBy $ UniquePost slug case mentity of Just (Entity key _) -> do delete key return (Success, "post deleted!") Nothing -> return (Erro...
465
getDeleteEntryR :: Text -> Handler RepHtml getDeleteEntryR slug = do (msgType, msg) <- runDB $ do mentity <- getBy $ UniquePost slug case mentity of Just (Entity key _) -> do delete key return (Success, "post deleted!") Nothing -> return (Erro...
465
getDeleteEntryR slug = do (msgType, msg) <- runDB $ do mentity <- getBy $ UniquePost slug case mentity of Just (Entity key _) -> do delete key return (Success, "post deleted!") Nothing -> return (Error, "post not found") case msgType of ...
422
false
true
0
17
159
144
67
77
null
null
christiaanb/clash-compiler
clash-lib/src/CLaSH/Core/Pretty.hs
bsd-2-clause
pprPrecAlt :: (Applicative m, LFresh m) => Rational -> (Pat,Term) -> m Doc pprPrecAlt _ (altPat, altE) = do altPat' <- pprPrec noPrec altPat altE' <- pprPrec noPrec altE return $ hang (altPat' <+> rarrow) 2 altE'
220
pprPrecAlt :: (Applicative m, LFresh m) => Rational -> (Pat,Term) -> m Doc pprPrecAlt _ (altPat, altE) = do altPat' <- pprPrec noPrec altPat altE' <- pprPrec noPrec altE return $ hang (altPat' <+> rarrow) 2 altE'
220
pprPrecAlt _ (altPat, altE) = do altPat' <- pprPrec noPrec altPat altE' <- pprPrec noPrec altE return $ hang (altPat' <+> rarrow) 2 altE'
145
false
true
0
10
44
99
49
50
null
null
ancientlanguage/haskell-analysis
prepare/src/Prepare/Decompose.hs
mit
decomposeChar '\x305C' = "\x305B\x3099"
39
decomposeChar '\x305C' = "\x305B\x3099"
39
decomposeChar '\x305C' = "\x305B\x3099"
39
false
false
1
5
3
13
4
9
null
null
damoxc/ganeti
src/Ganeti/Query/Node.hs
gpl-2.0
nodeLiveFieldExtract "ctotal" res = jsonHead (rpcResNodeInfoHvInfo res) hvInfoCpuTotal
88
nodeLiveFieldExtract "ctotal" res = jsonHead (rpcResNodeInfoHvInfo res) hvInfoCpuTotal
88
nodeLiveFieldExtract "ctotal" res = jsonHead (rpcResNodeInfoHvInfo res) hvInfoCpuTotal
88
false
false
0
7
9
22
10
12
null
null
YoEight/spellcheck
lib/Data/Spellcheck/Distance.hs
mit
editDistanceSmall :: T.Text -> T.Text -> Int editDistanceSmall seq1 seq2 = fromMaybe seq1_length res where seq1_length = T.length seq1 seq2_head = T.head seq2 whenFound = T.find (== seq2_head) seq1 res = T.length seq1 - 1 <$ whenFound
264
editDistanceSmall :: T.Text -> T.Text -> Int editDistanceSmall seq1 seq2 = fromMaybe seq1_length res where seq1_length = T.length seq1 seq2_head = T.head seq2 whenFound = T.find (== seq2_head) seq1 res = T.length seq1 - 1 <$ whenFound
264
editDistanceSmall seq1 seq2 = fromMaybe seq1_length res where seq1_length = T.length seq1 seq2_head = T.head seq2 whenFound = T.find (== seq2_head) seq1 res = T.length seq1 - 1 <$ whenFound
219
false
true
0
10
66
89
45
44
null
null
da-x/lamdu
bottlelib/Graphics/UI/Bottle/Widget.hs
gpl-3.0
respondToCursorPrefix :: Id -> Env -> Widget a -> Widget a respondToCursorPrefix myIdPrefix = respondToCursorBy (Lens.has Lens._Just . subId myIdPrefix)
156
respondToCursorPrefix :: Id -> Env -> Widget a -> Widget a respondToCursorPrefix myIdPrefix = respondToCursorBy (Lens.has Lens._Just . subId myIdPrefix)
156
respondToCursorPrefix myIdPrefix = respondToCursorBy (Lens.has Lens._Just . subId myIdPrefix)
97
false
true
0
9
23
52
24
28
null
null
upsoft/bond
compiler/src/Language/Bond/Codegen/TypeMapping.hs
mit
csTypeAnnotation _ (BT_UserDefined Alias {aliasType = BT_Blob} _) = pure "global::Bond.Tag.blob"
96
csTypeAnnotation _ (BT_UserDefined Alias {aliasType = BT_Blob} _) = pure "global::Bond.Tag.blob"
96
csTypeAnnotation _ (BT_UserDefined Alias {aliasType = BT_Blob} _) = pure "global::Bond.Tag.blob"
96
false
false
1
9
10
33
15
18
null
null
jyp/prettiest
Text/PrettyPrint/Compact.hs
gpl-3.0
-- | The document @(vcat xs)@ concatenates all documents @xs@ -- vertically with @($$)@. vcat :: Annotation a => [Doc a] -> Doc a vcat = foldDoc ($$)
160
vcat :: Annotation a => [Doc a] -> Doc a vcat = foldDoc ($$)
71
vcat = foldDoc ($$)
30
true
true
0
8
38
38
20
18
null
null
zeekay/lambdabot
lambdabot-utils/Lambdabot/Pointful.hs
mit
succAlpha [] = "a"
24
succAlpha [] = "a"
24
succAlpha [] = "a"
24
false
false
1
5
9
15
5
10
null
null
jsavatgy/dit-doo
too-old/too-old-01.hs
gpl-2.0
intToDouble :: Int -> Double intToDouble i = fromRational (toRational i)
72
intToDouble :: Int -> Double intToDouble i = fromRational (toRational i)
72
intToDouble i = fromRational (toRational i)
43
false
true
0
7
10
27
13
14
null
null
facebookincubator/duckling
Duckling/Time/AR/Rules.hs
bsd-3-clause
ruleHONumeral :: Rule ruleHONumeral = Rule { name = "<hour-of-day> <integer>" , pattern = [ Predicate $ and . sequence [isNotLatent, isAnHourOfDay] , Predicate $ isIntegerBetween 1 59 ] , prod = \tokens -> case tokens of (Token Time TimeData {TTime.form = Just (TTime.TimeOfDay (Just hours) is12H...
445
ruleHONumeral :: Rule ruleHONumeral = Rule { name = "<hour-of-day> <integer>" , pattern = [ Predicate $ and . sequence [isNotLatent, isAnHourOfDay] , Predicate $ isIntegerBetween 1 59 ] , prod = \tokens -> case tokens of (Token Time TimeData {TTime.form = Just (TTime.TimeOfDay (Just hours) is12H...
445
ruleHONumeral = Rule { name = "<hour-of-day> <integer>" , pattern = [ Predicate $ and . sequence [isNotLatent, isAnHourOfDay] , Predicate $ isIntegerBetween 1 59 ] , prod = \tokens -> case tokens of (Token Time TimeData {TTime.form = Just (TTime.TimeOfDay (Just hours) is12H)}: token: ...
423
false
true
0
22
126
158
81
77
null
null
Booster2/Booster2
Workflow_Precond/impl_disjoint/Workflows.hs
bsd-3-clause
exSeqWfChoice11 = Choice (natom "g1","a1") Skip (natom "g2","a2") Skip
95
exSeqWfChoice11 = Choice (natom "g1","a1") Skip (natom "g2","a2") Skip
95
exSeqWfChoice11 = Choice (natom "g1","a1") Skip (natom "g2","a2") Skip
95
false
false
0
7
33
33
17
16
null
null
trbauer/globexpr
Test/TestGlob.hs
mit
runPureTest :: Either String GlobExpr -> [String] -> IO () runPureTest eg vals = do case eg of Left str -> case parseGlob str of Left err -> putStrLn $ str ++ ": FAILED: " ++ err Right g -> runPureTest (Right g) vals Right g -> do putStr $ show (ppGlob g) ++ ": " ...
1,176
runPureTest :: Either String GlobExpr -> [String] -> IO () runPureTest eg vals = do case eg of Left str -> case parseGlob str of Left err -> putStrLn $ str ++ ": FAILED: " ++ err Right g -> runPureTest (Right g) vals Right g -> do putStr $ show (ppGlob g) ++ ": " ...
1,176
runPureTest eg vals = do case eg of Left str -> case parseGlob str of Left err -> putStrLn $ str ++ ": FAILED: " ++ err Right g -> runPureTest (Right g) vals Right g -> do putStr $ show (ppGlob g) ++ ": " let res = concatMap (expandGlob g) vals putStrLn $ ...
1,117
false
true
0
27
373
387
187
200
null
null
pocket7878/mini-reg
src/Reg.hs
gpl-3.0
and :: Reg a -> Reg a -> Reg a and a b = (Right (And a b))
58
and :: Reg a -> Reg a -> Reg a and a b = (Right (And a b))
58
and a b = (Right (And a b))
27
false
true
0
9
17
52
23
29
null
null
henrytill/deviser
src/Deviser/Evaluator.hs
bsd-3-clause
eqOp _ (Bool _) y = throwError (TypeMismatch "bool" y)
62
eqOp _ (Bool _) y = throwError (TypeMismatch "bool" y)
62
eqOp _ (Bool _) y = throwError (TypeMismatch "bool" y)
62
false
false
1
7
17
31
14
17
null
null
dbp/karamaan-opaleye
Karamaan/Opaleye/RunQuery.hs
bsd-3-clause
fieldQueryRunner :: FromField a => QueryRunner (Wire a) a fieldQueryRunner = fieldQueryRunnerF id
97
fieldQueryRunner :: FromField a => QueryRunner (Wire a) a fieldQueryRunner = fieldQueryRunnerF id
97
fieldQueryRunner = fieldQueryRunnerF id
39
false
true
0
8
12
32
15
17
null
null
egonSchiele/HandsomeSoup
src/Text/HandsomeSoup.hs
bsd-3-clause
fromSelectors sel@(s:selectors) = foldl (\acc selector -> acc <+> _fromSelectors selector) (_fromSelectors s) selectors
119
fromSelectors sel@(s:selectors) = foldl (\acc selector -> acc <+> _fromSelectors selector) (_fromSelectors s) selectors
119
fromSelectors sel@(s:selectors) = foldl (\acc selector -> acc <+> _fromSelectors selector) (_fromSelectors s) selectors
119
false
false
0
9
13
49
25
24
null
null
termite2/tsl
Abstract/Predicate.hs
bsd-3-clause
relOpToPredOp RLt = (True, PLt)
33
relOpToPredOp RLt = (True, PLt)
33
relOpToPredOp RLt = (True, PLt)
33
false
false
0
5
6
16
8
8
null
null
AlexanderPankiv/ghc
compiler/main/DynFlags.hs
bsd-3-clause
isAvx2Enabled :: DynFlags -> Bool isAvx2Enabled dflags = avx2 dflags || avx512f dflags
86
isAvx2Enabled :: DynFlags -> Bool isAvx2Enabled dflags = avx2 dflags || avx512f dflags
86
isAvx2Enabled dflags = avx2 dflags || avx512f dflags
52
false
true
0
7
12
33
14
19
null
null
diffusionkinetics/open
dampf/lib/Dampf/AppFile/Pretty.hs
mit
pprContainerSpec :: ContainerSpec -> Doc pprContainerSpec spec = vcat [ text "image:" <+> text i , text "expose:" <+> pprList e , text "command:" <+> text c , text "useDatabase:" <+> text d ] where i = spec ^. image . to T.unpack e = spec ^. expose . non [] c = spec ^. c...
400
pprContainerSpec :: ContainerSpec -> Doc pprContainerSpec spec = vcat [ text "image:" <+> text i , text "expose:" <+> pprList e , text "command:" <+> text c , text "useDatabase:" <+> text d ] where i = spec ^. image . to T.unpack e = spec ^. expose . non [] c = spec ^. c...
400
pprContainerSpec spec = vcat [ text "image:" <+> text i , text "expose:" <+> pprList e , text "command:" <+> text c , text "useDatabase:" <+> text d ] where i = spec ^. image . to T.unpack e = spec ^. expose . non [] c = spec ^. command . non "" . to T.unpack d = spe...
359
false
true
4
7
125
174
77
97
null
null
uduki/hsQt
extra-pkgs/Glome/Qt/Glome/Cone.hs
bsd-2-clause
-- then rayint_aadisc clip1 r (Ray orig dir) d t -- else RayMiss -- rayint_aadisc clip2 -- (r*((clip2-clip1)/height)) -- (Ray orig dir) d t -- todo: fix normal shadow_cone :: Cone -> Ray -> Fl...
1,795
shadow_cone :: Cone -> Ray -> Flt -> Bool shadow_cone (Cone r clip1 clip2 height) (Ray orig dir) d = let Vec ox oy oz = orig Vec dx dy dz = dir k' = (r/height) k = k'*k' a = dx*dx + dy*dy - k*dz*dz b = 2*(dx*ox + dy*oy - k*dz*(oz-height)) c = ox*ox + oy*oy - k*(oz-height)*(oz-height) ...
1,507
shadow_cone (Cone r clip1 clip2 height) (Ray orig dir) d = let Vec ox oy oz = orig Vec dx dy dz = dir k' = (r/height) k = k'*k' a = dx*dx + dy*dy - k*dz*dz b = 2*(dx*ox + dy*oy - k*dz*(oz-height)) c = ox*ox + oy*oy - k*(oz-height)*(oz-height) disc = b*b - 4*a*c in if disc < 0 th...
1,465
true
true
0
29
906
630
332
298
null
null
jsavatgy/xroads-game
code/io-segs.hs
gpl-2.0
drawCircle color r (Point x y) = do setColor color arc x y r 0 tau fill
77
drawCircle color r (Point x y) = do setColor color arc x y r 0 tau fill
77
drawCircle color r (Point x y) = do setColor color arc x y r 0 tau fill
77
false
false
0
7
22
44
19
25
null
null
HIPERFIT/futhark
src/Futhark/IR/SegOp.hs
isc
segSpaceSymbolTable :: ASTRep rep => SegSpace -> ST.SymbolTable rep segSpaceSymbolTable (SegSpace flat gtids_and_dims) = foldl' f (ST.fromScope $ M.singleton flat $ IndexName Int64) gtids_and_dims where f vtable (gtid, dim) = ST.insertLoopVar gtid Int64 dim vtable
272
segSpaceSymbolTable :: ASTRep rep => SegSpace -> ST.SymbolTable rep segSpaceSymbolTable (SegSpace flat gtids_and_dims) = foldl' f (ST.fromScope $ M.singleton flat $ IndexName Int64) gtids_and_dims where f vtable (gtid, dim) = ST.insertLoopVar gtid Int64 dim vtable
272
segSpaceSymbolTable (SegSpace flat gtids_and_dims) = foldl' f (ST.fromScope $ M.singleton flat $ IndexName Int64) gtids_and_dims where f vtable (gtid, dim) = ST.insertLoopVar gtid Int64 dim vtable
204
false
true
0
10
42
95
46
49
null
null
lucasbraun/mt-rewrite
src/MtUtils.hs
bsd-3-clause
getIntermediateIdentifier (Pa.Parens _ e) = "p_" ++ (getIntermediateIdentifier e) ++ "_p"
95
getIntermediateIdentifier (Pa.Parens _ e) = "p_" ++ (getIntermediateIdentifier e) ++ "_p"
95
getIntermediateIdentifier (Pa.Parens _ e) = "p_" ++ (getIntermediateIdentifier e) ++ "_p"
95
false
false
0
8
16
33
16
17
null
null
batterseapower/context-semantics
Language/ContextSemantics/CallByNeedLambda.hs
bsd-3-clause
-- -- Translation from traditional CBN lambda calculus -- exprSemantics :: Expr -> (Port, [(String, Port)]) exprSemantics e = exprSemantics' (fv "Input") [(v, fv v) | v <- freeVars e] e
186
exprSemantics :: Expr -> (Port, [(String, Port)]) exprSemantics e = exprSemantics' (fv "Input") [(v, fv v) | v <- freeVars e] e
127
exprSemantics e = exprSemantics' (fv "Input") [(v, fv v) | v <- freeVars e] e
77
true
true
0
10
31
77
41
36
null
null
hesselink/stack
src/Stack/Types/BuildPlan.hs
bsd-3-clause
simpleParse :: (MonadThrow m, DT.Text a, Typeable a) => Text -> m a simpleParse orig = withTypeRep $ \rep -> case DT.simpleParse str of Nothing -> throwM (ParseFailedException rep (pack str)) Just v -> return v where str = unpack orig withTypeRep :: Typeable a => (TypeRep -> m a) -> m a ...
463
simpleParse :: (MonadThrow m, DT.Text a, Typeable a) => Text -> m a simpleParse orig = withTypeRep $ \rep -> case DT.simpleParse str of Nothing -> throwM (ParseFailedException rep (pack str)) Just v -> return v where str = unpack orig withTypeRep :: Typeable a => (TypeRep -> m a) -> m a ...
463
simpleParse orig = withTypeRep $ \rep -> case DT.simpleParse str of Nothing -> throwM (ParseFailedException rep (pack str)) Just v -> return v where str = unpack orig withTypeRep :: Typeable a => (TypeRep -> m a) -> m a withTypeRep f = res where res = f (typeOf ...
395
false
true
2
14
149
191
92
99
null
null
AlexeyRaga/eta
compiler/ETA/CodeGen/Prim.hs
bsd-3-clause
simpleOp FloatNeOp = Just $ typedCmp jfloat ifne
48
simpleOp FloatNeOp = Just $ typedCmp jfloat ifne
48
simpleOp FloatNeOp = Just $ typedCmp jfloat ifne
48
false
false
0
6
7
18
8
10
null
null
denibertovic/haskell
kubernetes/lib/Kubernetes/OpenAPI/ModelLens.hs
bsd-3-clause
-- | 'v1VolumeRbd' Lens v1VolumeRbdL :: Lens_' V1Volume (Maybe V1RBDVolumeSource) v1VolumeRbdL f V1Volume{..} = (\v1VolumeRbd -> V1Volume { v1VolumeRbd, ..} ) <$> f v1VolumeRbd
176
v1VolumeRbdL :: Lens_' V1Volume (Maybe V1RBDVolumeSource) v1VolumeRbdL f V1Volume{..} = (\v1VolumeRbd -> V1Volume { v1VolumeRbd, ..} ) <$> f v1VolumeRbd
152
v1VolumeRbdL f V1Volume{..} = (\v1VolumeRbd -> V1Volume { v1VolumeRbd, ..} ) <$> f v1VolumeRbd
94
true
true
1
8
23
60
30
30
null
null
KaneTW/Idris-dev
src/Idris/REPL.hs
bsd-3-clause
initScript :: Idris () initScript = do script <- getInitScript idrisCatch (do go <- runIO $ doesFileExist script when go $ do h <- runIO $ openFile script ReadMode runInit h ...
1,650
initScript :: Idris () initScript = do script <- getInitScript idrisCatch (do go <- runIO $ doesFileExist script when go $ do h <- runIO $ openFile script ReadMode runInit h ...
1,650
initScript = do script <- getInitScript idrisCatch (do go <- runIO $ doesFileExist script when go $ do h <- runIO $ openFile script ReadMode runInit h runIO $ hClose h) ...
1,627
false
true
1
16
758
444
198
246
null
null
rahulmutt/codec-jvm
src/Codec/JVM/Opcode.hs
apache-2.0
iconst_0 = Opcode 0x03
22
iconst_0 = Opcode 0x03
22
iconst_0 = Opcode 0x03
22
false
false
0
5
3
9
4
5
null
null
robdockins/edison
edison-core/src/Data/Edison/Seq/RevSeq.hs
mit
reducer' f e (N _ xs) = S.reducel' (flip f) e xs
48
reducer' f e (N _ xs) = S.reducel' (flip f) e xs
48
reducer' f e (N _ xs) = S.reducel' (flip f) e xs
48
false
false
0
7
11
36
17
19
null
null
christinem/courseography
app/Css/Constants.hs
gpl-3.0
-- |Defines "stroke" as text for CSS. stroke :: Text -> Css stroke = (-:) "stroke"
82
stroke :: Text -> Css stroke = (-:) "stroke"
44
stroke = (-:) "stroke"
22
true
true
0
7
15
28
13
15
null
null
fmthoma/ghc
compiler/coreSyn/MkCore.hs
bsd-3-clause
-- | Create a 'CoreExpr' which will evaluate to the given @Word@ mkWordExprWord :: DynFlags -> Word -> CoreExpr mkWordExprWord dflags w = mkConApp wordDataCon [mkWordLitWord dflags w]
183
mkWordExprWord :: DynFlags -> Word -> CoreExpr mkWordExprWord dflags w = mkConApp wordDataCon [mkWordLitWord dflags w]
118
mkWordExprWord dflags w = mkConApp wordDataCon [mkWordLitWord dflags w]
71
true
true
0
8
27
44
20
24
null
null
howell/cassava
benchmarks/Benchmarks.hs
bsd-3-clause
fromStrict s = BL.fromChunks [s]
32
fromStrict s = BL.fromChunks [s]
32
fromStrict s = BL.fromChunks [s]
32
false
false
1
5
4
20
8
12
null
null
alephcloud/hs-configuration-tools
Setup.hs
mit
-- -------------------------------------------------------------------------- -- -- Compat Implementations prettyLicense :: I.InstalledPackageInfo -> String prettyLicense = either prettyShow prettyShow . I.license
214
prettyLicense :: I.InstalledPackageInfo -> String prettyLicense = either prettyShow prettyShow . I.license
106
prettyLicense = either prettyShow prettyShow . I.license
56
true
true
0
7
18
37
17
20
null
null
jacekszymanski/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxFR_DOWN :: Int wxFR_DOWN = 1
30
wxFR_DOWN :: Int wxFR_DOWN = 1
30
wxFR_DOWN = 1
13
false
true
0
4
5
11
6
5
null
null
bgamari/text
src/Data/Text/Read.hs
bsd-2-clause
signed f = runP (signa (P f))
29
signed f = runP (signa (P f))
29
signed f = runP (signa (P f))
29
false
false
0
9
6
24
11
13
null
null
facebookincubator/duckling
Duckling/Rules/VI.hs
bsd-3-clause
langRules (Seal TimeGrain) = TimeGrain.rules
44
langRules (Seal TimeGrain) = TimeGrain.rules
44
langRules (Seal TimeGrain) = TimeGrain.rules
44
false
false
0
7
4
17
8
9
null
null
jre2/HaskellTagging
Data/Tag.hs
bsd-3-clause
withAnyTag :: [Tag] -> Tagged a -> Tagged a withAnyTag ts ta = filter (\(a,ats) -> ts `intersect` ats /= []) ta
112
withAnyTag :: [Tag] -> Tagged a -> Tagged a withAnyTag ts ta = filter (\(a,ats) -> ts `intersect` ats /= []) ta
111
withAnyTag ts ta = filter (\(a,ats) -> ts `intersect` ats /= []) ta
67
false
true
0
9
22
64
34
30
null
null
dmvianna/haskellbook
src/Ch26-StepByStep.hs
unlicense
eval3 :: Exp -> Eval3 Value eval3 (Lit i) = return $ IntVal i
61
eval3 :: Exp -> Eval3 Value eval3 (Lit i) = return $ IntVal i
61
eval3 (Lit i) = return $ IntVal i
33
false
true
2
9
13
39
17
22
null
null
abdulrahimnizamani/OccamStar
Niz.hs
gpl-2.0
ngrams xs i | length xs < i = []
32
ngrams xs i | length xs < i = []
32
ngrams xs i | length xs < i = []
32
false
false
0
9
9
31
12
19
null
null
travitch/dalvik
src/Dalvik/SSA/Internal/Labeling.hs
bsd-3-clause
labelNumber :: Label -> Int labelNumber (SimpleLabel i) = i
59
labelNumber :: Label -> Int labelNumber (SimpleLabel i) = i
59
labelNumber (SimpleLabel i) = i
31
false
true
0
6
9
28
13
15
null
null
fffej/HS-Poker
LookupPatternMatch.hs
bsd-3-clause
getValueFromProduct 568178 = 2544
33
getValueFromProduct 568178 = 2544
33
getValueFromProduct 568178 = 2544
33
false
false
0
5
3
9
4
5
null
null
yiannist/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
hvKvmUserShutdown :: String hvKvmUserShutdown = "user_shutdown"
63
hvKvmUserShutdown :: String hvKvmUserShutdown = "user_shutdown"
63
hvKvmUserShutdown = "user_shutdown"
35
false
true
0
4
5
11
6
5
null
null
s4ke/101lang
interpreter.hs
apache-2.0
appendOutput :: State -> String -> State appendOutput state string = toState (stack state, index state, (output state) ++ string)
129
appendOutput :: State -> String -> State appendOutput state string = toState (stack state, index state, (output state) ++ string)
129
appendOutput state string = toState (stack state, index state, (output state) ++ string)
88
false
true
0
9
19
52
26
26
null
null
kim/amazonka
amazonka-opsworks/gen/Network/AWS/OpsWorks/Types.hs
mpl-2.0
-- | The default subnet ID, if the stack is running in a VPC. sDefaultSubnetId :: Lens' Stack (Maybe Text) sDefaultSubnetId = lens _sDefaultSubnetId (\s a -> s { _sDefaultSubnetId = a })
186
sDefaultSubnetId :: Lens' Stack (Maybe Text) sDefaultSubnetId = lens _sDefaultSubnetId (\s a -> s { _sDefaultSubnetId = a })
124
sDefaultSubnetId = lens _sDefaultSubnetId (\s a -> s { _sDefaultSubnetId = a })
79
true
true
0
9
32
46
25
21
null
null
oldmanmike/ghc
compiler/typecheck/TcRnTypes.hs
bsd-3-clause
ctoHerald :: SDoc ctoHerald = text "arising from"
49
ctoHerald :: SDoc ctoHerald = text "arising from"
49
ctoHerald = text "arising from"
31
false
true
0
6
7
21
8
13
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/showSigned_2.hs
mit
showChar :: Char -> (List Char) -> (List Char); showChar = Cons
67
showChar :: Char -> (List Char) -> (List Char) showChar = Cons
66
showChar = Cons
15
false
true
1
9
15
38
18
20
null
null
felixsch/ircbot
src/Network/IRC.hs
gpl-2.0
connectToIrc settings@(h,_) = logMessage (Just h) "Host is already connected" >> return settings
96
connectToIrc settings@(h,_) = logMessage (Just h) "Host is already connected" >> return settings
96
connectToIrc settings@(h,_) = logMessage (Just h) "Host is already connected" >> return settings
96
false
false
0
8
12
36
18
18
null
null
JoeyEremondi/haskelm-old
src/SourceSyntax/PrettyPrint.hs
bsd-3-clause
commaSep docs = sep (punctuate comma docs)
42
commaSep docs = sep (punctuate comma docs)
42
commaSep docs = sep (punctuate comma docs)
42
false
false
0
7
6
20
9
11
null
null
jeannekamikaze/Spear
Spear/Math/Camera.hs
mit
-- | Build a perspective camera. perspective :: Fovy -- ^ Fovy - Vertical field of view angle in degrees. -> Aspect -- ^ Aspect ratio. -> Near -- ^ Near clip. -> Far -- ^ Far clip. -> Right3 -- ^ Right vector. -> Up3 -- ^ Up v...
602
perspective :: Fovy -- ^ Fovy - Vertical field of view angle in degrees. -> Aspect -- ^ Aspect ratio. -> Near -- ^ Near clip. -> Far -- ^ Far clip. -> Right3 -- ^ Right vector. -> Up3 -- ^ Up vector. -> Forward3 -...
565
perspective fovy r n f right up fwd pos = Camera { projection = M.perspective fovy r n f , spatial = fromVectors right up fwd pos }
154
true
true
0
12
251
107
58
49
null
null
peteg/ADHOC
Tests/08_Kesterel/070_par_exn.hs
gpl-2.0
-------------------- e2 = signalE $ \(s0, s1, s2) -> probeSigE "s0" s0 >>> probeSigE "s1" s1 >>> probeSigE "s2" s2 >>> (emitE s0 |||| (emitE s1 >>> pauseE)) >>> emitE s2
172
e2 = signalE $ \(s0, s1, s2) -> probeSigE "s0" s0 >>> probeSigE "s1" s1 >>> probeSigE "s2" s2 >>> (emitE s0 |||| (emitE s1 >>> pauseE)) >>> emitE s2
150
e2 = signalE $ \(s0, s1, s2) -> probeSigE "s0" s0 >>> probeSigE "s1" s1 >>> probeSigE "s2" s2 >>> (emitE s0 |||| (emitE s1 >>> pauseE)) >>> emitE s2
150
true
false
0
13
33
79
40
39
null
null
karamellpelle/MEnv
source/File/Binary/Writer.hs
bsd-2-clause
wWord8s :: [Word8] -> Writer wWord8s = putLazyByteString . BS.pack
70
wWord8s :: [Word8] -> Writer wWord8s = putLazyByteString . BS.pack
70
wWord8s = putLazyByteString . BS.pack
41
false
true
1
7
13
32
14
18
null
null
ancientlanguage/haskell-analysis
grammar/src/Grammar/Common/Decompose.hs
mit
decomposeChar '\xF939' = "\x9B6F"
33
decomposeChar '\xF939' = "\x9B6F"
33
decomposeChar '\xF939' = "\x9B6F"
33
false
false
0
5
3
9
4
5
null
null
uduki/hsQt
Qtc/Gui/QBrush.hs
bsd-2-clause
setTexture :: QBrush a -> ((QPixmap t1)) -> IO () setTexture x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QBrush_setTexture cobj_x0 cobj_x1
180
setTexture :: QBrush a -> ((QPixmap t1)) -> IO () setTexture x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QBrush_setTexture cobj_x0 cobj_x1
180
setTexture x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QBrush_setTexture cobj_x0 cobj_x1
130
false
true
0
9
36
78
37
41
null
null
CindyLinz/Haskell.js
trans/src/Desugar/CaseReorder.hs
mit
deCaseReorderQName a1 (UnQual l name) = UnQual (id l) (deCaseReorderName a1 name)
81
deCaseReorderQName a1 (UnQual l name) = UnQual (id l) (deCaseReorderName a1 name)
81
deCaseReorderQName a1 (UnQual l name) = UnQual (id l) (deCaseReorderName a1 name)
81
false
false
0
7
11
38
18
20
null
null
Acidburn0zzz/haddock
haddock-api/src/Haddock/Backends/Hyperlinker/Renderer.hs
bsd-2-clause
externalAnchorIdent :: GHC.Name -> String externalAnchorIdent = hypSrcNameUrl
77
externalAnchorIdent :: GHC.Name -> String externalAnchorIdent = hypSrcNameUrl
77
externalAnchorIdent = hypSrcNameUrl
35
false
true
0
6
7
17
9
8
null
null
gabesoft/kapi
test/PersistenceMongoDBSpec.hs
bsd-3-clause
verifyValidateId :: Record -> ValidationResult -> Expectation verifyValidateId r expected = snd (validateRecordHasId r) `shouldBe` expected
139
verifyValidateId :: Record -> ValidationResult -> Expectation verifyValidateId r expected = snd (validateRecordHasId r) `shouldBe` expected
139
verifyValidateId r expected = snd (validateRecordHasId r) `shouldBe` expected
77
false
true
0
8
15
45
21
24
null
null
pgj/bead
src/Bead/View/Content/CourseAdmin/Page.hs
bsd-3-clause
submitGroup :: POSTContentHandler submitGroup = UA.CreateGroup <$> getParameter (jsonCourseKeyPrm (fieldName courseKeyInfo)) <*> getGroup
141
submitGroup :: POSTContentHandler submitGroup = UA.CreateGroup <$> getParameter (jsonCourseKeyPrm (fieldName courseKeyInfo)) <*> getGroup
141
submitGroup = UA.CreateGroup <$> getParameter (jsonCourseKeyPrm (fieldName courseKeyInfo)) <*> getGroup
107
false
true
5
9
16
41
20
21
null
null
andorp/grin
grin/src/AbstractInterpretation/CreatedBy/Readback.hs
bsd-3-clause
-- removes the producer info from the nodes in a typeSet simplifyTypeSet :: TypeSetP -> TypeSet simplifyTypeSet = over (nodeSet.nodeTagMap) (M.map dropProducer)
160
simplifyTypeSet :: TypeSetP -> TypeSet simplifyTypeSet = over (nodeSet.nodeTagMap) (M.map dropProducer)
103
simplifyTypeSet = over (nodeSet.nodeTagMap) (M.map dropProducer)
64
true
true
0
8
21
34
18
16
null
null
rueshyna/gogol
gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs
mpl-2.0
-- | Creates a value of 'SourceOperationResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'sorSplit' -- -- * 'sorGetMetadata' sourceOperationResponse :: SourceOperationResponse sourceOperationResponse = SourceOperationR...
392
sourceOperationResponse :: SourceOperationResponse sourceOperationResponse = SourceOperationResponse' { _sorSplit = Nothing , _sorGetMetadata = Nothing }
173
sourceOperationResponse = SourceOperationResponse' { _sorSplit = Nothing , _sorGetMetadata = Nothing }
118
true
true
0
7
72
42
24
18
null
null
Javran/misc
syb-play/src/Main.hs
mit
foldWithDirectChildren :: (a -> a -> a) -> a -> Tree a -> Tree a foldWithDirectChildren f z (Node a s) = Node (a `f` foldl f z (map rootLabel s)) s
147
foldWithDirectChildren :: (a -> a -> a) -> a -> Tree a -> Tree a foldWithDirectChildren f z (Node a s) = Node (a `f` foldl f z (map rootLabel s)) s
147
foldWithDirectChildren f z (Node a s) = Node (a `f` foldl f z (map rootLabel s)) s
82
false
true
0
10
31
84
42
42
null
null
vollmerm/accelerate-apart
Data/Array/Accelerate/Apart/Exp.hs
bsd-3-clause
ceilingToC :: FloatingType a -> IntegralType b -> C.Exp -> C.Exp ceilingToC ta tb x = ccast (NumScalarType (IntegralNumType tb)) $ ccall (FloatingNumType ta `postfix` "ceil") [x]
182
ceilingToC :: FloatingType a -> IntegralType b -> C.Exp -> C.Exp ceilingToC ta tb x = ccast (NumScalarType (IntegralNumType tb)) $ ccall (FloatingNumType ta `postfix` "ceil") [x]
182
ceilingToC ta tb x = ccast (NumScalarType (IntegralNumType tb)) $ ccall (FloatingNumType ta `postfix` "ceil") [x]
117
false
true
2
9
30
79
39
40
null
null
sgillespie/ghc
compiler/codeGen/StgCmmForeign.hs
bsd-3-clause
sp, spLim, hp, hpLim, currentTSO, currentNursery, hpAlloc :: CmmReg sp = CmmGlobal Sp
100
sp, spLim, hp, hpLim, currentTSO, currentNursery, hpAlloc :: CmmReg sp = CmmGlobal Sp
100
sp = CmmGlobal Sp
32
false
true
9
5
27
45
19
26
null
null
shwsun/xmonad-ubuntu-conf
xmonad.hs
mit
-- Here we combine our default layouts with our specific, workspace-locked -- layouts. myLayouts = onWorkspace "7:Chat" imLayout $ onWorkspace "9:Pix" gimpLayout $ onWorkspace "4:Docs" docLayout $ defaultLayouts
219
myLayouts = onWorkspace "7:Chat" imLayout $ onWorkspace "9:Pix" gimpLayout $ onWorkspace "4:Docs" docLayout $ defaultLayouts
132
myLayouts = onWorkspace "7:Chat" imLayout $ onWorkspace "9:Pix" gimpLayout $ onWorkspace "4:Docs" docLayout $ defaultLayouts
132
true
false
7
5
35
45
17
28
null
null
rueshyna/gogol
gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types/Product.hs
mpl-2.0
-- | Instance id token of the app. irpvarInstanceId :: Lens' IdentitytoolkitRelyingPartyVerifyAssertionRequest (Maybe Text) irpvarInstanceId = lens _irpvarInstanceId (\ s a -> s{_irpvarInstanceId = a})
209
irpvarInstanceId :: Lens' IdentitytoolkitRelyingPartyVerifyAssertionRequest (Maybe Text) irpvarInstanceId = lens _irpvarInstanceId (\ s a -> s{_irpvarInstanceId = a})
174
irpvarInstanceId = lens _irpvarInstanceId (\ s a -> s{_irpvarInstanceId = a})
85
true
true
1
9
32
51
25
26
null
null
ezyang/ghc
compiler/main/Elf.hs
bsd-3-clause
readElfSectionByName :: DynFlags -> ByteString -> String -> IO (Maybe LBS.ByteString) readElfSectionByName dflags bs name = action `catchIO` \_ -> do debugTraceMsg dflags 3 $ text ("Unable to read ELF section \"" ++ name ++ "\"") return Nothi...
772
readElfSectionByName :: DynFlags -> ByteString -> String -> IO (Maybe LBS.ByteString) readElfSectionByName dflags bs name = action `catchIO` \_ -> do debugTraceMsg dflags 3 $ text ("Unable to read ELF section \"" ++ name ++ "\"") return Nothin...
771
readElfSectionByName dflags bs name = action `catchIO` \_ -> do debugTraceMsg dflags 3 $ text ("Unable to read ELF section \"" ++ name ++ "\"") return Nothing where action = runMaybeT $ do hdr <- MaybeT $ readElfHeader dflags bs secTable <- MaybeT $ readElfSectionTable dflags hdr bs...
622
false
true
1
13
219
163
78
85
null
null
swian/minesweeper
src/App/Ui.hs
bsd-3-clause
maxX :: Getter Board Int maxX = to bounds._2._1
47
maxX :: Getter Board Int maxX = to bounds._2._1
47
maxX = to bounds._2._1
22
false
true
0
7
8
23
11
12
null
null
mstksg/auto
src/Control/Auto/Process/Random.hs
mit
-- | Given a seed-consuming generating function of form @g -> (b, g)@ -- (where @g@ is the seed, and @b@ is the result) and an initial seed, -- return an 'Auto' that continually generates random values using the -- given generating funcion. -- -- You'll notice that most of the useful functions from "System.Random" fit ...
1,709
rands :: (Serialize g, RandomGen g) => (g -> (b, g)) -- ^ random generating function -> g -- ^ random generator seed -> Auto m a b rands r = mkState (\_ g -> g `seq` r g)
200
rands r = mkState (\_ g -> g `seq` r g)
39
true
true
0
9
360
122
85
37
null
null
SRechenberger/grammata
src/Grammata/Machine.hs
gpl-3.0
fKeep :: () => CoreLambda m -- ^ Expression, whichs value is to be kept. -> CoreLambda m -- ^ Keep expression. fKeep = FKeep
152
fKeep :: () => CoreLambda m -- ^ Expression, whichs value is to be kept. -> CoreLambda m fKeep = FKeep
122
fKeep = FKeep
13
true
true
0
8
52
33
16
17
null
null
hsyl20/ViperVM
haskus-system/src/lib/Haskus/System/Linux/Internals/Sound.hs
bsd-3-clause
ioctlTimerContinue :: MonadInIO m => Handle -> FlowT '[ErrorCode] m () ioctlTimerContinue = timerIoctl 0xa2
107
ioctlTimerContinue :: MonadInIO m => Handle -> FlowT '[ErrorCode] m () ioctlTimerContinue = timerIoctl 0xa2
107
ioctlTimerContinue = timerIoctl 0xa2
36
false
true
0
10
14
44
20
24
null
null
mariusae/bert
bert.hs
bsd-3-clause
doServe = undefined
19
doServe = undefined
19
doServe = undefined
19
false
false
0
4
2
6
3
3
null
null
ruud-v-a/blog
src/Main.hs
gpl-3.0
readTemplates :: FilePath -> IO (M.Map FilePath Template.Template) readTemplates = mapFilesFileName $ (fmap Template.parse) . readFile
134
readTemplates :: FilePath -> IO (M.Map FilePath Template.Template) readTemplates = mapFilesFileName $ (fmap Template.parse) . readFile
134
readTemplates = mapFilesFileName $ (fmap Template.parse) . readFile
67
false
true
0
10
15
52
24
28
null
null
sdiehl/ghc
compiler/GHC/Cmm/CommonBlockElim.hs
bsd-3-clause
eqMiddleWith _ _ _ = False
26
eqMiddleWith _ _ _ = False
26
eqMiddleWith _ _ _ = False
26
false
false
1
5
5
14
5
9
null
null
brendanhay/gogol
gogol-containeranalysis/gen/Network/Google/ContainerAnalysis/Types/Product.hs
mpl-2.0
-- | Output only. The time this note was last updated. This field can be used -- as a filter in list requests. nUpdateTime :: Lens' Note (Maybe UTCTime) nUpdateTime = lens _nUpdateTime (\ s a -> s{_nUpdateTime = a}) . mapping _DateTime
243
nUpdateTime :: Lens' Note (Maybe UTCTime) nUpdateTime = lens _nUpdateTime (\ s a -> s{_nUpdateTime = a}) . mapping _DateTime
132
nUpdateTime = lens _nUpdateTime (\ s a -> s{_nUpdateTime = a}) . mapping _DateTime
90
true
true
0
10
50
56
29
27
null
null
wafna/euler
Main.hs
unlicense
-- | What is the sum of the digits of the number 21000? p16 :: Integer p16 = sum $ int2digits $ 2 ^ 1000
104
p16 :: Integer p16 = sum $ int2digits $ 2 ^ 1000
48
p16 = sum $ int2digits $ 2 ^ 1000
33
true
true
0
7
24
24
13
11
null
null
travitch/hsqml
src/Graphics/QML/Types/Classes.hs
bsd-3-clause
writeProperty :: Property -> State MOCState () writeProperty p = do idx <- get >>= return . mDataLen writeString $ propertyName p writeString $ typeName $ propertyType p -- The property flags are ORed with something and shifted left 24 -- bits. According to the moc source, the value is -- qvariant_nameToTy...
839
writeProperty :: Property -> State MOCState () writeProperty p = do idx <- get >>= return . mDataLen writeString $ propertyName p writeString $ typeName $ propertyType p -- The property flags are ORed with something and shifted left 24 -- bits. According to the moc source, the value is -- qvariant_nameToTy...
839
writeProperty p = do idx <- get >>= return . mDataLen writeString $ propertyName p writeString $ typeName $ propertyType p -- The property flags are ORed with something and shifted left 24 -- bits. According to the moc source, the value is -- qvariant_nameToType; I'm not sure exactly what is going on there...
792
false
true
0
12
175
133
66
67
null
null
abakst/liquidhaskell
src/Language/Haskell/Liquid/Parse.hs
bsd-3-clause
dummyBindP = tempSymbol "db" <$> freshIntP
42
dummyBindP = tempSymbol "db" <$> freshIntP
42
dummyBindP = tempSymbol "db" <$> freshIntP
42
false
false
0
6
5
13
6
7
null
null
genos/online_problems
advent_of_code_2020/day08/Main.hs
mit
operationP :: Parser Operation operationP = (string "acc" $> ACC) <|> (string "jmp" $> JMP) <|> (string "nop" $> NOP)
117
operationP :: Parser Operation operationP = (string "acc" $> ACC) <|> (string "jmp" $> JMP) <|> (string "nop" $> NOP)
117
operationP = (string "acc" $> ACC) <|> (string "jmp" $> JMP) <|> (string "nop" $> NOP)
86
false
true
0
9
19
58
27
31
null
null
ostapneko/sansible
src/AnsibleModules/File.hs
mit
createSymlinkTask :: FilePath -> FilePath -> Task createSymlinkTask s d = task (T.pack ("symlinking " <> s <> " to " <> d)) (createSymlink s d)
208
createSymlinkTask :: FilePath -> FilePath -> Task createSymlinkTask s d = task (T.pack ("symlinking " <> s <> " to " <> d)) (createSymlink s d)
208
createSymlinkTask s d = task (T.pack ("symlinking " <> s <> " to " <> d)) (createSymlink s d)
122
false
true
0
11
90
60
30
30
null
null
ekmett/transients
src/Data/Transient/Primitive/SmallArray.hs
bsd-2-clause
sizeOfSmallMutableArray :: SmallMutableArray s a -> Int sizeOfSmallMutableArray (SmallMutableArray a) = I# (sizeofSmallMutableArray# a)
135
sizeOfSmallMutableArray :: SmallMutableArray s a -> Int sizeOfSmallMutableArray (SmallMutableArray a) = I# (sizeofSmallMutableArray# a)
135
sizeOfSmallMutableArray (SmallMutableArray a) = I# (sizeofSmallMutableArray# a)
79
false
true
0
7
13
38
18
20
null
null
mariefarrell/Hets
Common/MathLink.hs
gpl-2.0
dfMLTKMODERNCHARS_DECODER = 524288
34
dfMLTKMODERNCHARS_DECODER = 524288
34
dfMLTKMODERNCHARS_DECODER = 524288
34
false
false
0
4
2
6
3
3
null
null
phaazon/vector
Data/Vector/Primitive.hs
bsd-3-clause
foldM = G.foldM
15
foldM = G.foldM
15
foldM = G.foldM
15
false
false
0
5
2
8
4
4
null
null
copumpkin/vector-static
Data/Vector/Generic/Static.hs
bsd-3-clause
zip (Vec as) (Vec bs) = Vec (G.zip as bs)
41
zip (Vec as) (Vec bs) = Vec (G.zip as bs)
41
zip (Vec as) (Vec bs) = Vec (G.zip as bs)
41
false
false
1
8
9
38
17
21
null
null
SKA-ScienceDataProcessor/RC
MS3/lib/DNA/CH.hs
apache-2.0
-- | Obtain last value from channel or use default if it's empty drainChannel0 :: Serializable a => ReceivePort a -> a -> Process a drainChannel0 ch a = maybe (return a) (drainChannel0 ch) =<< receiveChanTimeout 0 ch
220
drainChannel0 :: Serializable a => ReceivePort a -> a -> Process a drainChannel0 ch a = maybe (return a) (drainChannel0 ch) =<< receiveChanTimeout 0 ch
155
drainChannel0 ch a = maybe (return a) (drainChannel0 ch) =<< receiveChanTimeout 0 ch
88
true
true
0
9
41
69
31
38
null
null
Noeda/dfterm3
src/Dfterm3/CP437ToUnicode.hs
isc
cp437ToUnicode 212 = '\x2558'
29
cp437ToUnicode 212 = '\x2558'
29
cp437ToUnicode 212 = '\x2558'
29
false
false
0
5
3
9
4
5
null
null
joehillen/aura
src/Aura/Diff.hs
gpl-3.0
showRange :: LineRange -> String showRange r = show (start r) ++ "," ++ show (rangeLength r)
92
showRange :: LineRange -> String showRange r = show (start r) ++ "," ++ show (rangeLength r)
92
showRange r = show (start r) ++ "," ++ show (rangeLength r)
59
false
true
2
8
16
50
22
28
null
null
andrewthad/yesod-bootstrap
src/Yesod/Bootstrap.hs
mit
br_ :: [(Text,Text)] -> WidgetT site IO () br_ attrs = [whamlet|<br *{mkStrAttrs attrs}>|]
90
br_ :: [(Text,Text)] -> WidgetT site IO () br_ attrs = [whamlet|<br *{mkStrAttrs attrs}>|]
90
br_ attrs = [whamlet|<br *{mkStrAttrs attrs}>|]
47
false
true
0
8
13
45
24
21
null
null
cutsea110/aop
src/FixPrime.hs
bsd-3-clause
-- ref.) https://twitter.com/xgrommx/status/1259815344358797314 (@xgrommx's tweet) -- but this do NOT have the type signature i expected -- mutu'' :: Functor f => (f (a, a) -> a) -> (f (a, a) -> a) -> Fix f -> a -- mutu'' f g = g . fmap (pair (mutu'' g f, mutu'' f g)) . out -- This is the type signature i love. Here i...
687
mutu'' :: Functor f => (f (a, b) -> b) -> (f (a, b) -> a) -> Fix f -> b mutu'' = v where u :: Functor f => (f (a, b) -> a) -> (f (a, b) -> b) -> Fix f -> a u f g = f . fmap (pair (u f g, v g f)) . out v :: Functor f => (f (a, b) -> b) -> (f (a, b) -> a) -> Fix f -> b v g f = g . fmap (pair (u f g, v ...
350
mutu'' = v where u :: Functor f => (f (a, b) -> a) -> (f (a, b) -> b) -> Fix f -> a u f g = f . fmap (pair (u f g, v g f)) . out v :: Functor f => (f (a, b) -> b) -> (f (a, b) -> a) -> Fix f -> b v g f = g . fmap (pair (u f g, v g f)) . out -- comutumorphism
278
true
true
9
11
189
277
145
132
null
null
chemist/agentx
src/Network/Protocol/Snmp/AgentX/MIBTree/MIBTree.hs
bsd-3-clause
isFocusObjectType :: Contexted a => (Tree a, t) -> (Bool, Maybe Context -> Bool) isFocusObjectType (Node v _ Empty,_) = (withValue v, (==) (context v))
151
isFocusObjectType :: Contexted a => (Tree a, t) -> (Bool, Maybe Context -> Bool) isFocusObjectType (Node v _ Empty,_) = (withValue v, (==) (context v))
151
isFocusObjectType (Node v _ Empty,_) = (withValue v, (==) (context v))
70
false
true
0
9
24
80
42
38
null
null
alexander-at-github/eta
compiler/ETA/Utils/Encoding.hs
bsd-3-clause
decode_lower 'i' = '.'
22
decode_lower 'i' = '.'
22
decode_lower 'i' = '.'
22
false
false
0
5
3
9
4
5
null
null
Mahdi89/eTeak
src/Main.hs
bsd-3-clause
defaultCommandLineState :: CommandLineState defaultCommandLineState = CommandLineState { clDoSimulate = False, clDoOptimUsage = False, clDoOptimise = False, clDoGui = False, clDoPlot = False, clDoGates = False, clDoPNTestCard = Nothing, clDoRulesTestCa...
587
defaultCommandLineState :: CommandLineState defaultCommandLineState = CommandLineState { clDoSimulate = False, clDoOptimUsage = False, clDoOptimise = False, clDoGui = False, clDoPlot = False, clDoGates = False, clDoPNTestCard = Nothing, clDoRulesTestCard =...
583
defaultCommandLineState = CommandLineState { clDoSimulate = False, clDoOptimUsage = False, clDoOptimise = False, clDoGui = False, clDoPlot = False, clDoGates = False, clDoPNTestCard = Nothing, clDoRulesTestCard = Nothing, clNetworkFile = Nothing, ...
539
false
true
0
7
195
114
72
42
null
null