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
robdockins/edison
edison-core/src/Data/Edison/Seq/MyersStack.hs
mit
lheadM E = fail "MyersStack.lheadM: empty sequence"
51
lheadM E = fail "MyersStack.lheadM: empty sequence"
51
lheadM E = fail "MyersStack.lheadM: empty sequence"
51
false
false
0
5
6
12
5
7
null
null
beni55/haste-compiler
libraries/haste-lib/src/Haste/Binary/Get.hs
bsd-3-clause
getF64le :: JSAny -> Int -> IO Double getF64le = ffi "(function(b,i){return b.getFloat64(i,true);})"
100
getF64le :: JSAny -> Int -> IO Double getF64le = ffi "(function(b,i){return b.getFloat64(i,true);})"
100
getF64le = ffi "(function(b,i){return b.getFloat64(i,true);})"
62
false
true
0
8
12
30
13
17
null
null
tolysz/prepare-ghcjs
spec-lts8/cabal/cabal-install/Distribution/Client/Setup.hs
bsd-3-clause
usagePackages :: String -> String -> String usagePackages name pname = "Usage: " ++ pname ++ " " ++ name ++ " [PACKAGES]\n"
128
usagePackages :: String -> String -> String usagePackages name pname = "Usage: " ++ pname ++ " " ++ name ++ " [PACKAGES]\n"
128
usagePackages name pname = "Usage: " ++ pname ++ " " ++ name ++ " [PACKAGES]\n"
84
false
true
4
8
27
48
21
27
null
null
mydaum/cabal
cabal-testsuite/Test/Cabal/Prelude.hs
bsd-3-clause
setup :: String -> [String] -> TestM () setup cmd args = void (setup' cmd args)
79
setup :: String -> [String] -> TestM () setup cmd args = void (setup' cmd args)
79
setup cmd args = void (setup' cmd args)
39
false
true
0
8
15
43
21
22
null
null
zhiyuanshi/fcore
examples/case_studies/HeapSort.hs
bsd-2-clause
--function "heapContents" heapContents :: Heap -> Set.Set Int heapContents Leaf = Set.empty
91
heapContents :: Heap -> Set.Set Int heapContents Leaf = Set.empty
65
heapContents Leaf = Set.empty
29
true
true
0
8
11
31
14
17
null
null
Vlix/telegram-bot-http
Network/Telegram/Bot/Requests.hs
mit
tshow :: Show a => a -> Text tshow = T.pack . show
50
tshow :: Show a => a -> Text tshow = T.pack . show
50
tshow = T.pack . show
21
false
true
0
6
12
28
14
14
null
null
andygill/thermopolis
src/Model/Page.hs
bsd-2-clause
mkPage :: User -> a -> Remote k (Page a) mkPage usr a = return $ Page (userName usr) (mkSidebar usr) a
102
mkPage :: User -> a -> Remote k (Page a) mkPage usr a = return $ Page (userName usr) (mkSidebar usr) a
102
mkPage usr a = return $ Page (userName usr) (mkSidebar usr) a
61
false
true
0
9
21
58
28
30
null
null
mikeyhc/kainbot
src/Main.hs
bsd-3-clause
optionValues (OptionHostPort p) = p
35
optionValues (OptionHostPort p) = p
35
optionValues (OptionHostPort p) = p
35
false
false
0
7
4
15
7
8
null
null
oldmanmike/vulkan
generate/src/Spec/Graph.hs
bsd-3-clause
vertexToStructType :: Vertex -> Maybe StructType vertexToStructType v = case vSourceEntity v of AStructType s -> Just s _ -> Nothing
172
vertexToStructType :: Vertex -> Maybe StructType vertexToStructType v = case vSourceEntity v of AStructType s -> Just s _ -> Nothing
172
vertexToStructType v = case vSourceEntity v of AStructType s -> Just s _ -> Nothing
123
false
true
0
8
60
46
21
25
null
null
jystic/language-livescript
src/Language/Livescript/Lexer.hs
apache-2.0
colon :: Parser String colon = T.colon lex
42
colon :: Parser String colon = T.colon lex
42
colon = T.colon lex
19
false
true
1
6
7
22
9
13
null
null
bmsherman/haskell-vect
Data/Vect.hs
bsd-3-clause
init :: Vect (S n) a -> Vect n a init (x :. ys) = init' x ys where init' :: a -> Vect n a -> Vect n a init' _ Nil = Nil init' y (z :. zs) = y :. init' z zs
163
init :: Vect (S n) a -> Vect n a init (x :. ys) = init' x ys where init' :: a -> Vect n a -> Vect n a init' _ Nil = Nil init' y (z :. zs) = y :. init' z zs
163
init (x :. ys) = init' x ys where init' :: a -> Vect n a -> Vect n a init' _ Nil = Nil init' y (z :. zs) = y :. init' z zs
130
false
true
2
9
53
120
54
66
null
null
julitopower/HaskellLearning
calculator/Calc.hs
mit
evalStr :: String -> Maybe Integer evalStr = evalExpr . parseExp Lit ExprT.Add ExprT.Mul
88
evalStr :: String -> Maybe Integer evalStr = evalExpr . parseExp Lit ExprT.Add ExprT.Mul
88
evalStr = evalExpr . parseExp Lit ExprT.Add ExprT.Mul
53
false
true
0
7
13
38
17
21
null
null
tel/saltine
bench/BenchUtils.hs
mit
s128 = T.replicate 128 (T.pack "0")
37
s128 = T.replicate 128 (T.pack "0")
37
s128 = T.replicate 128 (T.pack "0")
37
false
false
1
8
7
26
10
16
null
null
nickbart1980/pandoc
src/Text/Pandoc/Readers/HTML.hs
gpl-2.0
-- http://www.w3.org/TR/html-markup/p.html x `closes` "p" | x `elem` ["address", "article", "aside", "blockquote", "dir", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"] = True
291
x `closes` "p" | x `elem` ["address", "article", "aside", "blockquote", "dir", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"] = True
248
x `closes` "p" | x `elem` ["address", "article", "aside", "blockquote", "dir", "div", "dl", "fieldset", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hr", "menu", "nav", "ol", "p", "pre", "section", "table", "ul"] = True
248
true
false
0
9
44
109
67
42
null
null
TOSPIO/jason
src/Jason/Util.hs
gpl-3.0
bsToText :: ByteString -> Text bsToText = decodeUtf8
52
bsToText :: ByteString -> Text bsToText = decodeUtf8
52
bsToText = decodeUtf8
21
false
true
0
5
7
15
8
7
null
null
zalora/sproxy
src/Sproxy/Server/DB.hs
mit
refreshGroupMembers :: SQLite.Connection -> (SQLite.Statement -> IO ()) -> IO () refreshGroupMembers c a = do SQLite.execute_ c "DROP TABLE IF EXISTS group_member" createGroupMember c SQLite.withStatement c [q|INSERT INTO group_member("group", email) VALUES (?, ?)|] a
286
refreshGroupMembers :: SQLite.Connection -> (SQLite.Statement -> IO ()) -> IO () refreshGroupMembers c a = do SQLite.execute_ c "DROP TABLE IF EXISTS group_member" createGroupMember c SQLite.withStatement c [q|INSERT INTO group_member("group", email) VALUES (?, ?)|] a
286
refreshGroupMembers c a = do SQLite.execute_ c "DROP TABLE IF EXISTS group_member" createGroupMember c SQLite.withStatement c [q|INSERT INTO group_member("group", email) VALUES (?, ?)|] a
205
false
true
0
10
52
77
37
40
null
null
sdiehl/ghc
compiler/GHC/CoreToStg.hs
bsd-3-clause
myCollectArgs :: CoreExpr -> (Id, [CoreArg], [Tickish Id]) myCollectArgs expr = go expr [] [] where go (Var v) as ts = (v, as, ts) go (App f a) as ts = go f (a:as) ts go (Tick t e) as ts = ASSERT( all isTypeArg as ) go e as (t:ts) -- ticks can appear...
710
myCollectArgs :: CoreExpr -> (Id, [CoreArg], [Tickish Id]) myCollectArgs expr = go expr [] [] where go (Var v) as ts = (v, as, ts) go (App f a) as ts = go f (a:as) ts go (Tick t e) as ts = ASSERT( all isTypeArg as ) go e as (t:ts) -- ticks can appear...
710
myCollectArgs expr = go expr [] [] where go (Var v) as ts = (v, as, ts) go (App f a) as ts = go f (a:as) ts go (Tick t e) as ts = ASSERT( all isTypeArg as ) go e as (t:ts) -- ticks can appear in type apps go (Cast e _) as ts = go e as ts ...
651
false
true
1
10
254
266
128
138
null
null
bitemyapp/uri-bytestring
test/Main.hs
bsd-3-clause
testSuite :: TestTree testSuite = testGroup "uri-bytestring" [ URI.ByteStringTests.tests ]
98
testSuite :: TestTree testSuite = testGroup "uri-bytestring" [ URI.ByteStringTests.tests ]
98
testSuite = testGroup "uri-bytestring" [ URI.ByteStringTests.tests ]
76
false
true
0
6
17
23
12
11
null
null
romanb/amazonka
amazonka-ec2/gen/Network/AWS/EC2/CreateInstanceExportTask.hs
mpl-2.0
-- | The target virtualization environment. cietTargetEnvironment :: Lens' CreateInstanceExportTask (Maybe ExportEnvironment) cietTargetEnvironment = lens _cietTargetEnvironment (\s a -> s { _cietTargetEnvironment = a })
224
cietTargetEnvironment :: Lens' CreateInstanceExportTask (Maybe ExportEnvironment) cietTargetEnvironment = lens _cietTargetEnvironment (\s a -> s { _cietTargetEnvironment = a })
180
cietTargetEnvironment = lens _cietTargetEnvironment (\s a -> s { _cietTargetEnvironment = a })
98
true
true
0
9
28
46
25
21
null
null
facebookincubator/duckling
Duckling/DistanceUnits/Types.hs
bsd-3-clause
inMetres Metre n = n
25
inMetres Metre n = n
25
inMetres Metre n = n
25
false
false
1
5
9
16
5
11
null
null
ku-fpg/better-life
HERMIT/Acc/Life.hs
bsd-2-clause
-- abstraction of (Board' -> Board') "births", "survivors", "nextgen", "next" absBB :: (Board' -> Board') -> Board -> Board absBB f = absB . f . repB
149
absBB :: (Board' -> Board') -> Board -> Board absBB f = absB . f . repB
71
absBB f = absB . f . repB
25
true
true
2
8
26
46
21
25
null
null
imalsogreg/tetrode-ephys
utils/drawSpline.hs
gpl-3.0
selectableColor :: Color -> Bool -> Bool -> Picture -> Picture selectableColor c False False = color c
102
selectableColor :: Color -> Bool -> Bool -> Picture -> Picture selectableColor c False False = color c
102
selectableColor c False False = color c
39
false
true
0
10
17
42
19
23
null
null
vincenthz/language-c
src/Language/C/Analysis/AstAnalysis.hs
bsd-3-clause
matchDesignator _ _ = True
26
matchDesignator _ _ = True
26
matchDesignator _ _ = True
26
false
false
0
5
4
11
5
6
null
null
DanGrayson/cubicaltt
Resolver.hs
mit
lam :: (Ident,Exp) -> Resolver Ter -> Resolver Ter lam (a,t) e = CTT.Lam a <$> resolveExp t <*> local (insertVar a) e
117
lam :: (Ident,Exp) -> Resolver Ter -> Resolver Ter lam (a,t) e = CTT.Lam a <$> resolveExp t <*> local (insertVar a) e
117
lam (a,t) e = CTT.Lam a <$> resolveExp t <*> local (insertVar a) e
66
false
true
0
8
22
69
34
35
null
null
bokesan/skred
tools/CombGen.hs
mit
toJava '*' = 's'
16
toJava '*' = 's'
16
toJava '*' = 's'
16
false
false
1
5
3
13
4
9
null
null
mtlstats/mtlstats
src/Mtlstats/Actions.hs
gpl-3.0
dbSetup :: Action String dbSetup = do fn <- gets (^.dbName) liftIO $ do dir <- getAppUserDataDirectory appName createDirectoryIfMissing True dir return $ dir </> fn ++ ".json"
191
dbSetup :: Action String dbSetup = do fn <- gets (^.dbName) liftIO $ do dir <- getAppUserDataDirectory appName createDirectoryIfMissing True dir return $ dir </> fn ++ ".json"
191
dbSetup = do fn <- gets (^.dbName) liftIO $ do dir <- getAppUserDataDirectory appName createDirectoryIfMissing True dir return $ dir </> fn ++ ".json"
166
false
true
0
12
43
68
31
37
null
null
JamieBeverley/InnerEar
src/InnerEar/Database/Stores.hs
gpl-3.0
findAllStores :: Connection -> Handle -> IO [StoreDB] findAllStores conn h = query conn "SELECT handle,exerciseId,store,time FROM stores WHERE handle = ?" (Only (fmap Data.Char.toLower h))
188
findAllStores :: Connection -> Handle -> IO [StoreDB] findAllStores conn h = query conn "SELECT handle,exerciseId,store,time FROM stores WHERE handle = ?" (Only (fmap Data.Char.toLower h))
188
findAllStores conn h = query conn "SELECT handle,exerciseId,store,time FROM stores WHERE handle = ?" (Only (fmap Data.Char.toLower h))
134
false
true
0
10
25
54
27
27
null
null
thomasjm/ot.hs
src/Control/OperationalTransformation/JSON/Affects.hs
mit
affects :: JSONOp -> JSONOp -> Bool -- If an operation operates on the same index as a list insert, it does *not* affect the list insert -- The exception to this is another list insert, in which case we must break ties -- The other exception to this is a ListMove, which is also tricky affects op1@(getFullPath -> path1...
580
affects :: JSONOp -> JSONOp -> Bool affects op1@(getFullPath -> path1) (ListInsert path2 index2 _) | (not $ isListInsert op1) , (not $ isListMove op1) , (path2 ++ [Pos index2]) `isPrefixOf` path...
329
affects op1@(getFullPath -> path1) (ListInsert path2 index2 _) | (not $ isListInsert op1) , (not $ isListMove op1) , (path2 ++ [Pos index2]) `isPrefixOf` path1 = False
293
true
true
10
8
209
102
54
48
null
null
michiexile/hplex
pershom/src/Math/Simplicial/Simplex.hs
bsd-3-clause
s4 :: Simplex Char s4 = fromList "ab"
37
s4 :: Simplex Char s4 = fromList "ab"
37
s4 = fromList "ab"
18
false
true
1
5
7
20
8
12
null
null
sdiehl/ghc
testsuite/tests/codeGen/should_run/T16846.hs
bsd-3-clause
go (Free (StepSTM a)) = pure $ a >>= \_ -> pure ()
50
go (Free (StepSTM a)) = pure $ a >>= \_ -> pure ()
50
go (Free (StepSTM a)) = pure $ a >>= \_ -> pure ()
50
false
false
0
8
12
40
19
21
null
null
f-me/dmcc
src/DMCC/XML/Raw.hs
bsd-3-clause
-- FIXME: error sendRequest :: MonadLoggerIO m => OutputStream S.ByteString -> Int -> Request -> m () sendRequest h ix rq = do logDebugN $ "Sending request (invokeId=" <> tshow ix <> ") " <> tshow (L8.unpack rawRequest) liftIO $ flip Streams.writeLazyByteStri...
642
sendRequest :: MonadLoggerIO m => OutputStream S.ByteString -> Int -> Request -> m () sendRequest h ix rq = do logDebugN $ "Sending request (invokeId=" <> tshow ix <> ") " <> tshow (L8.unpack rawRequest) liftIO $ flip Streams.writeLazyByteString h $ runPut $ ...
626
sendRequest h ix rq = do logDebugN $ "Sending request (invokeId=" <> tshow ix <> ") " <> tshow (L8.unpack rawRequest) liftIO $ flip Streams.writeLazyByteString h $ runPut $ do putWord16be 0 putWord16be . fromIntegral $ 8 + L.length rawRequest let invokeId = S.pack . take 4 $ printf "%04d" ix ...
492
true
true
0
16
175
182
82
100
null
null
wkoiking/my-parser
src/MyParser/Numeral.hs
bsd-3-clause
fractExponent :: Monad m => Integer -> ParsecT String u m Double fractExponent n = do { fract <- fraction ; expo <- option 1.0 exponent' ; return ((fromInteger n + fract) * expo) } <|> do { expo <- exponent' ; return ((fromInteger n)*expo) }
248
fractExponent :: Monad m => Integer -> ParsecT String u m Double fractExponent n = do { fract <- fraction ; expo <- option 1.0 exponent' ; return ((fromInteger n + fract) * expo) } <|> do { expo <- exponent' ; return ((fromInteger n)*expo) }
248
fractExponent n = do { fract <- fraction ; expo <- option 1.0 exponent' ; return ((fromInteger n + fract) * expo) } <|> do { expo <- exponent' ; return ((fromInteger n)*expo) }
183
false
true
0
13
52
113
56
57
null
null
DataStewardshipPortal/ds-form-engine
FormElement/FormElement.hs
apache-2.0
makeElem parent1 maybeGroup maybeFormData item@SimpleGroup{ sgItems, .. } = Just simpleGroupElem where simpleGroupElem = SimpleGroupElem { sgi = item , sgeElements = items , sgeGroupNo = egNumber <$> maybeGroup , sgeParent = parent1 } items = mapMaybe (makeElem simpleGroupElem maybeGroup maybe...
337
makeElem parent1 maybeGroup maybeFormData item@SimpleGroup{ sgItems, .. } = Just simpleGroupElem where simpleGroupElem = SimpleGroupElem { sgi = item , sgeElements = items , sgeGroupNo = egNumber <$> maybeGroup , sgeParent = parent1 } items = mapMaybe (makeElem simpleGroupElem maybeGroup maybe...
337
makeElem parent1 maybeGroup maybeFormData item@SimpleGroup{ sgItems, .. } = Just simpleGroupElem where simpleGroupElem = SimpleGroupElem { sgi = item , sgeElements = items , sgeGroupNo = egNumber <$> maybeGroup , sgeParent = parent1 } items = mapMaybe (makeElem simpleGroupElem maybeGroup maybe...
337
false
false
0
8
67
88
48
40
null
null
SamirTalwar/advent-of-code
2015/AOC_07_2.hs
mit
compute :: Connections -> Values compute connections = values where values :: Values values = Map.map value connections value :: Operation -> Value value (Input input) = inputValue input value (And a b) = inputValue a .&. inputValue b value (Or a b) = inputValue a .|. inputValue b value (L...
633
compute :: Connections -> Values compute connections = values where values :: Values values = Map.map value connections value :: Operation -> Value value (Input input) = inputValue input value (And a b) = inputValue a .&. inputValue b value (Or a b) = inputValue a .|. inputValue b value (L...
633
compute connections = values where values :: Values values = Map.map value connections value :: Operation -> Value value (Input input) = inputValue input value (And a b) = inputValue a .&. inputValue b value (Or a b) = inputValue a .|. inputValue b value (LeftShift input amount) = inputVal...
600
false
true
0
7
140
230
114
116
null
null
vladimir-ipatov/ganeti
src/Ganeti/HTools/Backend/Luxi.hs
gpl-2.0
-- * Main loader functionality -- | Builds the cluster data by querying a given socket name. readData :: String -- ^ Unix socket to use as source -> IO (Result JSValue, Result JSValue, Result JSValue, Result JSValue) readData master = E.bracket (L.getClient master) L.closeClient (\s -> ...
526
readData :: String -- ^ Unix socket to use as source -> IO (Result JSValue, Result JSValue, Result JSValue, Result JSValue) readData master = E.bracket (L.getClient master) L.closeClient (\s -> do nodes <- queryNodes s instances <- queryInstances s cinfo <- ...
432
readData master = E.bracket (L.getClient master) L.closeClient (\s -> do nodes <- queryNodes s instances <- queryInstances s cinfo <- queryClusterInfo s groups <- queryGroups s return (groups, nodes, instances, cinfo) )
299
true
true
0
11
159
140
66
74
null
null
rueshyna/gogol
gogol-apps-calendar/gen/Network/Google/AppsCalendar/Types/Product.hs
mpl-2.0
-- | Whether the creator corresponds to the calendar on which this copy of -- the event appears. Read-only. The default is False. ecSelf :: Lens' EventCreator Bool ecSelf = lens _ecSelf (\ s a -> s{_ecSelf = a})
211
ecSelf :: Lens' EventCreator Bool ecSelf = lens _ecSelf (\ s a -> s{_ecSelf = a})
81
ecSelf = lens _ecSelf (\ s a -> s{_ecSelf = a})
47
true
true
0
9
38
41
23
18
null
null
ocharles/hs-quake-3
Quake3/Shader/TypeCheck.hs
bsd-3-clause
tcAlphaGen ("wave":args) = AlphaGenWave <$> tcWaveFunction args
63
tcAlphaGen ("wave":args) = AlphaGenWave <$> tcWaveFunction args
63
tcAlphaGen ("wave":args) = AlphaGenWave <$> tcWaveFunction args
63
false
false
0
6
6
24
11
13
null
null
juretta/spy
src/Main.hs
bsd-3-clause
version :: String version = "spy v0.7, (C) Stefan Saasen"
57
version :: String version = "spy v0.7, (C) Stefan Saasen"
57
version = "spy v0.7, (C) Stefan Saasen"
39
false
true
0
4
9
11
6
5
null
null
GaloisInc/halvm-ghc
libraries/template-haskell/Language/Haskell/TH/Ppr.hs
bsd-3-clause
pprPat i (InfixP p1 n p2) = parensIf (i >= opPrec) (pprPat opPrec p1 <+> pprName' Infix n <+> pprPat opPrec p2)
229
pprPat i (InfixP p1 n p2) = parensIf (i >= opPrec) (pprPat opPrec p1 <+> pprName' Infix n <+> pprPat opPrec p2)
229
pprPat i (InfixP p1 n p2) = parensIf (i >= opPrec) (pprPat opPrec p1 <+> pprName' Infix n <+> pprPat opPrec p2)
229
false
false
0
9
139
61
28
33
null
null
denibertovic/haskell
kubernetes/lib/Kubernetes/OpenAPI/ModelLens.hs
bsd-3-clause
-- | 'v1PodSpecNodeName' Lens v1PodSpecNodeNameL :: Lens_' V1PodSpec (Maybe Text) v1PodSpecNodeNameL f V1PodSpec{..} = (\v1PodSpecNodeName -> V1PodSpec { v1PodSpecNodeName, ..} ) <$> f v1PodSpecNodeName
202
v1PodSpecNodeNameL :: Lens_' V1PodSpec (Maybe Text) v1PodSpecNodeNameL f V1PodSpec{..} = (\v1PodSpecNodeName -> V1PodSpec { v1PodSpecNodeName, ..} ) <$> f v1PodSpecNodeName
172
v1PodSpecNodeNameL f V1PodSpec{..} = (\v1PodSpecNodeName -> V1PodSpec { v1PodSpecNodeName, ..} ) <$> f v1PodSpecNodeName
120
true
true
1
8
23
62
30
32
null
null
jtojnar/haste-compiler
libraries/ghc-7.10/ghc-prim/GHC/PrimopWrappers.hs
bsd-3-clause
indexIntOffAddr# :: Addr# -> Int# -> Int# indexIntOffAddr# a1 a2 = (GHC.Prim.indexIntOffAddr#) a1 a2
100
indexIntOffAddr# :: Addr# -> Int# -> Int# indexIntOffAddr# a1 a2 = (GHC.Prim.indexIntOffAddr#) a1 a2
100
indexIntOffAddr# a1 a2 = (GHC.Prim.indexIntOffAddr#) a1 a2
58
false
true
0
7
13
35
18
17
null
null
alphaHeavy/hlint
src/HSE/Util.hs
gpl-2.0
fromPParen x = x
16
fromPParen x = x
16
fromPParen x = x
16
false
false
1
5
3
13
4
9
null
null
mettekou/ghc
compiler/nativeGen/PPC/Instr.hs
bsd-3-clause
interesting :: Platform -> Reg -> Bool interesting _ (RegVirtual _) = True
94
interesting :: Platform -> Reg -> Bool interesting _ (RegVirtual _) = True
94
interesting _ (RegVirtual _) = True
55
false
true
0
7
32
30
15
15
null
null
lfritz/python-type-inference
python-type-inference/src/Language/Python/TypeInference/Analysis/Analysis.hs
bsd-3-clause
tf _ Assert _ = identity
32
tf _ Assert _ = identity
32
tf _ Assert _ = identity
32
false
false
1
5
13
15
6
9
null
null
urbanslug/ghc
compiler/prelude/THNames.hs
bsd-3-clause
unboxedTupEIdKey = mkPreludeMiscIdUnique 281
45
unboxedTupEIdKey = mkPreludeMiscIdUnique 281
45
unboxedTupEIdKey = mkPreludeMiscIdUnique 281
45
false
false
1
5
4
12
4
8
null
null
tel/haskell-maia
maia-aeson/src/Maia/Aeson.hs
mpl-2.0
eqBuildReader :: Sing rs -> Rec (Serializes Parser Value) rs -> Value -> Parser (Rec Req rs) reqBuildReader rs sz = withObject "maia request" (reqBuildObjReader rs sz)
172
reqBuildReader :: Sing rs -> Rec (Serializes Parser Value) rs -> Value -> Parser (Rec Req rs) reqBuildReader rs sz = withObject "maia request" (reqBuildObjReader rs sz)
172
reqBuildReader rs sz = withObject "maia request" (reqBuildObjReader rs sz)
74
false
true
0
11
31
69
32
37
null
null
jwvg0425/d3d11binding
src/Graphics/D3D11Binding/Shader/Flags.hs
mit
d3dCompileReserved16 :: D3DCompileFlag d3dCompileReserved16 = shift 1 16
72
d3dCompileReserved16 :: D3DCompileFlag d3dCompileReserved16 = shift 1 16
72
d3dCompileReserved16 = shift 1 16
33
false
true
0
6
7
24
9
15
null
null
mrmonday/Idris-dev
src/Idris/Docstrings.hs
bsd-3-clause
options = CT.Options { CT.sanitize = True , CT.allowRawHtml = False , CT.preserveHardBreaks = True , CT.debug = False }
203
options = CT.Options { CT.sanitize = True , CT.allowRawHtml = False , CT.preserveHardBreaks = True , CT.debug = False }
203
options = CT.Options { CT.sanitize = True , CT.allowRawHtml = False , CT.preserveHardBreaks = True , CT.debug = False }
203
false
false
1
6
103
45
25
20
null
null
keera-studios/hsQt
Qtc/Enums/Opengl/QGLFormat.hs
bsd-2-clause
eOpenGL_Version_1_4 :: OpenGLVersionFlag eOpenGL_Version_1_4 = ieOpenGLVersionFlag $ 8
88
eOpenGL_Version_1_4 :: OpenGLVersionFlag eOpenGL_Version_1_4 = ieOpenGLVersionFlag $ 8
88
eOpenGL_Version_1_4 = ieOpenGLVersionFlag $ 8
47
false
true
2
6
9
23
9
14
null
null
MaxGabriel/stack
src/main/Main.hs
bsd-3-clause
-- | The paths of interest to a user. The first tuple string is used -- for a description that the optparse flag uses, and the second -- string as a machine-readable key and also for @--foo@ flags. The user -- can choose a specific path to list like @--global-stack-root@. But -- really it's mainly for the documentation...
3,049
paths :: [(String, Text, PathInfo -> Text)] paths = [ ( "Global stack root directory" , "global-stack-root" , \pi -> T.pack (toFilePathNoTrailing (configStackRoot (bcConfig (piBuildConfig pi))))) , ( "Project root (derived from stack.yaml file)" , "project-root" , \pi -> ...
2,561
paths = [ ( "Global stack root directory" , "global-stack-root" , \pi -> T.pack (toFilePathNoTrailing (configStackRoot (bcConfig (piBuildConfig pi))))) , ( "Project root (derived from stack.yaml file)" , "project-root" , \pi -> T.pack (toFilePathNoTrailing (bcRo...
2,517
true
true
0
16
821
664
367
297
null
null
mtolly/rhythm
pgautoplay.hs
gpl-3.0
getDiffEvents :: (NN.C t) => Difficulty -> RTB.T t (PG.T t) -> RTB.T t PG.DiffEvent getDiffEvents d = RTB.mapMaybe $ \x -> case x of Length _ (PG.DiffEvent d' evt) | d == d' -> Just evt _ -> Nothing
204
getDiffEvents :: (NN.C t) => Difficulty -> RTB.T t (PG.T t) -> RTB.T t PG.DiffEvent getDiffEvents d = RTB.mapMaybe $ \x -> case x of Length _ (PG.DiffEvent d' evt) | d == d' -> Just evt _ -> Nothing
204
getDiffEvents d = RTB.mapMaybe $ \x -> case x of Length _ (PG.DiffEvent d' evt) | d == d' -> Just evt _ -> Nothing
118
false
true
0
13
45
112
54
58
null
null
ocramz/sparse-linear-algebra
src/Data/Sparse/Utils.hs
gpl-3.0
-- | Union of sparse lists having indices in _descending_ order unionWithD :: Ord i => (a -> a -> a) -> a -> [(i, a)] -> [(i, a)] -> [(i, a)] unionWithD = unionWith0 (comparing Down)
187
unionWithD :: Ord i => (a -> a -> a) -> a -> [(i, a)] -> [(i, a)] -> [(i, a)] unionWithD = unionWith0 (comparing Down)
123
unionWithD = unionWith0 (comparing Down)
40
true
true
0
13
41
88
47
41
null
null
zenhack/haskell-capnp
cmd/capnpc-haskell/Trans/NewToHaskell.hs
mit
-- | Modules imported by generated modules that use rpc. We separate these out to -- avoid a circular import when generating code for rpc.capnp -- which does not -- contain interfaces, so does not need to import the rpc system -- but which -- must be imported *by* the rpc system. rpcImports :: [Hs.Import] rpcImports = ...
410
rpcImports :: [Hs.Import] rpcImports = [ Hs.ImportAs { importAs = "GH", parts = ["Capnp", "GenHelpers", "New", "Rpc"] } ]
129
rpcImports = [ Hs.ImportAs { importAs = "GH", parts = ["Capnp", "GenHelpers", "New", "Rpc"] } ]
103
true
true
0
8
78
51
33
18
null
null
apyrgio/ganeti
src/Ganeti/HTools/Program/Hbal.hs
bsd-2-clause
-- | Options list and functions. options :: IO [OptType] options = do luxi <- oLuxiSocket return [ oPrintNodes , oPrintInsts , oPrintCommands , oDataFile , oEvacMode , oRestrictedMigrate , oRapiMaster , luxi , oIAllocSrc , oExecJobs , oGroup , oMaxSolLength , oVer...
696
options :: IO [OptType] options = do luxi <- oLuxiSocket return [ oPrintNodes , oPrintInsts , oPrintCommands , oDataFile , oEvacMode , oRestrictedMigrate , oRapiMaster , luxi , oIAllocSrc , oExecJobs , oGroup , oMaxSolLength , oVerbose , oQuiet , oOfflineN...
663
options = do luxi <- oLuxiSocket return [ oPrintNodes , oPrintInsts , oPrintCommands , oDataFile , oEvacMode , oRestrictedMigrate , oRapiMaster , luxi , oIAllocSrc , oExecJobs , oGroup , oMaxSolLength , oVerbose , oQuiet , oOfflineNode , oMinScore ...
639
true
true
0
9
229
134
81
53
null
null
kowey/GenI
etc/DeriveGeni.hs
gpl-2.0
main = do putStrLn "module NLP.GenI.BtypesBinary where" putStrLn "" putStrLn "import Data.Binary" putStrLn "import NLP.GenI.Btypes" putStrLn "" putStrLn "-- auto-generated by the Data.Binary BinaryDerive tool" putDerive (undefined :: Ptype) putDerive (undefined :: GeniVal) putDerive (un...
452
main = do putStrLn "module NLP.GenI.BtypesBinary where" putStrLn "" putStrLn "import Data.Binary" putStrLn "import NLP.GenI.Btypes" putStrLn "" putStrLn "-- auto-generated by the Data.Binary BinaryDerive tool" putDerive (undefined :: Ptype) putDerive (undefined :: GeniVal) putDerive (un...
452
main = do putStrLn "module NLP.GenI.BtypesBinary where" putStrLn "" putStrLn "import Data.Binary" putStrLn "import NLP.GenI.Btypes" putStrLn "" putStrLn "-- auto-generated by the Data.Binary BinaryDerive tool" putDerive (undefined :: Ptype) putDerive (undefined :: GeniVal) putDerive (un...
452
false
false
1
10
94
121
52
69
null
null
rahulmutt/ghcvm
compiler/Eta/Main/SysTools.hs
bsd-3-clause
builderMainLoop :: DynFlags -> (String -> String) -> FilePath -> [String] -> Maybe [(String, String)] -> IO ExitCode builderMainLoop dflags filter_fn pgm real_args mb_env = do chan <- newChan (hStdIn, hStdOut, hStdErr, hProcess) <- runInteractiveProcess pgm real_args Nothing mb_env ...
2,070
builderMainLoop :: DynFlags -> (String -> String) -> FilePath -> [String] -> Maybe [(String, String)] -> IO ExitCode builderMainLoop dflags filter_fn pgm real_args mb_env = do chan <- newChan (hStdIn, hStdOut, hStdErr, hProcess) <- runInteractiveProcess pgm real_args Nothing mb_env ...
2,070
builderMainLoop dflags filter_fn pgm real_args mb_env = do chan <- newChan (hStdIn, hStdOut, hStdErr, hProcess) <- runInteractiveProcess pgm real_args Nothing mb_env -- and run a loop piping the output from the compiler to the log_action in DynFlags hSetBuffering hStdOut LineBuffering hSetBuffering hStdErr L...
1,921
false
true
0
20
643
496
237
259
null
null
diogob/spyglass
src/Pasta.hs
bsd-3-clause
-- | Identifier builder, takes two names and builds a qualified identifier (e.g. "information_schema"."tables") (//) :: Name -> Name -> Identifier (//) = Identifier
164
(//) :: Name -> Name -> Identifier (//) = Identifier
52
(//) = Identifier
17
true
true
0
8
23
31
16
15
null
null
yangjueji/hblas
src/Numerical/HBLAS/BLAS/Internal/Level3.hs
bsd-3-clause
her2kAbstraction :: (SM.Storable el, PrimMonad m) => String -> Her2kFunFFI scale el -> Her2kFunFFI scale el -> (el -> (Ptr el -> m ()) -> m ()) -> forall orient . Her2kFun scale el orient (PrimState m) m her2kAbstraction her2kName her2kSafeFFI her2kUnsafeFFI constHandler = her2k where ...
2,700
her2kAbstraction :: (SM.Storable el, PrimMonad m) => String -> Her2kFunFFI scale el -> Her2kFunFFI scale el -> (el -> (Ptr el -> m ()) -> m ()) -> forall orient . Her2kFun scale el orient (PrimState m) m her2kAbstraction her2kName her2kSafeFFI her2kUnsafeFFI constHandler = her2k where ...
2,700
her2kAbstraction her2kName her2kSafeFFI her2kUnsafeFFI constHandler = her2k where isBadHer2kBothSide :: (Ord a, Num a) => a -> a -> a -> a -> a -> a -> Bool isBadHer2kBothSide ax ay bx by cx cy = (minimum [ax, ay, bx, by, cx, cy] <= 0) || not (cx == cy && ax == bx && ay == by) isBadHer2k :: (Ord a, Num a...
2,464
false
true
0
21
1,027
848
428
420
null
null
tjakway/ghcjvm
compiler/main/GhcMonad.hs
bsd-3-clause
defaultWarnErrLogger :: WarnErrLogger defaultWarnErrLogger Nothing = return ()
79
defaultWarnErrLogger :: WarnErrLogger defaultWarnErrLogger Nothing = return ()
79
defaultWarnErrLogger Nothing = return ()
41
false
true
0
6
8
19
9
10
null
null
Fornost461/drafts-and-stuff
Haskell/personal_libs/Math/ExactFloat.hs
cc0-1.0
base :: Num a => a base = 10
28
base :: Num a => a base = 10
28
base = 10
9
false
true
0
6
8
18
9
9
null
null
Javran/Project-Euler
src/ProjectEuler/Problem87.hs
mit
searchSpace :: [Int] searchSpace = do pFt <- takeWhile (<= limit) primesP4 pCb <- takeWhile (<= limit - pFt) primesP3 let tmp = pFt + pCb pSq <- takeWhile (<= limit - tmp) primesP2 pure (pSq + tmp) where limit = 50000000
246
searchSpace :: [Int] searchSpace = do pFt <- takeWhile (<= limit) primesP4 pCb <- takeWhile (<= limit - pFt) primesP3 let tmp = pFt + pCb pSq <- takeWhile (<= limit - tmp) primesP2 pure (pSq + tmp) where limit = 50000000
246
searchSpace = do pFt <- takeWhile (<= limit) primesP4 pCb <- takeWhile (<= limit - pFt) primesP3 let tmp = pFt + pCb pSq <- takeWhile (<= limit - tmp) primesP2 pure (pSq + tmp) where limit = 50000000
225
false
true
0
10
67
104
52
52
null
null
aelve/part
src/Part.hs
bsd-3-clause
_parserResult :: ASetter (Parser a) (Parser b) (XY, Result a) (XY, Result b) _parserResult = _Parser.mapped
107
_parserResult :: ASetter (Parser a) (Parser b) (XY, Result a) (XY, Result b) _parserResult = _Parser.mapped
107
_parserResult = _Parser.mapped
30
false
true
0
7
15
52
27
25
null
null
sdiehl/ghc
testsuite/tests/dependent/should_fail/BadTelescope5.hs
bsd-3-clause
bar :: forall a k (b :: k) (c :: Proxy b) (d :: Proxy a). Proxy c -> SameKind b d bar = undefined
97
bar :: forall a k (b :: k) (c :: Proxy b) (d :: Proxy a). Proxy c -> SameKind b d bar = undefined
97
bar = undefined
15
false
true
0
8
24
56
32
24
null
null
UBMLtonGroup/timberc
src/Termred.hs
bsd-3-clause
value (ESel e _) = value e
41
value (ESel e _) = value e
41
value (ESel e _) = value e
41
false
false
0
6
21
21
9
12
null
null
TomMD/irc-core
driver/Main.hs
bsd-3-clause
------------------------------------------------------------------------ -- Primary UI rendering ------------------------------------------------------------------------ picForState :: UTCTime -> ClientState -> (Int,Picture) picForState now st = (scroll', pic) where conn = view (clientServer0 . ccConnection) st ...
2,601
picForState :: UTCTime -> ClientState -> (Int,Picture) picForState now st = (scroll', pic) where conn = view (clientServer0 . ccConnection) st pic = Picture { picCursor = Cursor (min (view clientWidth st - 1) (view (clientEditBox. Edit.pos) st+1)) (view ...
2,430
picForState now st = (scroll', pic) where conn = view (clientServer0 . ccConnection) st pic = Picture { picCursor = Cursor (min (view clientWidth st - 1) (view (clientEditBox. Edit.pos) st+1)) (view clientHeight st - 1) , picLayers = [ transl...
2,375
true
true
5
15
740
641
316
325
null
null
mike-burns/trajectory
Trajectory/Private/Config.hs
bsd-3-clause
getConfigFileName = do getEnv "TRAJECTORY_CONFIG_FILE" `catch` (const (getEnv "HOME" >>= return . withHomeDir)) `catch` (const (getEnv "USER" >>= return . withUserName)) `catch` (const (return "/.trajectory")) where withHomeDir homeDir = homeDir ++ "/.trajectory" withUserName userName = ...
353
getConfigFileName = do getEnv "TRAJECTORY_CONFIG_FILE" `catch` (const (getEnv "HOME" >>= return . withHomeDir)) `catch` (const (getEnv "USER" >>= return . withUserName)) `catch` (const (return "/.trajectory")) where withHomeDir homeDir = homeDir ++ "/.trajectory" withUserName userName = ...
353
getConfigFileName = do getEnv "TRAJECTORY_CONFIG_FILE" `catch` (const (getEnv "HOME" >>= return . withHomeDir)) `catch` (const (getEnv "USER" >>= return . withUserName)) `catch` (const (return "/.trajectory")) where withHomeDir homeDir = homeDir ++ "/.trajectory" withUserName userName = ...
353
false
false
1
15
67
114
58
56
null
null
UBMLtonGroup/timberc
src/Common.hs
bsd-3-clause
encodedMsgs = [circularSubMsg, ambigInstMsg, ambigSubMsg]
77
encodedMsgs = [circularSubMsg, ambigInstMsg, ambigSubMsg]
77
encodedMsgs = [circularSubMsg, ambigInstMsg, ambigSubMsg]
77
false
false
0
5
24
15
9
6
null
null
neobrain/aeson
Data/Aeson.hs
bsd-3-clause
-- | Efficiently deserialize a JSON value from a lazy 'L.ByteString'. -- If this fails due to incomplete or invalid input, 'Nothing' is -- returned. -- -- The input must consist solely of a JSON document, with no trailing -- data except for whitespace. -- -- This function parses and performs conversion immediately. Se...
435
decode' :: (FromJSON a) => L.ByteString -> Maybe a decode' = decodeWith jsonEOF' fromJSON
89
decode' = decodeWith jsonEOF' fromJSON
38
true
true
0
7
72
43
26
17
null
null
stephane-rolland/aastraal
aastraal-client-brick/src/Task.hs
gpl-3.0
mkDefaultTask :: Task mkDefaultTask = Task "" "" "" "" "" ToDo 100 Obvious 0 1 30
81
mkDefaultTask :: Task mkDefaultTask = Task "" "" "" "" "" ToDo 100 Obvious 0 1 30
81
mkDefaultTask = Task "" "" "" "" "" ToDo 100 Obvious 0 1 30
59
false
true
0
6
16
40
18
22
null
null
ekarayel/HTF
tests/TestHTF.hs
lgpl-2.1
test_assertEqual_FAIL = assertEqual 1 2
39
test_assertEqual_FAIL = assertEqual 1 2
39
test_assertEqual_FAIL = assertEqual 1 2
39
false
false
0
5
4
11
5
6
null
null
green-haskell/ghc
libraries/base/GHC/List.hs
bsd-3-clause
-------------------------------------------------------------- -- Error code -------------------------------------------------------------- -- Common up near identical calls to `error' to reduce the number -- constant strings created when compiled: errorEmptyList :: String -> a errorEmptyList fun = error (prel_list...
350
errorEmptyList :: String -> a errorEmptyList fun = error (prel_list_str ++ fun ++ ": empty list")
99
errorEmptyList fun = error (prel_list_str ++ fun ++ ": empty list")
69
true
true
0
8
42
43
22
21
null
null
robdockins/edison
edison-core/src/Data/Edison/Coll/EnumSet.hs
mit
-- | /O(1)/. Delete an element from a set. delete :: (Eq a, Enum a) => a -> Set a -> Set a delete x (Set w) = Set $ clearBit w $ fromEnum x
143
delete :: (Eq a, Enum a) => a -> Set a -> Set a delete x (Set w) = Set $ clearBit w $ fromEnum x
100
delete x (Set w) = Set $ clearBit w $ fromEnum x
52
true
true
0
8
38
66
32
34
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/ExtensionPredicates.hs
bsd-3-clause
-- | Is the <https://www.opengl.org/registry/specs/SGIX/vertex_preclip.txt SGIX_vertex_preclip> extension supported? glGetSGIXVertexPreclip :: MonadIO m => m Bool glGetSGIXVertexPreclip = getExtensions >>= (return . member "GL_SGIX_vertex_preclip")
248
glGetSGIXVertexPreclip :: MonadIO m => m Bool glGetSGIXVertexPreclip = getExtensions >>= (return . member "GL_SGIX_vertex_preclip")
131
glGetSGIXVertexPreclip = getExtensions >>= (return . member "GL_SGIX_vertex_preclip")
85
true
true
0
8
22
36
18
18
null
null
romanb/amazonka
amazonka-ec2/gen/Network/AWS/EC2/DeleteRoute.hs
mpl-2.0
-- | 'DeleteRouteResponse' constructor. deleteRouteResponse :: DeleteRouteResponse deleteRouteResponse = DeleteRouteResponse
124
deleteRouteResponse :: DeleteRouteResponse deleteRouteResponse = DeleteRouteResponse
84
deleteRouteResponse = DeleteRouteResponse
41
true
true
0
4
9
12
7
5
null
null
nfjinjing/mps
src/MPS/Math/PolyaCounting.hs
bsd-3-clause
cubeE = fromCycles [[1,3],[2,4],[5,6]]
38
cubeE = fromCycles [[1,3],[2,4],[5,6]]
38
cubeE = fromCycles [[1,3],[2,4],[5,6]]
38
false
false
1
6
3
39
22
17
null
null
weihu816/Adagio
src/Worker.hs
bsd-3-clause
dbDecide :: Server -> ProcessId -> TxnId -> KVDecision -> STM () dbDecide server@Server{..} pid txnId decision = do records <- readTVar txns case Map.lookup txnId records of Just (TXN_UNDECIDED, dirty, options) -> do if decision == DecisionCommit then do foldl (\b (key, val, ver) -> b >> do ...
868
dbDecide :: Server -> ProcessId -> TxnId -> KVDecision -> STM () dbDecide server@Server{..} pid txnId decision = do records <- readTVar txns case Map.lookup txnId records of Just (TXN_UNDECIDED, dirty, options) -> do if decision == DecisionCommit then do foldl (\b (key, val, ver) -> b >> do ...
868
dbDecide server@Server{..} pid txnId decision = do records <- readTVar txns case Map.lookup txnId records of Just (TXN_UNDECIDED, dirty, options) -> do if decision == DecisionCommit then do foldl (\b (key, val, ver) -> b >> do db <- readTVar mmdb case Map.lookup key db of ...
803
false
true
0
28
245
343
171
172
null
null
pparkkin/eta
compiler/ETA/CodeGen/ArgRep.hs
bsd-3-clause
contextStore :: ArgRep -> Code -> Int -> Code contextStore argRep storeCode n = loadContext <> iconst jint (fromIntegral n) <> storeCode <> storeMethod where storeMethod = case argRep of P -> storeR N -> storeI L -> storeL F -> storeF D -> storeD ...
370
contextStore :: ArgRep -> Code -> Int -> Code contextStore argRep storeCode n = loadContext <> iconst jint (fromIntegral n) <> storeCode <> storeMethod where storeMethod = case argRep of P -> storeR N -> storeI L -> storeL F -> storeF D -> storeD ...
370
contextStore argRep storeCode n = loadContext <> iconst jint (fromIntegral n) <> storeCode <> storeMethod where storeMethod = case argRep of P -> storeR N -> storeI L -> storeL F -> storeF D -> storeD O -> storeO _ -> error "contextStore...
324
false
true
7
9
135
122
55
67
null
null
kaol/snaplet-customauth
Snap/Snaplet/CustomAuth/OAuth2/Internal.hs
bsd-3-clause
oauth2Success :: IAuthBackend u i e b => OAuth2Settings u i e b -> Provider -> Text -> Handler b (AuthManager u e b) () oauth2Success s provider token = do key <- getActionKey $ providerName provider store <- gets stateStore' name <- getStateName act <- withTop' store $ runMaybeT $ do act <- Maybe...
709
oauth2Success :: IAuthBackend u i e b => OAuth2Settings u i e b -> Provider -> Text -> Handler b (AuthManager u e b) () oauth2Success s provider token = do key <- getActionKey $ providerName provider store <- gets stateStore' name <- getStateName act <- withTop' store $ runMaybeT $ do act <- Maybe...
709
oauth2Success s provider token = do key <- getActionKey $ providerName provider store <- gets stateStore' name <- getStateName act <- withTop' store $ runMaybeT $ do act <- MaybeT $ getFromSession key lift $ deleteFromSession key >> commitSession return act withTop' store $ do setInSession (na...
579
false
true
0
14
156
240
108
132
null
null
stu-smith/Brandy
src/Plugins.hs
mit
withRoutesHandler :: BrandyScottyM () -> PluggedIn withRoutesHandler rh = PluggedIn [] [rh]
95
withRoutesHandler :: BrandyScottyM () -> PluggedIn withRoutesHandler rh = PluggedIn [] [rh]
95
withRoutesHandler rh = PluggedIn [] [rh]
44
false
true
0
7
15
33
16
17
null
null
cbaatz/hamu8080
src/Hamu8080/Compute.hs
mit
doOp 0xC5 = getRegPair BC >>= pushStack
39
doOp 0xC5 = getRegPair BC >>= pushStack
39
doOp 0xC5 = getRegPair BC >>= pushStack
39
false
false
0
6
6
16
7
9
null
null
sapek/pandoc
pandoc.hs
gpl-2.0
defaultReaderName :: String -> [FilePath] -> String defaultReaderName fallback [] = fallback
92
defaultReaderName :: String -> [FilePath] -> String defaultReaderName fallback [] = fallback
92
defaultReaderName fallback [] = fallback
40
false
true
0
9
11
35
16
19
null
null
OS2World/DEV-UTIL-HUGS
oldlib/AssocDefaults.hs
bsd-3-clause
insertSeqWithKeyUsingInsertWithKey :: (FiniteMapX m k,S.Sequence seq) => (k -> a -> a -> a) -> seq (k,a) -> m k a -> m k a insertSeqWithKeyUsingInsertWithKey f kvs m = S.foldr (uncurry (insertWithKey f)) m kvs
224
insertSeqWithKeyUsingInsertWithKey :: (FiniteMapX m k,S.Sequence seq) => (k -> a -> a -> a) -> seq (k,a) -> m k a -> m k a insertSeqWithKeyUsingInsertWithKey f kvs m = S.foldr (uncurry (insertWithKey f)) m kvs
224
insertSeqWithKeyUsingInsertWithKey f kvs m = S.foldr (uncurry (insertWithKey f)) m kvs
90
false
true
0
11
50
109
53
56
null
null
AlexeyRaga/eta
compiler/ETA/Prelude/PrelNames.hs
bsd-3-clause
word32PrimTyConKey = mkPreludeTyConUnique 62
65
word32PrimTyConKey = mkPreludeTyConUnique 62
65
word32PrimTyConKey = mkPreludeTyConUnique 62
65
false
false
0
5
24
9
4
5
null
null
alexander-at-github/eta
compiler/ETA/Prelude/PrimOp.hs
bsd-3-clause
primOpOutOfLine ForkOnOp = True
31
primOpOutOfLine ForkOnOp = True
31
primOpOutOfLine ForkOnOp = True
31
false
false
0
5
3
9
4
5
null
null
utsav2601/cmpe295A
tools/flounder/BackendCommon.hs
mit
default_error_handler_fn_def :: String -> String -> C.Unit default_error_handler_fn_def drv ifn = C.FunctionDef C.Static C.Void (default_error_handler_fn_name drv ifn) params [ C.Ex $ C.Call "DEBUG_ERR" [errvar, C.StringConstant $ "asynchronous error in Flounder-generated " ++ ...
624
default_error_handler_fn_def :: String -> String -> C.Unit default_error_handler_fn_def drv ifn = C.FunctionDef C.Static C.Void (default_error_handler_fn_name drv ifn) params [ C.Ex $ C.Call "DEBUG_ERR" [errvar, C.StringConstant $ "asynchronous error in Flounder-generated " ++ ...
624
default_error_handler_fn_def drv ifn = C.FunctionDef C.Static C.Void (default_error_handler_fn_name drv ifn) params [ C.Ex $ C.Call "DEBUG_ERR" [errvar, C.StringConstant $ "asynchronous error in Flounder-generated " ++ ifn ++ " " ++ drv ++ " binding (default handler)" ]...
565
false
true
1
15
171
175
87
88
null
null
siddhanathan/ghc
compiler/hsSyn/HsExpr.hs
bsd-3-clause
isAtomicHsExpr :: HsExpr id -> Bool -- True of a single token isAtomicHsExpr (HsVar {}) = True
101
isAtomicHsExpr :: HsExpr id -> Bool isAtomicHsExpr (HsVar {}) = True
75
isAtomicHsExpr (HsVar {}) = True
39
true
true
0
7
23
29
15
14
null
null
alephnil/h99
21.hs
apache-2.0
insertAt :: a -> [a] -> Int -> [a] insertAt x ys 1 = x:ys
57
insertAt :: a -> [a] -> Int -> [a] insertAt x ys 1 = x:ys
57
insertAt x ys 1 = x:ys
22
false
true
0
8
14
40
21
19
null
null
sgillespie/ghc
compiler/typecheck/TcGenDeriv.hs
bsd-3-clause
-- New, auxiliary instances {- ************************************************************************ * * Class deriving diagnostics * * **************************...
2,039
hasBuiltinDeriving :: Class -> Maybe (SrcSpan -> TyCon -> TcM (LHsBinds RdrName, BagDerivStuff)) hasBuiltinDeriving clas = assocMaybe gen_list (getUnique clas) where gen_list :: [(Unique, SrcSpan -> TyCon -> TcM (LHsBinds RdrName, BagD...
1,277
hasBuiltinDeriving clas = assocMaybe gen_list (getUnique clas) where gen_list :: [(Unique, SrcSpan -> TyCon -> TcM (LHsBinds RdrName, BagDerivStuff))] gen_list = [ (eqClassKey, simple gen_Eq_binds) , (ordClassKey, simple gen_Ord_binds) , (enumClassKey, s...
1,103
true
true
0
12
703
304
166
138
null
null
spechub/Hets
Comorphisms/Hs2HOLCFaux.hs
gpl-2.0
tA :: Continuity -> String -> IsaType -> IsaType tA c k h = let w = TFree "a" (IsaClass k : sortT c) in curryFunT c [h] w
124
tA :: Continuity -> String -> IsaType -> IsaType tA c k h = let w = TFree "a" (IsaClass k : sortT c) in curryFunT c [h] w
124
tA c k h = let w = TFree "a" (IsaClass k : sortT c) in curryFunT c [h] w
75
false
true
0
12
31
77
34
43
null
null
diku-kmc/repg
src/KMC/Kleenex/Syntax.hs
mit
eraseInfoTerm (SuppressOutput t) = SuppressOutput (eraseInfoTerm t)
67
eraseInfoTerm (SuppressOutput t) = SuppressOutput (eraseInfoTerm t)
67
eraseInfoTerm (SuppressOutput t) = SuppressOutput (eraseInfoTerm t)
67
false
false
0
7
6
25
11
14
null
null
osa1/Idris-dev
src/Idris/IBC.hs
bsd-3-clause
writeArchive :: FilePath -> IBCFile -> Idris () writeArchive fp i = do let a = L.foldl (\x y -> addEntryToArchive y x) emptyArchive (entries i) runIO $ B.writeFile fp (fromArchive a)
205
writeArchive :: FilePath -> IBCFile -> Idris () writeArchive fp i = do let a = L.foldl (\x y -> addEntryToArchive y x) emptyArchive (entries i) runIO $ B.writeFile fp (fromArchive a)
205
writeArchive fp i = do let a = L.foldl (\x y -> addEntryToArchive y x) emptyArchive (entries i) runIO $ B.writeFile fp (fromArchive a)
157
false
true
0
14
54
93
43
50
null
null
LambdaHack/LambdaHack
engine-src/Game/LambdaHack/Common/State.hs
bsd-3-clause
sactorD :: State -> ActorDict sactorD = _sactorD
48
sactorD :: State -> ActorDict sactorD = _sactorD
48
sactorD = _sactorD
18
false
true
0
7
7
22
9
13
null
null
jml/graphql-api
src/GraphQL/Internal/Resolver.hs
bsd-3-clause
resolveObject :: forall m fields typeName interfaces. ( OperationResolverConstraint m fields typeName interfaces ) => Handler m (API.Object typeName interfaces fields) -> SelectionSetByType Value -> m (Result GValue.Object) resolveObject mHandler selectionSet = case getSelectionSet of Left err -> return...
1,644
resolveObject :: forall m fields typeName interfaces. ( OperationResolverConstraint m fields typeName interfaces ) => Handler m (API.Object typeName interfaces fields) -> SelectionSetByType Value -> m (Result GValue.Object) resolveObject mHandler selectionSet = case getSelectionSet of Left err -> return...
1,644
resolveObject mHandler selectionSet = case getSelectionSet of Left err -> return (Result [err] (GValue.Object' OrderedMap.empty)) Right ss -> do -- Run the handler so the field resolvers have access to the object. -- This (and other places, including field resolvers) is where user -- code ca...
1,410
false
true
1
16
368
305
148
157
null
null
tolysz/dsp
DSP/Filter/Analog/Transform.hs
gpl-2.0
propSubstituteAlt :: ([Double],[Double]) -> ([Double],[Double]) -> Bool propSubstituteAlt q p = substitute q p == substituteAlt q p
135
propSubstituteAlt :: ([Double],[Double]) -> ([Double],[Double]) -> Bool propSubstituteAlt q p = substitute q p == substituteAlt q p
135
propSubstituteAlt q p = substitute q p == substituteAlt q p
63
false
true
0
9
21
67
35
32
null
null
rethab/combinatorrent
src/Process/PieceMgr.hs
bsd-2-clause
storeBlock :: PieceNum -> Block -> B.ByteString -> Process CF ST () storeBlock pn blk d = {-# SCC "storeBlock" #-} do writeFS dld <- gets downloading let !ndl = S.delete (pn, blk) dld s <- get put $! s { downloading = ndl } endgameBroadcast pn blk done <- updateProgress pn blk wh...
494
storeBlock :: PieceNum -> Block -> B.ByteString -> Process CF ST () storeBlock pn blk d = {-# SCC "storeBlock" #-} do writeFS dld <- gets downloading let !ndl = S.delete (pn, blk) dld s <- get put $! s { downloading = ndl } endgameBroadcast pn blk done <- updateProgress pn blk wh...
494
storeBlock pn blk d = {-# SCC "storeBlock" #-} do writeFS dld <- gets downloading let !ndl = S.delete (pn, blk) dld s <- get put $! s { downloading = ndl } endgameBroadcast pn blk done <- updateProgress pn blk when done (pieceDone pn) where writeFS = {-# SCC "writeFS" #-} do ...
426
false
true
0
11
153
179
82
97
null
null
hjwylde/omnifmt
src/Omnifmt/Config.hs
bsd-3-clause
mptyProgram :: Program emptyProgram = Program "" [] "false"
60
emptyProgram :: Program emptyProgram = Program "" [] "false"
60
emptyProgram = Program "" [] "false"
36
false
true
0
6
9
20
10
10
null
null
AlephAlpha/Samau
src/Samau/Stack.hs
gpl-2.0
initStack :: SmStack initStack = SmNil :-: initStack
52
initStack :: SmStack initStack = SmNil :-: initStack
52
initStack = SmNil :-: initStack
31
false
true
4
6
7
26
11
15
null
null
ivan-m/quiver-groups
test/PropTests.hs
mit
spIdentity :: SQ a b Identity c -> c spIdentity p = runIdentity (sprun p)
73
spIdentity :: SQ a b Identity c -> c spIdentity p = runIdentity (sprun p)
73
spIdentity p = runIdentity (sprun p)
36
false
true
0
7
14
36
17
19
null
null
sukwon0709/mysql
tests/ParserTest.hs
bsd-3-clause
ts28 :: TestTree ts28 = testCase "Insert2" $ (parse parseInsert "" (Lex.alexScanTokens $ "INSERT INTO Students (StudentNr, StudentName) VALUES (1, 'abc')")) @?= Right (Syn.Insert { Syn.insertTblName = Syn.SimpleIdent "Students" , Syn.insertColNames = Just [ Syn.SimpleIdent "StudentNr", Syn.Si...
722
ts28 :: TestTree ts28 = testCase "Insert2" $ (parse parseInsert "" (Lex.alexScanTokens $ "INSERT INTO Students (StudentNr, StudentName) VALUES (1, 'abc')")) @?= Right (Syn.Insert { Syn.insertTblName = Syn.SimpleIdent "Students" , Syn.insertColNames = Just [ Syn.SimpleIdent "StudentNr", Syn.Si...
722
ts28 = testCase "Insert2" $ (parse parseInsert "" (Lex.alexScanTokens $ "INSERT INTO Students (StudentNr, StudentName) VALUES (1, 'abc')")) @?= Right (Syn.Insert { Syn.insertTblName = Syn.SimpleIdent "Students" , Syn.insertColNames = Just [ Syn.SimpleIdent "StudentNr", Syn.SimpleIdent "Studen...
705
false
true
2
21
245
211
107
104
null
null
hguenther/smtlib2
Language/SMTLib2/Internals/Type.hs
gpl-3.0
-- | A representation of a user-defined datatype with parameters. dt' :: (IsDatatype dt,List.Length par ~ Parameters dt) => Datatype dt -> List Repr par -> Repr (DataType dt par) dt' = DataRepr
193
dt' :: (IsDatatype dt,List.Length par ~ Parameters dt) => Datatype dt -> List Repr par -> Repr (DataType dt par) dt' = DataRepr
127
dt' = DataRepr
14
true
true
0
11
32
70
32
38
null
null