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
scott-fleischman/greek-grammar
haskell/greek-grammar/src/Data/Unicode/DecomposeChar.hs
mit
decomposeChar '\xF9AC' = "\x601C"
33
decomposeChar '\xF9AC' = "\x601C"
33
decomposeChar '\xF9AC' = "\x601C"
33
false
false
0
4
3
10
4
6
null
null
adbrowne/dynamodb-eventstore
dynamodb-eventstore/src/DynamoDbEventStore/Storage/StreamItem.hs
mit
streamEntryToValues :: StreamEntry -> DynamoValues streamEntryToValues StreamEntry{..} = let bodyValue = set avB (Just ((Serialize.encode . NonEmptyWrapper) streamEntryEventEntries)) attributeValue eventCountValue = set avN (Just ((showt . length) streamEntryEventEntries)) attributeValue needsPag...
536
streamEntryToValues :: StreamEntry -> DynamoValues streamEntryToValues StreamEntry{..} = let bodyValue = set avB (Just ((Serialize.encode . NonEmptyWrapper) streamEntryEventEntries)) attributeValue eventCountValue = set avN (Just ((showt . length) streamEntryEventEntries)) attributeValue needsPag...
536
streamEntryToValues StreamEntry{..} = let bodyValue = set avB (Just ((Serialize.encode . NonEmptyWrapper) streamEntryEventEntries)) attributeValue eventCountValue = set avN (Just ((showt . length) streamEntryEventEntries)) attributeValue needsPagingValue = set avS (Just "True") attributeValue ...
485
false
true
0
16
88
152
72
80
null
null
forste/haReFork
tools/base/tests/HaskellLibraries/Array.hs
bsd-3-clause
indices :: (Ix a) => Array a b -> [a] indices = range . bounds
91
indices :: (Ix a) => Array a b -> [a] indices = range . bounds
91
indices = range . bounds
39
false
true
0
7
43
36
19
17
null
null
fmapfmapfmap/amazonka
amazonka-swf/gen/Network/AWS/SWF/Types/Product.hs
mpl-2.0
-- | The list of tags associated with this workflow execution. An execution -- can have up to 5 tags. weseaTagList :: Lens' WorkflowExecutionStartedEventAttributes [Text] weseaTagList = lens _weseaTagList (\ s a -> s{_weseaTagList = a}) . _Default . _Coerce
257
weseaTagList :: Lens' WorkflowExecutionStartedEventAttributes [Text] weseaTagList = lens _weseaTagList (\ s a -> s{_weseaTagList = a}) . _Default . _Coerce
155
weseaTagList = lens _weseaTagList (\ s a -> s{_weseaTagList = a}) . _Default . _Coerce
86
true
true
0
11
39
52
29
23
null
null
Fuuzetsu/stack
src/Stack/Docker.hs
bsd-3-clause
inspect :: (MonadIO m,MonadLogger m,MonadBaseControl IO m,MonadCatch m) => EnvOverride -> String -> m (Maybe Inspect) inspect envOverride image = do results <- inspects envOverride [image] case Map.toList results of [] -> return Nothing [(_,i)] -> return (Just i) _ -> throwM (Invalid...
424
inspect :: (MonadIO m,MonadLogger m,MonadBaseControl IO m,MonadCatch m) => EnvOverride -> String -> m (Maybe Inspect) inspect envOverride image = do results <- inspects envOverride [image] case Map.toList results of [] -> return Nothing [(_,i)] -> return (Just i) _ -> throwM (Invalid...
424
inspect envOverride image = do results <- inspects envOverride [image] case Map.toList results of [] -> return Nothing [(_,i)] -> return (Just i) _ -> throwM (InvalidInspectOutputException "expect a single result") -- | Inspect multiple Docker images and/or containers.
298
false
true
0
13
91
145
70
75
null
null
thsutton/mf
src/Main.hs
bsd-3-clause
graph :: Gr String Int graph = insEdge (node, sink, 1) . insEdge (source, node, 3) . insEdge (source, sink, 10) $ insNodes [(source, "source"), (sink, "sink"), (node, "a")] empty
180
graph :: Gr String Int graph = insEdge (node, sink, 1) . insEdge (source, node, 3) . insEdge (source, sink, 10) $ insNodes [(source, "source"), (sink, "sink"), (node, "a")] empty
180
graph = insEdge (node, sink, 1) . insEdge (source, node, 3) . insEdge (source, sink, 10) $ insNodes [(source, "source"), (sink, "sink"), (node, "a")] empty
157
false
true
0
9
31
96
55
41
null
null
mreid/papersite
src/exec/scrape-journal.hs
mit
-- Substitute <em> and <i> tags for \emph{} and <tt> for \texttt{} -- and <sup> and <sub> for ^ and _, respectively substitute :: [Tag String] -> [Tag String] substitute = map subfn where subfn (TagOpen "em" _) = TagText "\\emph{" subfn (TagClose "em") = TagText "}" subfn (TagOpen "i" _) = TagTe...
704
substitute :: [Tag String] -> [Tag String] substitute = map subfn where subfn (TagOpen "em" _) = TagText "\\emph{" subfn (TagClose "em") = TagText "}" subfn (TagOpen "i" _) = TagText "\\emph{" subfn (TagClose "i") = TagText "}" subfn (TagOpen "tt" _) = TagText "\\texttt{" ...
588
substitute = map subfn where subfn (TagOpen "em" _) = TagText "\\emph{" subfn (TagClose "em") = TagText "}" subfn (TagOpen "i" _) = TagText "\\emph{" subfn (TagClose "i") = TagText "}" subfn (TagOpen "tt" _) = TagText "\\texttt{" subfn (TagOpen "sup" _) = TagText "^{"...
545
true
true
10
7
210
213
107
106
null
null
akc/gfscript
HOPS/GF.hs
bsd-3-clause
fracs :: Int -> [Expr3] fracs n = [ divide (ELit (numerator r)) (ELit (denominator r)) | r <- cwFracs n ]
105
fracs :: Int -> [Expr3] fracs n = [ divide (ELit (numerator r)) (ELit (denominator r)) | r <- cwFracs n ]
105
fracs n = [ divide (ELit (numerator r)) (ELit (denominator r)) | r <- cwFracs n ]
81
false
true
0
11
21
68
33
35
null
null
blacktaxi/inversion
src/Preview.hs
bsd-3-clause
volume :: Amplitude -> Signal -> Signal volume x s = (* x) <$> s
64
volume :: Amplitude -> Signal -> Signal volume x s = (* x) <$> s
64
volume x s = (* x) <$> s
24
false
true
0
6
14
32
17
15
null
null
fffej/HS-Poker
LookupPatternMatch.hs
bsd-3-clause
getValueFromProduct 2368333 = 2964
34
getValueFromProduct 2368333 = 2964
34
getValueFromProduct 2368333 = 2964
34
false
false
0
5
3
9
4
5
null
null
JacquesCarette/literate-scientific-software
code/drasil-gool/Test/PatternTest.hs
bsd-2-clause
progName, fsmName, offState, onState, noState, strat1, strat2, obs1Name, obs2Name, nName :: String progName = "PatternTest"
126
progName, fsmName, offState, onState, noState, strat1, strat2, obs1Name, obs2Name, nName :: String progName = "PatternTest"
126
progName = "PatternTest"
24
false
true
0
4
17
29
24
5
null
null
fmapfmapfmap/amazonka
amazonka-storagegateway/gen/Network/AWS/StorageGateway/DeleteGateway.hs
mpl-2.0
-- | Undocumented member. dgGatewayARN :: Lens' DeleteGateway Text dgGatewayARN = lens _dgGatewayARN (\ s a -> s{_dgGatewayARN = a})
132
dgGatewayARN :: Lens' DeleteGateway Text dgGatewayARN = lens _dgGatewayARN (\ s a -> s{_dgGatewayARN = a})
106
dgGatewayARN = lens _dgGatewayARN (\ s a -> s{_dgGatewayARN = a})
65
true
true
0
9
19
40
22
18
null
null
ghcjs/ghcjs
src/Compiler/JMacro/Combinators.hs
mit
appS :: Text -> [JExpr] -> JStat appS f xs = ApplStat (var f) xs
64
appS :: Text -> [JExpr] -> JStat appS f xs = ApplStat (var f) xs
64
appS f xs = ApplStat (var f) xs
31
false
true
0
7
14
42
20
22
null
null
GaloisInc/sk-dev-platform
libs/lviz/GUI.hs
bsd-3-clause
getFileChooserDialog :: MVar St -> IO FileChooserDialog getFileChooserDialog = liftM fileChooserDialog . getSt
110
getFileChooserDialog :: MVar St -> IO FileChooserDialog getFileChooserDialog = liftM fileChooserDialog . getSt
110
getFileChooserDialog = liftM fileChooserDialog . getSt
54
false
true
0
6
12
28
13
15
null
null
coolhacks/scripts-hacks
examples/shellcheck-master/ShellCheck/Analytics.hs
mit
prop_checkWrongArit2 = verify checkWrongArithmeticAssignment "n=2; i=n*2"
73
prop_checkWrongArit2 = verify checkWrongArithmeticAssignment "n=2; i=n*2"
73
prop_checkWrongArit2 = verify checkWrongArithmeticAssignment "n=2; i=n*2"
73
false
false
0
5
5
11
5
6
null
null
abakst/liquidhaskell
src/Language/Haskell/Liquid/Constraint/Monad.hs
bsd-3-clause
addWarning :: TError SpecType -> CG () -------------------------------------------------------------------------------- addWarning w = modify $ \s -> s { logErrors = w : logErrors s }
185
addWarning :: TError SpecType -> CG () addWarning w = modify $ \s -> s { logErrors = w : logErrors s }
104
addWarning w = modify $ \s -> s { logErrors = w : logErrors s }
63
true
true
0
10
25
51
26
25
null
null
khofosec/wormbot
IRC.hs
gpl-3.0
parseOrigin :: String -> Maybe Origin parseOrigin s | '!' `elem` s = Just $ break (=='!') s | otherwise = Nothing
121
parseOrigin :: String -> Maybe Origin parseOrigin s | '!' `elem` s = Just $ break (=='!') s | otherwise = Nothing
121
parseOrigin s | '!' `elem` s = Just $ break (=='!') s | otherwise = Nothing
83
false
true
1
8
29
58
28
30
null
null
JoeyEremondi/elm-type-effect
src/Type/Type.hs
bsd-3-clause
makeFreeNames :: Set.Set String -> [String] makeFreeNames usedNames = let makeName suffix = map (:suffix) ['a'..'z'] allNames = concatMap makeName ("" : "'" : "_" : map show [ (0 :: Int) .. ]) in filter (\name -> Set.notMember name usedNames) allNames
288
makeFreeNames :: Set.Set String -> [String] makeFreeNames usedNames = let makeName suffix = map (:suffix) ['a'..'z'] allNames = concatMap makeName ("" : "'" : "_" : map show [ (0 :: Int) .. ]) in filter (\name -> Set.notMember name usedNames) allNames
288
makeFreeNames usedNames = let makeName suffix = map (:suffix) ['a'..'z'] allNames = concatMap makeName ("" : "'" : "_" : map show [ (0 :: Int) .. ]) in filter (\name -> Set.notMember name usedNames) allNames
244
false
true
0
14
78
114
59
55
null
null
mfpi/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Core31/Tokens.hs
bsd-3-clause
gl_SCISSOR_TEST :: GLenum gl_SCISSOR_TEST = 0x0C11
50
gl_SCISSOR_TEST :: GLenum gl_SCISSOR_TEST = 0x0C11
50
gl_SCISSOR_TEST = 0x0C11
24
false
true
0
4
5
11
6
5
null
null
bkoropoff/Idris-dev
src/Idris/Core/TT.hs
bsd-3-clause
-- | Return a list of pairs of the names of the outermost 'Pi'-bound -- variables in the given term, together with their types. getArgTys :: TT n -> [(n, TT n)] getArgTys (Bind n (PVar _) sc) = getArgTys sc
206
getArgTys :: TT n -> [(n, TT n)] getArgTys (Bind n (PVar _) sc) = getArgTys sc
78
getArgTys (Bind n (PVar _) sc) = getArgTys sc
45
true
true
0
11
40
59
29
30
null
null
input-output-hk/pos-haskell-prototype
crypto/Pos/Crypto/Scrypt.hs
mit
genSalt :: MonadRandom m => m S.Salt genSalt = S.Salt <$> getRandomBytes 32
75
genSalt :: MonadRandom m => m S.Salt genSalt = S.Salt <$> getRandomBytes 32
75
genSalt = S.Salt <$> getRandomBytes 32
38
false
true
2
8
12
38
16
22
null
null
andreyk0/HSOpenSCAD
Graphics/OpenSCAD.hs
bsd-3-clause
-- And some misc. rendering utilities. rList n ss = n ++ "{\n" ++ concatMap render ss ++ "}"
93
rList n ss = n ++ "{\n" ++ concatMap render ss ++ "}"
54
rList n ss = n ++ "{\n" ++ concatMap render ss ++ "}"
54
true
false
0
7
19
29
14
15
null
null
haru2036/nagato
Text/Nagato/Train.hs
apache-2.0
trainClass :: (Ord a) => [a] -> Probs a trainClass doc = (freqsToProbs . countClass) doc 2
90
trainClass :: (Ord a) => [a] -> Probs a trainClass doc = (freqsToProbs . countClass) doc 2
90
trainClass doc = (freqsToProbs . countClass) doc 2
50
false
true
0
7
16
45
23
22
null
null
kosmoskatten/linx-app-benchmarks
src/BulkPairs.hs
mit
connectService :: Gateway -> String -> IO Pid connectService gw service = do _ <- hunt gw service $ NumericSignal HuntSig fst <$> receive gw (Sel [HuntSig])
160
connectService :: Gateway -> String -> IO Pid connectService gw service = do _ <- hunt gw service $ NumericSignal HuntSig fst <$> receive gw (Sel [HuntSig])
160
connectService gw service = do _ <- hunt gw service $ NumericSignal HuntSig fst <$> receive gw (Sel [HuntSig])
114
false
true
0
12
30
72
32
40
null
null
ony/hledger
hledger-lib/Hledger/Query.hs
gpl-3.0
parseQueryTerm _ (T.stripPrefix "cur:" -> Just s) = Left $ Sym (T.unpack s)
75
parseQueryTerm _ (T.stripPrefix "cur:" -> Just s) = Left $ Sym (T.unpack s)
75
parseQueryTerm _ (T.stripPrefix "cur:" -> Just s) = Left $ Sym (T.unpack s)
75
false
false
0
9
12
41
19
22
null
null
holzensp/ghc
compiler/cmm/PprC.hs
bsd-3-clause
machRepHintCType rep SignedHint = machRep_S_CType (typeWidth rep)
65
machRepHintCType rep SignedHint = machRep_S_CType (typeWidth rep)
65
machRepHintCType rep SignedHint = machRep_S_CType (typeWidth rep)
65
false
false
0
7
6
20
9
11
null
null
hguenther/gtl
lib/Language/GTL/LTL.hs
bsd-3-clause
showCond :: Show a => Map a Bool -> String showCond cond = concat $ List.intersperse "," [ (if pos then "" else "!")++show var | (var,pos) <- Map.toList cond ]
159
showCond :: Show a => Map a Bool -> String showCond cond = concat $ List.intersperse "," [ (if pos then "" else "!")++show var | (var,pos) <- Map.toList cond ]
159
showCond cond = concat $ List.intersperse "," [ (if pos then "" else "!")++show var | (var,pos) <- Map.toList cond ]
116
false
true
0
11
30
81
41
40
null
null
adamsmasher/EMA
MIPSConst.hs
gpl-3.0
sllvFunc = 0x04 :: Integer
29
sllvFunc = 0x04 :: Integer
29
sllvFunc = 0x04 :: Integer
29
false
false
0
4
7
9
5
4
null
null
DavidAlphaFox/ghc
libraries/Cabal/Cabal/Distribution/ParseUtils.hs
bsd-3-clause
trimTrailing = dropWhileEndLE isSpace
37
trimTrailing = dropWhileEndLE isSpace
37
trimTrailing = dropWhileEndLE isSpace
37
false
false
0
5
3
9
4
5
null
null
nishiuramakoto/logiku
test/TestImport.hs
gpl-3.0
wipeDB :: App -> IO () wipeDB app = runDBWithApp app $ do tables <- getTables sqlBackend <- ask let escapedTables = map (connEscapeName sqlBackend . DBName) tables query = "TRUNCATE TABLE " ++ intercalate ", " escapedTables rawExecute query []
257
wipeDB :: App -> IO () wipeDB app = runDBWithApp app $ do tables <- getTables sqlBackend <- ask let escapedTables = map (connEscapeName sqlBackend . DBName) tables query = "TRUNCATE TABLE " ++ intercalate ", " escapedTables rawExecute query []
257
wipeDB app = runDBWithApp app $ do tables <- getTables sqlBackend <- ask let escapedTables = map (connEscapeName sqlBackend . DBName) tables query = "TRUNCATE TABLE " ++ intercalate ", " escapedTables rawExecute query []
234
false
true
0
14
54
92
42
50
null
null
mndrix/is-online
is-online.hs
bsd-3-clause
index = okText "Try /ping"
26
index = okText "Try /ping"
26
index = okText "Try /ping"
26
false
false
0
5
4
9
4
5
null
null
wowofbob/calculus
Calculus/Proof/Linear/Focused/Focus.hs
mit
applyRightFocus :: (Int, LinSeq) -> Result applyRightFocus (uniq, ant :=> goal) = rightFocus (out goal) (uniq, ant)
115
applyRightFocus :: (Int, LinSeq) -> Result applyRightFocus (uniq, ant :=> goal) = rightFocus (out goal) (uniq, ant)
115
applyRightFocus (uniq, ant :=> goal) = rightFocus (out goal) (uniq, ant)
72
false
true
0
7
16
51
28
23
null
null
rueshyna/gogol
gogol-civicinfo/gen/Network/Google/Resource/CivicInfo/Representatives/RepresentativeInfoByDivision.hs
mpl-2.0
-- | The Open Civic Data division identifier of the division to look up. rribdOcdId :: Lens' RepresentativesRepresentativeInfoByDivision Text rribdOcdId = lens _rribdOcdId (\ s a -> s{_rribdOcdId = a})
203
rribdOcdId :: Lens' RepresentativesRepresentativeInfoByDivision Text rribdOcdId = lens _rribdOcdId (\ s a -> s{_rribdOcdId = a})
130
rribdOcdId = lens _rribdOcdId (\ s a -> s{_rribdOcdId = a})
61
true
true
1
9
31
44
22
22
null
null
wellposed/hblas
unused-ffi-utils/ffi-gen.hs
bsd-3-clause
tyco (C.Tdouble _) = ConT $ mkName "CDouble"
56
tyco (C.Tdouble _) = ConT $ mkName "CDouble"
56
tyco (C.Tdouble _) = ConT $ mkName "CDouble"
56
false
false
0
7
19
25
11
14
null
null
EricYT/Haskell
src/real_haskell/chapter-9/ControlledVisit.hs
apache-2.0
isDirectory :: Info -> Bool isDirectory = maybe False searchable . infoPerms
76
isDirectory :: Info -> Bool isDirectory = maybe False searchable . infoPerms
76
isDirectory = maybe False searchable . infoPerms
48
false
true
0
6
11
24
12
12
null
null
ganeti/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
-- | Each request is "salted" by the current timestamp. -- -- This constant decides how many seconds of skew to accept. -- -- TODO: make this a default and allow the value to be more -- configurable confdMaxClockSkew :: Int confdMaxClockSkew = 2 * nodeMaxClockSkew
264
confdMaxClockSkew :: Int confdMaxClockSkew = 2 * nodeMaxClockSkew
65
confdMaxClockSkew = 2 * nodeMaxClockSkew
40
true
true
0
5
45
21
14
7
null
null
keithodulaigh/Hets
CASL/CCC/TerminationProof.hs
gpl-2.0
-- | create a binary application applyBin :: String -> String -> String -> String applyBin o t1 t2 = apply o $ t1 ++ "," ++ t2
126
applyBin :: String -> String -> String -> String applyBin o t1 t2 = apply o $ t1 ++ "," ++ t2
93
applyBin o t1 t2 = apply o $ t1 ++ "," ++ t2
44
true
true
0
9
27
52
24
28
null
null
brendanhay/gogol
gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Placements/Get.hs
mpl-2.0
-- | JSONP pgCallback :: Lens' PlacementsGet (Maybe Text) pgCallback = lens _pgCallback (\ s a -> s{_pgCallback = a})
119
pgCallback :: Lens' PlacementsGet (Maybe Text) pgCallback = lens _pgCallback (\ s a -> s{_pgCallback = a})
108
pgCallback = lens _pgCallback (\ s a -> s{_pgCallback = a})
61
true
true
0
9
21
48
25
23
null
null
olsner/ghc
compiler/prelude/THNames.hs
bsd-3-clause
recCName = libFun (fsLit "recC" ) recCIdKey
50
recCName = libFun (fsLit "recC" ) recCIdKey
50
recCName = libFun (fsLit "recC" ) recCIdKey
50
false
false
0
7
13
17
8
9
null
null
zalora/logging-facade-journald
src/System/Logging/Facade/Journald.hs
mit
- | Use this with `setLogSink` to switch logging to journald. journaldLogSink :: LogSink journaldLogSink = sendJournalFields . logRecordToJournalFields
152
journaldLogSink :: LogSink journaldLogSink = sendJournalFields . logRecordToJournalFields
89
journaldLogSink = sendJournalFields . logRecordToJournalFields
62
true
true
1
10
19
46
22
24
null
null
siddhanathan/ghc
compiler/utils/Util.hs
bsd-3-clause
compareLength [] _ = LT
32
compareLength [] _ = LT
32
compareLength [] _ = LT
32
false
false
0
6
13
13
6
7
null
null
bredelings/BAli-Phy
haskell/SModel/Likelihood.hs
gpl-2.0
peel_likelihood t cl as f root = let likelihoods = mkArray (numNodes t) peel_likelihood' peel_likelihood' root = let branches_in = edgesTowardNode t root in case branches_in of [b1,b2,b3]-> calc_root_probability (cl!b1) (c...
412
peel_likelihood t cl as f root = let likelihoods = mkArray (numNodes t) peel_likelihood' peel_likelihood' root = let branches_in = edgesTowardNode t root in case branches_in of [b1,b2,b3]-> calc_root_probability (cl!b1) (c...
412
peel_likelihood t cl as f root = let likelihoods = mkArray (numNodes t) peel_likelihood' peel_likelihood' root = let branches_in = edgesTowardNode t root in case branches_in of [b1,b2,b3]-> calc_root_probability (cl!b1) (c...
412
false
false
0
16
168
146
73
73
null
null
chrisdone/hog
src/Control/Concurrent/Delay.hs
bsd-3-clause
delaySeconds :: Integer -> IO () delaySeconds 0 = return ()
59
delaySeconds :: Integer -> IO () delaySeconds 0 = return ()
59
delaySeconds 0 = return ()
26
false
true
0
7
10
28
13
15
null
null
alexbiehl/hs-ssh
src/SSH/KeyPair.hs
bsd-3-clause
dsaKeyPairFromFile :: FilePath -> IO (Either String DSA.KeyPair) dsaKeyPairFromFile path = keypairFromFile path readDSAKeyPair
126
dsaKeyPairFromFile :: FilePath -> IO (Either String DSA.KeyPair) dsaKeyPairFromFile path = keypairFromFile path readDSAKeyPair
126
dsaKeyPairFromFile path = keypairFromFile path readDSAKeyPair
61
false
true
0
10
13
40
18
22
null
null
FranklinChen/IHaskell
ipython-kernel/src/IHaskell/IPython/EasyKernel.hs
mit
easyKernel :: MonadIO m => FilePath -- ^ The connection file provided by the IPython frontend -> KernelConfig m output result -- ^ The kernel configuration specifying how to react to -- messages -> m () easyKernel profileFile config = do prof...
938
easyKernel :: MonadIO m => FilePath -- ^ The connection file provided by the IPython frontend -> KernelConfig m output result -- ^ The kernel configuration specifying how to react to -- messages -> m () easyKernel profileFile config = do prof...
938
easyKernel profileFile config = do prof <- liftIO $ getProfile profileFile zmq@(Channels shellReqChan shellRepChan ctrlReqChan ctrlRepChan iopubChan _) <- liftIO $ serveProfile prof ...
659
false
true
0
15
390
204
92
112
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/HTMLSlotElement.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement.name Mozilla HTMLSlotElement.name documentation> setName :: (MonadDOM m, ToJSString val) => HTMLSlotElement -> val -> m () setName self val = liftDOM (self ^. jss "name" (toJSVal val))
264
setName :: (MonadDOM m, ToJSString val) => HTMLSlotElement -> val -> m () setName self val = liftDOM (self ^. jss "name" (toJSVal val))
143
setName self val = liftDOM (self ^. jss "name" (toJSVal val))
61
true
true
0
10
38
66
33
33
null
null
keera-studios/hsQt
Qtc/Gui/QRubberBand.hs
bsd-2-clause
qRubberBand_delete :: QRubberBand a -> IO () qRubberBand_delete x0 = withObjectPtr x0 $ \cobj_x0 -> qtc_QRubberBand_delete cobj_x0
136
qRubberBand_delete :: QRubberBand a -> IO () qRubberBand_delete x0 = withObjectPtr x0 $ \cobj_x0 -> qtc_QRubberBand_delete cobj_x0
136
qRubberBand_delete x0 = withObjectPtr x0 $ \cobj_x0 -> qtc_QRubberBand_delete cobj_x0
91
false
true
0
7
22
41
19
22
null
null
DougBurke/swish
src/Swish/RDF/Vocabulary/RDF.hs
lgpl-2.1
-- | @rdf:li@. rdfLi :: ScopedName rdfLi = toRDF "li"
53
rdfLi :: ScopedName rdfLi = toRDF "li"
38
rdfLi = toRDF "li"
18
true
true
0
6
9
22
9
13
null
null
mcschroeder/ghc
compiler/prelude/THNames.hs
bsd-3-clause
{- ********************************************************************* * * DataCon keys * * *******************************************************************...
566
noInlineDataConKey, inlineDataConKey, inlinableDataConKey :: Unique noInlineDataConKey = mkPreludeDataConUnique 100
116
noInlineDataConKey = mkPreludeDataConUnique 100
48
true
true
0
5
202
22
15
7
null
null
ekmett/ansi-terminal
System/Console/ANSI/Windows/Foreign.hs
bsd-3-clause
sTD_ERROR_HANDLE = -12
22
sTD_ERROR_HANDLE = -12
22
sTD_ERROR_HANDLE = -12
22
false
false
1
5
2
11
4
7
null
null
nevrenato/Hets_Fork
FreeCAD/XMLPrinter.hs
gpl-2.0
doc2XML :: Document -> Element doc2XML list = unode "document" (map sendNamedObj list)
88
doc2XML :: Document -> Element doc2XML list = unode "document" (map sendNamedObj list)
88
doc2XML list = unode "document" (map sendNamedObj list)
57
false
true
0
7
14
31
15
16
null
null
jeremyjh/free-agent
core/test/FreeAgent/Server/PeerSpec.hs
bsd-3-clause
cleanup = closeContext "peer"
29
cleanup = closeContext "peer"
29
cleanup = closeContext "peer"
29
false
false
1
5
3
12
4
8
null
null
vdweegen/UvA-Software_Testing
Lab2/Lecture2.hs
gpl-3.0
parity n = mod n 2
18
parity n = mod n 2
18
parity n = mod n 2
18
false
false
0
5
5
14
6
8
null
null
holoed/Junior
lib/transformers-0.4.3.0/Control/Monad/Trans/State/Lazy.hs
apache-2.0
-- | Lift a @catchE@ operation to the new monad. liftCatch :: Catch e m (a,s) -> Catch e (StateT s m) a liftCatch catchE m h = StateT $ \ s -> runStateT m s `catchE` \ e -> runStateT (h e) s
194
liftCatch :: Catch e m (a,s) -> Catch e (StateT s m) a liftCatch catchE m h = StateT $ \ s -> runStateT m s `catchE` \ e -> runStateT (h e) s
145
liftCatch catchE m h = StateT $ \ s -> runStateT m s `catchE` \ e -> runStateT (h e) s
90
true
true
0
11
47
87
45
42
null
null
rscprof/kalium
src/Kalium/Nucleus/Vector/Template.hs
bsd-3-clause
runMetaTableBuilder :: (a -> MetaTableBuilder) -> (a -> Maybe MetaTable) runMetaTableBuilder = (getMetaTableBuilder .)
118
runMetaTableBuilder :: (a -> MetaTableBuilder) -> (a -> Maybe MetaTable) runMetaTableBuilder = (getMetaTableBuilder .)
118
runMetaTableBuilder = (getMetaTableBuilder .)
45
false
true
0
10
13
43
21
22
null
null
ayachigin/watch-file
src/main.hs
bsd-3-clause
main :: IO () main = do args <- getArgs let filename = head args command = tail args watch filename (system . unwords $ command)
140
main :: IO () main = do args <- getArgs let filename = head args command = tail args watch filename (system . unwords $ command)
140
main = do args <- getArgs let filename = head args command = tail args watch filename (system . unwords $ command)
126
false
true
0
10
37
62
29
33
null
null
Lykos/Sara
src/lib/Sara/Parser/PrettyPrinter.hs
gpl-3.0
prettyBinaryTerm :: Expression a b c d -> Doc prettyBinaryTerm exp = prettyUntypedBinaryTerm exp
96
prettyBinaryTerm :: Expression a b c d -> Doc prettyBinaryTerm exp = prettyUntypedBinaryTerm exp
96
prettyBinaryTerm exp = prettyUntypedBinaryTerm exp
50
false
true
0
6
13
30
14
16
null
null
vsivsi/gitit
src/Network/Gitit/Handlers.hs
gpl-2.0
deletePage :: Handler deletePage = withData $ \(params :: Params) -> do page <- getPage cfg <- getConfig let file = pFileToDelete params mbUser <- getLoggedInUser (user, email) <- case mbUser of Nothing -> return ("Anonymous", "") Just u -> return (uUsername u,...
761
deletePage :: Handler deletePage = withData $ \(params :: Params) -> do page <- getPage cfg <- getConfig let file = pFileToDelete params mbUser <- getLoggedInUser (user, email) <- case mbUser of Nothing -> return ("Anonymous", "") Just u -> return (uUsername u,...
761
deletePage = withData $ \(params :: Params) -> do page <- getPage cfg <- getConfig let file = pFileToDelete params mbUser <- getLoggedInUser (user, email) <- case mbUser of Nothing -> return ("Anonymous", "") Just u -> return (uUsername u, uEmail u) let autho...
739
false
true
0
17
208
265
128
137
null
null
conal/reify-core
src/ReifyCore/Lambda.hs
bsd-3-clause
{- lamv# :: forall a b. Addr# -> Ty a -> E p b -> E p (a -> b) lamv# addr ty body = lam (VarPat (V (unpackCString# addr) ty)) body -} -- | Let expression (beta redex) lett :: forall a b p. (PrimBasics p, Eq1' p) => Pat a -> E p a -> E p b -> E p b lett UnitPat _ body = body
297
lett :: forall a b p. (PrimBasics p, Eq1' p) => Pat a -> E p a -> E p b -> E p b lett UnitPat _ body = body
129
lett UnitPat _ body = body
26
true
true
0
10
92
72
37
35
null
null
kim/amazonka
amazonka-rds/gen/Network/AWS/RDS/CreateEventSubscription.hs
mpl-2.0
cesTags :: Lens' CreateEventSubscription [Tag] cesTags = lens _cesTags (\s a -> s { _cesTags = a }) . _List
107
cesTags :: Lens' CreateEventSubscription [Tag] cesTags = lens _cesTags (\s a -> s { _cesTags = a }) . _List
107
cesTags = lens _cesTags (\s a -> s { _cesTags = a }) . _List
60
false
true
0
10
19
46
25
21
null
null
kojiromike/Idris-dev
src/Idris/REPL.hs
bsd-3-clause
process fn (Execute tm) = idrisCatch (do ist <- getIState (m_in, _) <- elabVal (recinfo (fileFC "toplevel")) ERHS (elabExec fc tm) m <- applyOpts m_in (tmpn, tmph) <- runIO $ tempfile "" ...
1,703
process fn (Execute tm) = idrisCatch (do ist <- getIState (m_in, _) <- elabVal (recinfo (fileFC "toplevel")) ERHS (elabExec fc tm) m <- applyOpts m_in (tmpn, tmph) <- runIO $ tempfile "" ...
1,703
process fn (Execute tm) = idrisCatch (do ist <- getIState (m_in, _) <- elabVal (recinfo (fileFC "toplevel")) ERHS (elabExec fc tm) m <- applyOpts m_in (tmpn, tmph) <- runIO $ tempfile "" ...
1,703
false
false
0
22
1,012
363
172
191
null
null
39aldo39/klfc
src/JsonPretty.hs
gpl-3.0
fromPair ∷ [Builder] → PState → (T.Text, Value) → Builder fromPair delims st (k,v) = A.encodeToTextBuilder (toJSON k) ⊕ ": " ⊕ fromValue delims' st v where delims' = case pstDelims st k of [] → delims xs → xs
240
fromPair ∷ [Builder] → PState → (T.Text, Value) → Builder fromPair delims st (k,v) = A.encodeToTextBuilder (toJSON k) ⊕ ": " ⊕ fromValue delims' st v where delims' = case pstDelims st k of [] → delims xs → xs
240
fromPair delims st (k,v) = A.encodeToTextBuilder (toJSON k) ⊕ ": " ⊕ fromValue delims' st v where delims' = case pstDelims st k of [] → delims xs → xs
182
false
true
1
10
71
113
54
59
null
null
Munksgaard/SFOT
Asm/Parser.hs
mit
inc :: Parser Operation inc = do token "INC" choice incParsers where incParsers = map (liftM INC) incParsers' incParsers' = [zeroPage IncZ, zeroPageX IncZX, absolute IncA, absoluteX IncAX]
229
inc :: Parser Operation inc = do token "INC" choice incParsers where incParsers = map (liftM INC) incParsers' incParsers' = [zeroPage IncZ, zeroPageX IncZX, absolute IncA, absoluteX IncAX]
229
inc = do token "INC" choice incParsers where incParsers = map (liftM INC) incParsers' incParsers' = [zeroPage IncZ, zeroPageX IncZX, absolute IncA, absoluteX IncAX]
205
false
true
0
9
68
73
35
38
null
null
peti/postmaster
src/Main.hs
agpl-3.0
makeTlsServerParams :: Credential -> IO ServerParams makeTlsServerParams cred = do store <- getSystemCertificateStore smgr <- newSessionManager defaultConfig return $ def { serverShared = def { sharedSessionManager = smgr , sharedCAStore = store , shared...
1,061
makeTlsServerParams :: Credential -> IO ServerParams makeTlsServerParams cred = do store <- getSystemCertificateStore smgr <- newSessionManager defaultConfig return $ def { serverShared = def { sharedSessionManager = smgr , sharedCAStore = store , shared...
1,061
makeTlsServerParams cred = do store <- getSystemCertificateStore smgr <- newSessionManager defaultConfig return $ def { serverShared = def { sharedSessionManager = smgr , sharedCAStore = store , sharedCredentials = Credentials [cred] ...
1,008
false
true
0
14
272
134
81
53
null
null
haskell-distributed/distributed-process-fsm
src/Control/Distributed/Process/FSM.hs
bsd-3-clause
-- | As 'nextEvent', but places the message at the back of the queue by default. -- -- Mailbox priority ordering will still take precedence over insertion order. -- publishEvent :: forall s d m . (Serializable m) => m -> FSM s d (Transition s d) publishEvent m = return $ Enqueue (wrapMessage m)
295
publishEvent :: forall s d m . (Serializable m) => m -> FSM s d (Transition s d) publishEvent m = return $ Enqueue (wrapMessage m)
130
publishEvent m = return $ Enqueue (wrapMessage m)
49
true
true
0
10
54
66
36
30
null
null
mrak/coreutils.hs
src/tr/Args.hs
mit
getArgs :: IO Args getArgs = execParser parser >>= processArgs where parser = info (helper <*> options) (fullDesc <> header "")
131
getArgs :: IO Args getArgs = execParser parser >>= processArgs where parser = info (helper <*> options) (fullDesc <> header "")
131
getArgs = execParser parser >>= processArgs where parser = info (helper <*> options) (fullDesc <> header "")
112
false
true
0
10
24
55
26
29
null
null
epall/qrcode
QRDraw.hs
mit
typeInformation Q Mask3 = binaryFromHumanReadable "011101000000110"
67
typeInformation Q Mask3 = binaryFromHumanReadable "011101000000110"
67
typeInformation Q Mask3 = binaryFromHumanReadable "011101000000110"
67
false
false
1
5
5
18
6
12
null
null
pjones/themoviedb
src/Network/API/TheMovieDB/Internal/TheMovieDB.hs
mit
runTheMovieDBWithManager :: -- | The 'Manager' to use. Manager -> -- | Library settings. Settings -> -- | The API calls to make. TheMovieDB a -> -- | Response or error. IO (Either Error a) runTheMovieDBWithManager m s = runTheMovieDBWithRequestFunction (apiGET m s)
281
runTheMovieDBWithManager :: -- | The 'Manager' to use. Manager -> -- | Library settings. Settings -> -- | The API calls to make. TheMovieDB a -> -- | Response or error. IO (Either Error a) runTheMovieDBWithManager m s = runTheMovieDBWithRequestFunction (apiGET m s)
281
runTheMovieDBWithManager m s = runTheMovieDBWithRequestFunction (apiGET m s)
76
false
true
0
11
58
61
30
31
null
null
Teino1978-Corp/Teino1978-Corp-alex
src/CharSet.hs
bsd-3-clause
charRangeToCharSpan _ (Range _ (BoundaryBelow c)) | c == minBound = Nothing
75
charRangeToCharSpan _ (Range _ (BoundaryBelow c)) | c == minBound = Nothing
75
charRangeToCharSpan _ (Range _ (BoundaryBelow c)) | c == minBound = Nothing
75
false
false
0
9
11
35
16
19
null
null
CulpaBS/wbBach
src/Futhark/Analysis/HORepresentation/SOAC.hs
bsd-3-clause
-- | If the given input is a plain variable input, with no transforms, -- return the variable. isVarInput :: Input -> Maybe VName isVarInput (Input ts v _) | nullTransforms ts = Just v
184
isVarInput :: Input -> Maybe VName isVarInput (Input ts v _) | nullTransforms ts = Just v
89
isVarInput (Input ts v _) | nullTransforms ts = Just v
54
true
true
0
8
34
45
21
24
null
null
energyflowanalysis/efa-2.1
test/EFA/Test/Cube.hs
bsd-3-clause
main :: IO () main = runTests >>= print
39
main :: IO () main = runTests >>= print
39
main = runTests >>= print
25
false
true
2
7
8
28
12
16
null
null
mightymoose/liquidhaskell
tests/neg/mr00.hs
bsd-3-clause
baz [] _ = crash False
26
baz [] _ = crash False
26
baz [] _ = crash False
26
false
false
0
6
9
16
7
9
null
null
DanielWaterworth/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
consoleDecorate :: IState -> OutputAnnotation -> String -> String consoleDecorate ist _ | not (idris_colourRepl ist) = id
121
consoleDecorate :: IState -> OutputAnnotation -> String -> String consoleDecorate ist _ | not (idris_colourRepl ist) = id
121
consoleDecorate ist _ | not (idris_colourRepl ist) = id
55
false
true
0
10
17
49
21
28
null
null
orbitgray/ProjectEuler
haskell/001.hs
lgpl-3.0
-- Main main = do putStrLn ("res = " ++ show result )
57
main = do putStrLn ("res = " ++ show result )
49
main = do putStrLn ("res = " ++ show result )
49
true
false
1
11
16
27
11
16
null
null
cosmo0920/Ahblog
Handler/Admin.hs
mit
postArticleDeleteR :: ArticleId -> Handler Html postArticleDeleteR articleId = do article <- runDB $ do _post <- get404 articleId delete articleId deleteWhere [CommentArticle ==. articleId] deleteWhere [TagArticle ==. articleId] return _post renderer <- getUrlRenderParams let html = [hamlet|<s...
471
postArticleDeleteR :: ArticleId -> Handler Html postArticleDeleteR articleId = do article <- runDB $ do _post <- get404 articleId delete articleId deleteWhere [CommentArticle ==. articleId] deleteWhere [TagArticle ==. articleId] return _post renderer <- getUrlRenderParams let html = [hamlet|<s...
471
postArticleDeleteR articleId = do article <- runDB $ do _post <- get404 articleId delete articleId deleteWhere [CommentArticle ==. articleId] deleteWhere [TagArticle ==. articleId] return _post renderer <- getUrlRenderParams let html = [hamlet|<span .notice><h4>#{articleTitle article}</h4> ...
423
false
true
0
13
115
121
55
66
null
null
AlexanderPankiv/ghc
compiler/types/Type.hs
bsd-3-clause
cmpTypeX _ (ForAllTy _ _) (FunTy _ _) = GT
45
cmpTypeX _ (ForAllTy _ _) (FunTy _ _) = GT
45
cmpTypeX _ (ForAllTy _ _) (FunTy _ _) = GT
45
false
false
1
6
12
32
14
18
null
null
noteed/opengl-api
Text/OpenGL/ExtHeader.hs
bsd-3-clause
cHeaderItem :: TypeMap -> HeaderItem -> [String] cHeaderItem tm i = case i of HPassthru [] -> [""] HPassthru (_:str) -> [str] HNewCategory c ss -> [ "#ifndef GL_" ++ cCategory c , "#define GL_" ++ cCategory c ++ " 1" ] ++ map (drop 1) ss ++ [ "#endif","" ] HFunctions fs ss -> [ "#ifndef ...
630
cHeaderItem :: TypeMap -> HeaderItem -> [String] cHeaderItem tm i = case i of HPassthru [] -> [""] HPassthru (_:str) -> [str] HNewCategory c ss -> [ "#ifndef GL_" ++ cCategory c , "#define GL_" ++ cCategory c ++ " 1" ] ++ map (drop 1) ss ++ [ "#endif","" ] HFunctions fs ss -> [ "#ifndef ...
630
cHeaderItem tm i = case i of HPassthru [] -> [""] HPassthru (_:str) -> [str] HNewCategory c ss -> [ "#ifndef GL_" ++ cCategory c , "#define GL_" ++ cCategory c ++ " 1" ] ++ map (drop 1) ss ++ [ "#endif","" ] HFunctions fs ss -> [ "#ifndef GL_" ++ cCategory (funCategory $ head fs) , "...
581
false
true
0
20
172
248
125
123
null
null
apyrgio/ganeti
test/hs/Test/Ganeti/HTools/Container.hs
bsd-2-clause
prop_findByName :: Property prop_findByName = forAll (genNode (Just 1) Nothing) $ \node -> forAll (choose (1, 20)) $ \ cnt -> forAll (choose (0, cnt - 1)) $ \ fidx -> forAll (genUniquesList (cnt * 2) arbitrary) $ \ allnames -> forAll (arbitrary `suchThat` (`notElem` allnames)) $ \ othername -> let names = z...
1,007
prop_findByName :: Property prop_findByName = forAll (genNode (Just 1) Nothing) $ \node -> forAll (choose (1, 20)) $ \ cnt -> forAll (choose (0, cnt - 1)) $ \ fidx -> forAll (genUniquesList (cnt * 2) arbitrary) $ \ allnames -> forAll (arbitrary `suchThat` (`notElem` allnames)) $ \ othername -> let names = z...
1,007
prop_findByName = forAll (genNode (Just 1) Nothing) $ \node -> forAll (choose (1, 20)) $ \ cnt -> forAll (choose (0, cnt - 1)) $ \ fidx -> forAll (genUniquesList (cnt * 2) arbitrary) $ \ allnames -> forAll (arbitrary `suchThat` (`notElem` allnames)) $ \ othername -> let names = zip (take cnt allnames) (drop...
979
false
true
0
25
319
363
191
172
null
null
karamellpelle/grid
designer/source/Game/LevelPuzzleMode/Helpers.hs
gpl-3.0
-------------------------------------------------------------------------------- -- begin levelpuzzleBeginLevel :: LevelPuzzleWorld -> MEnv' LevelPuzzleWorld levelpuzzleBeginLevel lvl = do cnt' <- contentBegin $ levelpuzzleContent lvl return lvl { levelpuzzleContent = cnt', ...
534
levelpuzzleBeginLevel :: LevelPuzzleWorld -> MEnv' LevelPuzzleWorld levelpuzzleBeginLevel lvl = do cnt' <- contentBegin $ levelpuzzleContent lvl return lvl { levelpuzzleContent = cnt', levelpuzzleEvents = [], levelpuzzleSegmentsCount = levelSegments (levelpuz...
442
levelpuzzleBeginLevel lvl = do cnt' <- contentBegin $ levelpuzzleContent lvl return lvl { levelpuzzleContent = cnt', levelpuzzleEvents = [], levelpuzzleSegmentsCount = levelSegments (levelpuzzleLevel lvl) } --------------------------------------...
374
true
true
0
12
114
76
40
36
null
null
jgrosso/derivative-parsing
src/TH.hs
bsd-3-clause
-- Adapted from https://ocharles.org.uk/blog/guest-posts/2014-12-22-template-haskell.html -- This is totally partial (no pun intended) and hacky since it's for my specific use case. Please don't use this more than you have to. liftFree :: Name -> Q [Dec] liftFree t = reify t >>= \(TyConI (DataD _ _ tyVarBndrs _ con...
1,697
liftFree :: Name -> Q [Dec] liftFree t = reify t >>= \(TyConI (DataD _ _ tyVarBndrs _ constructors _)) -> (++) <$> [d| mkFree :: Functor f => (() -> f ()) -> Free f () mkFree f = liftF $ f () |] <*> mapM (liftFClause tyVarBndrs) constructors where liftFClause tyVarBndrs (Norm...
1,470
liftFree t = reify t >>= \(TyConI (DataD _ _ tyVarBndrs _ constructors _)) -> (++) <$> [d| mkFree :: Functor f => (() -> f ()) -> Free f () mkFree f = liftF $ f () |] <*> mapM (liftFClause tyVarBndrs) constructors where liftFClause tyVarBndrs (NormalC name fields) = cre...
1,442
true
true
3
12
482
402
212
190
null
null
imalsogreg/hComedi
examples/tut3.hs
gpl-3.0
main :: IO () main = withHandle "/dev/comedi0" $ \h -> do setGlobalOORBehavior OOR_Number cmd <- timedCommand h (SubDevice 0) 10000000 31250 [(Channel n, Range 0, GroundRef,[]) | n <- [0 .. 31]] cmd' <- validateCommand h [] cmd print cmd execCommand h cmd' print cmd' forM_ [1 .. 10] $ \i -> do...
464
main :: IO () main = withHandle "/dev/comedi0" $ \h -> do setGlobalOORBehavior OOR_Number cmd <- timedCommand h (SubDevice 0) 10000000 31250 [(Channel n, Range 0, GroundRef,[]) | n <- [0 .. 31]] cmd' <- validateCommand h [] cmd print cmd execCommand h cmd' print cmd' forM_ [1 .. 10] $ \i -> do...
464
main = withHandle "/dev/comedi0" $ \h -> do setGlobalOORBehavior OOR_Number cmd <- timedCommand h (SubDevice 0) 10000000 31250 [(Channel n, Range 0, GroundRef,[]) | n <- [0 .. 31]] cmd' <- validateCommand h [] cmd print cmd execCommand h cmd' print cmd' forM_ [1 .. 10] $ \i -> do --print =...
450
false
true
0
14
138
169
80
89
null
null
fehu/haskell-java-bridge-fork
src/Foreign/Java/Bindings/JavaTypes.hs
mit
constructorDependencies :: JavaConstructor -> [String] -- ^ Retrieve all classes that this constructor definition -- references in its parameters or generic declaration. constructorDependencies constr = foldl classReference [] $ constructorParams constr where classReference r c = cas...
365
constructorDependencies :: JavaConstructor -> [String] constructorDependencies constr = foldl classReference [] $ constructorParams constr where classReference r c = case c of JObj n -> n : r _ -> r
250
constructorDependencies constr = foldl classReference [] $ constructorParams constr where classReference r c = case c of JObj n -> n : r _ -> r
195
true
true
1
8
99
81
37
44
null
null
beni55/texmath
src/Text/TeXMath/Writers/MathML.hs
gpl-2.0
handleDownup DisplayInline (EOver True x y) = ESuper x y
63
handleDownup DisplayInline (EOver True x y) = ESuper x y
63
handleDownup DisplayInline (EOver True x y) = ESuper x y
63
false
false
0
7
16
26
12
14
null
null
forked-upstream-packages-for-ghcjs/ghc
compiler/simplCore/CoreMonad.hs
bsd-3-clause
cmpEqTick (RuleFired a) (RuleFired b) = a `compare` b
87
cmpEqTick (RuleFired a) (RuleFired b) = a `compare` b
87
cmpEqTick (RuleFired a) (RuleFired b) = a `compare` b
87
false
false
1
8
42
33
15
18
null
null
forsyde/forsyde-atom
src/ForSyDe/Atom/MoC.hs
bsd-3-clause
comb84 f s1 s2 s3 s4 s5 s6 s7 s8 = (f -.- s1 -*- s2 -*- s3 -*- s4 -*- s5 -*- s6 -*- s7 -*- s8 -*<<<)
100
comb84 f s1 s2 s3 s4 s5 s6 s7 s8 = (f -.- s1 -*- s2 -*- s3 -*- s4 -*- s5 -*- s6 -*- s7 -*- s8 -*<<<)
100
comb84 f s1 s2 s3 s4 s5 s6 s7 s8 = (f -.- s1 -*- s2 -*- s3 -*- s4 -*- s5 -*- s6 -*- s7 -*- s8 -*<<<)
100
false
false
0
13
28
61
31
30
null
null
jml/graphql-api
src/GraphQL/Internal/API/Enum.hs
bsd-3-clause
invalidEnumName :: forall t. NameError -> Either Text t invalidEnumName x = Left ("In Enum: " <> formatError x)
111
invalidEnumName :: forall t. NameError -> Either Text t invalidEnumName x = Left ("In Enum: " <> formatError x)
111
invalidEnumName x = Left ("In Enum: " <> formatError x)
55
false
true
0
8
18
41
20
21
null
null
sgillespie/ghc
compiler/basicTypes/Unique.hs
bsd-3-clause
mkRegSubUnique = mkUnique 'S'
32
mkRegSubUnique = mkUnique 'S'
32
mkRegSubUnique = mkUnique 'S'
32
false
false
0
5
6
9
4
5
null
null
rfranek/duckling
Duckling/Time/Types.hs
bsd-3-clause
runPredicate (IntersectPredicate pred1 pred2) = runIntersectPredicate pred1 pred2
83
runPredicate (IntersectPredicate pred1 pred2) = runIntersectPredicate pred1 pred2
83
runPredicate (IntersectPredicate pred1 pred2) = runIntersectPredicate pred1 pred2
83
false
false
0
7
9
22
10
12
null
null
cchalmers/lens
src/Control/Lens/Internal/ByteString.hs
bsd-3-clause
-- | Unpack a lazy 'Bytestring' unpackLazy :: BL.ByteString -> [Word8] unpackLazy = BL.unpack
93
unpackLazy :: BL.ByteString -> [Word8] unpackLazy = BL.unpack
61
unpackLazy = BL.unpack
22
true
true
0
8
13
30
14
16
null
null
brendanhay/gogol
gogol-chat/gen/Network/Google/Chat/Types/Product.hs
mpl-2.0
-- | Obfuscated domain information. uDomainId :: Lens' User (Maybe Text) uDomainId = lens _uDomainId (\ s a -> s{_uDomainId = a})
131
uDomainId :: Lens' User (Maybe Text) uDomainId = lens _uDomainId (\ s a -> s{_uDomainId = a})
95
uDomainId = lens _uDomainId (\ s a -> s{_uDomainId = a})
58
true
true
1
9
23
52
25
27
null
null
rohitjha/DiMPL
src/Graph.hs
bsd-2-clause
{-| The 'isDirectedGM' function returns whether a graph (adjacency matrix form) is directed or not. A graph is directed if it is not equal to its transpose. The function takes one argument, which is of type 'GraphMatrix'. Below are a few examples: >>> gm1 1 3 0 5 >>> isDirected gm1 True...
497
isDirectedGM :: GraphMatrix Integer -> Bool isDirectedGM (GraphMatrix gm) = not $ isUndirectedGM (GraphMatrix gm)
113
isDirectedGM (GraphMatrix gm) = not $ isUndirectedGM (GraphMatrix gm)
69
true
true
0
8
123
41
20
21
null
null
krapsh/kraps-haskell
src/Spark/Core/Internal/FunctionsInternals.hs
apache-2.0
{-| Takes a typed function that operates on columns and projects this function onto a similar operation for type observables. This function is not very smart and may throw an error for complex cases such as broadcasting, joins, etc. -} -- TODO: we do not need technically the typeable constraint. -- It is an additional...
824
projectColFunction :: forall x y. (HasCallStack, SQLTypeable y, SQLTypeable x) => (forall ref. Column ref x -> Column ref y) -> LocalData x -> LocalData y projectColFunction f o = let o' = untypedLocalData o sqltx = buildType :: SQLType x sqlty = buildType :: SQLType y f' :: UntypedColumnData ->...
496
projectColFunction f o = let o' = untypedLocalData o sqltx = buildType :: SQLType x sqlty = buildType :: SQLType y f' :: UntypedColumnData -> Try UntypedColumnData f' x = dropColType . f <$> castTypeCol sqltx x o2 = projectColFunctionUntyped (f' =<<) o' o3 = castType sqlty =<< o2 ...
337
true
true
0
11
178
178
91
87
null
null
gianlucagiorgolo/lambek-monad
Main.hs
mit
day4Example = "Spain will_beat Germany and Nigeria will_beat Canada => <pr>s"
77
day4Example = "Spain will_beat Germany and Nigeria will_beat Canada => <pr>s"
77
day4Example = "Spain will_beat Germany and Nigeria will_beat Canada => <pr>s"
77
false
false
0
4
10
6
3
3
null
null
uduki/hsQt
Qtc/Gui/QItemSelectionModel.hs
bsd-2-clause
isRowSelected :: QItemSelectionModel a -> ((Int, QModelIndex t2)) -> IO (Bool) isRowSelected x0 (x1, x2) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x2 $ \cobj_x2 -> qtc_QItemSelectionModel_isRowSelected cobj_x0 (toCInt x1) cobj_x2
265
isRowSelected :: QItemSelectionModel a -> ((Int, QModelIndex t2)) -> IO (Bool) isRowSelected x0 (x1, x2) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x2 $ \cobj_x2 -> qtc_QItemSelectionModel_isRowSelected cobj_x0 (toCInt x1) cobj_x2
265
isRowSelected x0 (x1, x2) = withBoolResult $ withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x2 $ \cobj_x2 -> qtc_QItemSelectionModel_isRowSelected cobj_x0 (toCInt x1) cobj_x2
186
false
true
6
9
46
100
48
52
null
null
JobaerChowdhury/game-of-life
app/Main.hs
bsd-3-clause
quitWithMessage :: IO () quitWithMessage = quit "Thanks for playing!!"
70
quitWithMessage :: IO () quitWithMessage = quit "Thanks for playing!!"
70
quitWithMessage = quit "Thanks for playing!!"
45
false
true
0
6
9
19
9
10
null
null
MetaMemoryT/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
mapPTermFC f g (PAppImpl t1 impls) = PAppImpl (mapPTermFC f g t1) impls
71
mapPTermFC f g (PAppImpl t1 impls) = PAppImpl (mapPTermFC f g t1) impls
71
mapPTermFC f g (PAppImpl t1 impls) = PAppImpl (mapPTermFC f g t1) impls
71
false
false
0
7
12
36
17
19
null
null
csrhodes/pandoc
src/Text/Pandoc/Readers/LaTeX.hs
gpl-2.0
dot 'e' = "ė"
13
dot 'e' = "ė"
13
dot 'e' = "ė"
13
false
false
1
5
3
13
4
9
null
null
mstksg/auto
src/Control/Auto/Interval.hs
mit
-- | Forks an input stream between all 'Interval's in the list, plus -- a "default 'Auto'. The output is the value of the first "on" -- 'Interval'; if there isn't any, the output from the "default 'Auto'" is -- used. -- -- prop> choose == foldr (<|!>) choose :: Monad m => Auto m a b -- ^ the 'Auto' to ...
503
choose :: Monad m => Auto m a b -- ^ the 'Auto' to behave like if all -- others are 'Nothing' -> [Interval m a b] -- ^ 'Auto's to run and choose from -> Auto m a b choose = foldr (<|!>)
250
choose = foldr (<|!>)
21
true
true
0
10
157
70
37
33
null
null
grnet/snf-ganeti
src/Ganeti/Constants.hs
bsd-2-clause
hotplugAllTargets :: FrozenSet String hotplugAllTargets = ConstantUtils.mkSet $ map Types.hotplugTargetToRaw [minBound..]
123
hotplugAllTargets :: FrozenSet String hotplugAllTargets = ConstantUtils.mkSet $ map Types.hotplugTargetToRaw [minBound..]
123
hotplugAllTargets = ConstantUtils.mkSet $ map Types.hotplugTargetToRaw [minBound..]
85
false
true
3
6
12
34
15
19
null
null
sebastiaanvisser/fixpoints
src/Data/Tree/Algebras.hs
bsd-3-clause
fromSortedList :: Ana.Coalgebra [(k, v)] (TreeF k v) fromSortedList = Ana.Phi $ \f -> case f of [] -> Leaf xs -> let l = take (length xs `div` 2) xs (k,v):r = drop (length l ) xs in Branch k v l r
242
fromSortedList :: Ana.Coalgebra [(k, v)] (TreeF k v) fromSortedList = Ana.Phi $ \f -> case f of [] -> Leaf xs -> let l = take (length xs `div` 2) xs (k,v):r = drop (length l ) xs in Branch k v l r
242
fromSortedList = Ana.Phi $ \f -> case f of [] -> Leaf xs -> let l = take (length xs `div` 2) xs (k,v):r = drop (length l ) xs in Branch k v l r
189
false
true
0
17
89
128
66
62
null
null