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
phaazon/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/Tokens.hs
bsd-3-clause
gl_TESS_GEN_POINT_MODE :: GLenum gl_TESS_GEN_POINT_MODE = 0x8E79
64
gl_TESS_GEN_POINT_MODE :: GLenum gl_TESS_GEN_POINT_MODE = 0x8E79
64
gl_TESS_GEN_POINT_MODE = 0x8E79
31
false
true
0
4
5
11
6
5
null
null
beni55/text
tests/Tests/Properties.hs
bsd-2-clause
tl_length = L.genericLength `eqP` TL.length
51
tl_length = L.genericLength `eqP` TL.length
51
tl_length = L.genericLength `eqP` TL.length
51
false
false
0
6
12
16
9
7
null
null
angler-lang/angler-lang
src/Language/Angler/MixfixParser.hs
bsd-3-clause
opParse :: [String] -> SrcSpan -> [ExprSpan] -> LoadPrecTable (Either ParseError ExprSpan) opParse = runOpParser . generateOpParser
131
opParse :: [String] -> SrcSpan -> [ExprSpan] -> LoadPrecTable (Either ParseError ExprSpan) opParse = runOpParser . generateOpParser
131
opParse = runOpParser . generateOpParser
40
false
true
0
11
16
50
24
26
null
null
brendanhay/gogol
gogol-tagmanager/gen/Network/Google/TagManager/Types/Product.hs
mpl-2.0
-- | User notes on how to apply this variable in the container. \'mutable -- tagmanager.accounts.containers.workspaces.variables.create \'mutable -- tagmanager.accounts.containers.workspaces.variables.update vNotes :: Lens' Variable (Maybe Text) vNotes = lens _vNotes (\ s a -> s{_vNotes = a})
293
vNotes :: Lens' Variable (Maybe Text) vNotes = lens _vNotes (\ s a -> s{_vNotes = a})
85
vNotes = lens _vNotes (\ s a -> s{_vNotes = a})
47
true
true
1
9
35
52
27
25
null
null
uduki/hsQt
Qtc/ClassTypes/Gui.hs
bsd-2-clause
qButtonGroupListFromPtrList :: [Ptr (TQButtonGroup a)] -> IO [QButtonGroup a] qButtonGroupListFromPtrList p = objectListFromPtrList qtc_QButtonGroup_getFinalizer p
165
qButtonGroupListFromPtrList :: [Ptr (TQButtonGroup a)] -> IO [QButtonGroup a] qButtonGroupListFromPtrList p = objectListFromPtrList qtc_QButtonGroup_getFinalizer p
165
qButtonGroupListFromPtrList p = objectListFromPtrList qtc_QButtonGroup_getFinalizer p
87
false
true
0
9
16
44
21
23
null
null
brendanhay/gogol
gogol-cloudprofiler/gen/Network/Google/CloudProFiler/Types/Product.hs
mpl-2.0
-- | One or more profile types that the agent is capable of providing. cpfrProFileType :: Lens' CreateProFileRequest [CreateProFileRequestProFileTypeItem] cpfrProFileType = lens _cpfrProFileType (\ s a -> s{_cpfrProFileType = a}) . _Default . _Coerce
270
cpfrProFileType :: Lens' CreateProFileRequest [CreateProFileRequestProFileTypeItem] cpfrProFileType = lens _cpfrProFileType (\ s a -> s{_cpfrProFileType = a}) . _Default . _Coerce
199
cpfrProFileType = lens _cpfrProFileType (\ s a -> s{_cpfrProFileType = a}) . _Default . _Coerce
115
true
true
3
8
53
58
28
30
null
null
emonkak/skype4hs
src/Network/Skype/Protocol/Chat.hs
mit
-- | When this bit is on, new users will be able to receive message in chat -- but unable to post until promoted to USER role. Basically a read-only flag -- for new users. chatOptionJoinersBecomeListeners :: ChatOption chatOptionJoinersBecomeListeners = ChatOption 4
266
chatOptionJoinersBecomeListeners :: ChatOption chatOptionJoinersBecomeListeners = ChatOption 4
94
chatOptionJoinersBecomeListeners = ChatOption 4
47
true
true
0
5
41
17
10
7
null
null
DavidAlphaFox/ghc
libraries/base/Control/Exception/Base.hs
bsd-3-clause
noMethodBindingError s = throw (NoMethodError (untangle s "No instance nor default method for class operation"))
119
noMethodBindingError s = throw (NoMethodError (untangle s "No instance nor default method for class operation"))
119
noMethodBindingError s = throw (NoMethodError (untangle s "No instance nor default method for class operation"))
119
false
false
1
9
21
30
12
18
null
null
zerobuzz/servant
servant-server/src/Servant/Server/Internal/RoutingApplication.hs
bsd-3-clause
-- Note [Existential Record Update] -- | Add an auth check to the end of the auth block. addAuthCheck :: Delayed env (a -> b) -> DelayedIO a -> Delayed env b addAuthCheck Delayed{..} new = Delayed { authD = (,) <$> authD <*> new , serverD = \ c (y, v) b req -> ($ v) <$> serverD c ...
342
addAuthCheck :: Delayed env (a -> b) -> DelayedIO a -> Delayed env b addAuthCheck Delayed{..} new = Delayed { authD = (,) <$> authD <*> new , serverD = \ c (y, v) b req -> ($ v) <$> serverD c y b req , .. }
252
addAuthCheck Delayed{..} new = Delayed { authD = (,) <$> authD <*> new , serverD = \ c (y, v) b req -> ($ v) <$> serverD c y b req , .. }
157
true
true
19
7
112
118
65
53
null
null
phadej/stack
src/Options/Applicative/Complicated.hs
bsd-3-clause
addCommand :: String -- ^ command string -> String -- ^ title of command -> String -- ^ footer of command help -> (a -> b) -- ^ constructor to wrap up command in common data type -> Parser c -- ^ common parser -> Parser a -- ^ command parser -> Eit...
461
addCommand :: String -- ^ command string -> String -- ^ title of command -> String -- ^ footer of command help -> (a -> b) -- ^ constructor to wrap up command in common data type -> Parser c -- ^ common parser -> Parser a -- ^ command parser -> Eit...
461
addCommand cmd title footerStr constr = addCommand' cmd title footerStr (\a c -> (constr a,c))
96
false
true
0
16
147
120
64
56
null
null
Teaspot-Studio/Urho3D-Haskell
src/Graphics/Urho3D/Graphics/IndexBuffer.hs
mit
indexBufferGetIndexCount :: (Parent IndexBuffer a, Pointer p a, MonadIO m) => p -- ^ Pointer to IndexBuffer or ascentor -> m Word indexBufferGetIndexCount p = liftIO $ do let ptr = parentPointer p fromIntegral <$> [C.exp| unsigned int {$(IndexBuffer* ptr)->GetIndexCount()} |] -- unsigned GetIndexCount() const {...
376
indexBufferGetIndexCount :: (Parent IndexBuffer a, Pointer p a, MonadIO m) => p -- ^ Pointer to IndexBuffer or ascentor -> m Word indexBufferGetIndexCount p = liftIO $ do let ptr = parentPointer p fromIntegral <$> [C.exp| unsigned int {$(IndexBuffer* ptr)->GetIndexCount()} |] -- unsigned GetIndexCount() const {...
376
indexBufferGetIndexCount p = liftIO $ do let ptr = parentPointer p fromIntegral <$> [C.exp| unsigned int {$(IndexBuffer* ptr)->GetIndexCount()} |] -- unsigned GetIndexCount() const { return indexCount_; } -- | Return index size in bytes.
242
false
true
0
11
64
79
41
38
null
null
tpsinnem/Idris-dev
src/IRTS/Bytecode.hs
bsd-3-clause
defaultAlt reg [] r = Nothing
29
defaultAlt reg [] r = Nothing
29
defaultAlt reg [] r = Nothing
29
false
false
0
5
5
17
7
10
null
null
kmels/dart-haskell
src/Language/Core/Util.hs
bsd-3-clause
showVdef :: (?tab_indentation :: Int) => Vdef -> String showVdef (Vdef (qvar@(mname,var),ty,exp)) = zDecodeQualified qvar ++ "::" ++ showType ty ++ " = " ++ showExp exp
258
showVdef :: (?tab_indentation :: Int) => Vdef -> String showVdef (Vdef (qvar@(mname,var),ty,exp)) = zDecodeQualified qvar ++ "::" ++ showType ty ++ " = " ++ showExp exp
258
showVdef (Vdef (qvar@(mname,var),ty,exp)) = zDecodeQualified qvar ++ "::" ++ showType ty ++ " = " ++ showExp exp
202
false
true
0
10
116
76
41
35
null
null
osa1/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
mapPTermFC f g (PElabError err) = PElabError err
48
mapPTermFC f g (PElabError err) = PElabError err
48
mapPTermFC f g (PElabError err) = PElabError err
48
false
false
0
7
7
23
10
13
null
null
hth313/hthforth
src/Translator/Expression.hs
bsd-2-clause
showExpr e@(Binary (op,_) e1 e2) (parentPrec, parentAssoc) side | prec > parentPrec = expression | prec == parentPrec, side == (Just assoc) = expression | otherwise = "(" ++ expression ++ ")" where pa@(prec, assoc) = precedence e expression = showExpr e1 pa (Just AssocLeft) ++ op ++ showExpr e2 pa (Just...
332
showExpr e@(Binary (op,_) e1 e2) (parentPrec, parentAssoc) side | prec > parentPrec = expression | prec == parentPrec, side == (Just assoc) = expression | otherwise = "(" ++ expression ++ ")" where pa@(prec, assoc) = precedence e expression = showExpr e1 pa (Just AssocLeft) ++ op ++ showExpr e2 pa (Just...
332
showExpr e@(Binary (op,_) e1 e2) (parentPrec, parentAssoc) side | prec > parentPrec = expression | prec == parentPrec, side == (Just assoc) = expression | otherwise = "(" ++ expression ++ ")" where pa@(prec, assoc) = precedence e expression = showExpr e1 pa (Just AssocLeft) ++ op ++ showExpr e2 pa (Just...
332
false
false
2
10
68
151
77
74
null
null
ndmitchell/shake
src/Development/Shake/Internal/FilePattern.hs
bsd-3-clause
isRelativePattern _ = False
27
isRelativePattern _ = False
27
isRelativePattern _ = False
27
false
false
0
5
3
9
4
5
null
null
Blaisorblade/pts
src-lib/PTS/Dynamics/Value.hs
bsd-3-clause
open :: Function m -> Value m -> m (Value m) open (MkFunction f) v = f v
72
open :: Function m -> Value m -> m (Value m) open (MkFunction f) v = f v
72
open (MkFunction f) v = f v
27
false
true
0
10
17
53
23
30
null
null
slon1024/functional_programming
haskell/List.hs
mit
(++) (x:xs) ys = x : xs ++ ys
29
(++) (x:xs) ys = x : xs ++ ys
29
(++) (x:xs) ys = x : xs ++ ys
29
false
false
3
6
8
33
15
18
null
null
vikikiss/cyoa
src/Cyoa/Engine.hs
bsd-3-clause
evalExpr (e :%: f) = mod <$> evalExpr e <*> evalExpr f
54
evalExpr (e :%: f) = mod <$> evalExpr e <*> evalExpr f
54
evalExpr (e :%: f) = mod <$> evalExpr e <*> evalExpr f
54
false
false
0
7
11
30
14
16
null
null
meiersi/scyther-proof
src/Scyther/Sequent.hs
gpl-3.0
-- | Split a splittable equality. -- splitting can be done. splitEq :: E.MsgEq -> Sequent -> [Maybe Sequent] splitEq eq se | eq `elem` splittableEqs prems = map (fmap updPrem) $ splitEqFacts eq prems | otherwise = error $ "splitEq: equality not present" where prems = sePrem se updPrem ...
347
splitEq :: E.MsgEq -> Sequent -> [Maybe Sequent] splitEq eq se | eq `elem` splittableEqs prems = map (fmap updPrem) $ splitEqFacts eq prems | otherwise = error $ "splitEq: equality not present" where prems = sePrem se updPrem prem' = se {sePrem = prem'}
287
splitEq eq se | eq `elem` splittableEqs prems = map (fmap updPrem) $ splitEqFacts eq prems | otherwise = error $ "splitEq: equality not present" where prems = sePrem se updPrem prem' = se {sePrem = prem'}
238
true
true
1
9
89
106
53
53
null
null
ezrakilty/narc
QCUtils.hs
bsd-2-clause
arbStringSized charGen = sized (\n -> arbStringLen charGen n)
61
arbStringSized charGen = sized (\n -> arbStringLen charGen n)
61
arbStringSized charGen = sized (\n -> arbStringLen charGen n)
61
false
false
0
8
8
25
12
13
null
null
DbIHbKA/vbpca
benchmark/BenchAll.hs
bsd-3-clause
main = defaultMain [ env (prepareData 100 3) $ \small -> bgroup "Small 100x3" [ bench "Fool" $ whnf (\(trainT,tau,mu,alpha,w,sigmaX) -> foolCalcMX trainT tau sigmaX w m...
1,121
main = defaultMain [ env (prepareData 100 3) $ \small -> bgroup "Small 100x3" [ bench "Fool" $ whnf (\(trainT,tau,mu,alpha,w,sigmaX) -> foolCalcMX trainT tau sigmaX w m...
1,121
main = defaultMain [ env (prepareData 100 3) $ \small -> bgroup "Small 100x3" [ bench "Fool" $ whnf (\(trainT,tau,mu,alpha,w,sigmaX) -> foolCalcMX trainT tau sigmaX w m...
1,121
false
false
0
15
672
273
148
125
null
null
Erdwolf/autotool-bonn
server/src/Service/GetServerInfo.hs
gpl-2.0
get_server_info :: IO (TT ServerInfo) get_server_info = return $ TT $ ServerInfo { protocol_version = protocolVersion, server_name = serverName, server_version = serverVersion }
190
get_server_info :: IO (TT ServerInfo) get_server_info = return $ TT $ ServerInfo { protocol_version = protocolVersion, server_name = serverName, server_version = serverVersion }
190
get_server_info = return $ TT $ ServerInfo { protocol_version = protocolVersion, server_name = serverName, server_version = serverVersion }
152
false
true
0
7
35
48
27
21
null
null
tweag/genders
src/Database/Genders.hs
mit
-- | The total number of attributes in the database. numAttributes :: DB -> Int numAttributes (DB fptr) = unsafePerformIO $ withHandle fptr $ \h -> fromIntegral <$> genders_getnumattrs h
190
numAttributes :: DB -> Int numAttributes (DB fptr) = unsafePerformIO $ withHandle fptr $ \h -> fromIntegral <$> genders_getnumattrs h
137
numAttributes (DB fptr) = unsafePerformIO $ withHandle fptr $ \h -> fromIntegral <$> genders_getnumattrs h
110
true
true
2
9
33
54
25
29
null
null
ben-schulz/Idris-dev
src/IRTS/DumpBC.hs
bsd-3-clause
serializeReg :: Reg -> String serializeReg (L n) = "L" ++ show n
64
serializeReg :: Reg -> String serializeReg (L n) = "L" ++ show n
64
serializeReg (L n) = "L" ++ show n
34
false
true
0
7
12
31
15
16
null
null
codemac/yi-editor
src/Yi/Search.hs
gpl-2.0
isearchFinishE :: EditorM () isearchFinishE = isearchEnd True
61
isearchFinishE :: EditorM () isearchFinishE = isearchEnd True
61
isearchFinishE = isearchEnd True
32
false
true
0
6
7
19
9
10
null
null
bgwines/filediff
src/Filediff/Types.hs
bsd-3-clause
isAdd (Add _) = True
20
isAdd (Add _) = True
20
isAdd (Add _) = True
20
false
false
0
7
4
15
7
8
null
null
nomeata/ghc
compiler/llvmGen/Llvm/Types.hs
bsd-3-clause
getStatType (LMStaticStr _ t) = t
35
getStatType (LMStaticStr _ t) = t
35
getStatType (LMStaticStr _ t) = t
35
false
false
0
7
7
17
8
9
null
null
bhamrick/fuzzygrep
Fuzzy.hs
mit
fuzzSingleAllNext factor offset key next = if offset == factor - 1 then IM.insert (factor * key + offset) (IS.map (\x -> factor * x + offset) next) . fuzzSingleAllNext factor (offset - 1) key next else IM.insert (factor * key + offset) (IS.map (\x -> factor * x + offset) next `IS.union` IS.map (\x -> factor * x...
389
fuzzSingleAllNext factor offset key next = if offset == factor - 1 then IM.insert (factor * key + offset) (IS.map (\x -> factor * x + offset) next) . fuzzSingleAllNext factor (offset - 1) key next else IM.insert (factor * key + offset) (IS.map (\x -> factor * x + offset) next `IS.union` IS.map (\x -> factor * x...
389
fuzzSingleAllNext factor offset key next = if offset == factor - 1 then IM.insert (factor * key + offset) (IS.map (\x -> factor * x + offset) next) . fuzzSingleAllNext factor (offset - 1) key next else IM.insert (factor * key + offset) (IS.map (\x -> factor * x + offset) next `IS.union` IS.map (\x -> factor * x...
389
false
false
0
15
79
194
101
93
null
null
wuerges/solutions_for_graph_problems
app/Prob1008.hs
bsd-3-clause
try :: V -> (V -> V) -> MST (Maybe V) try v d = do s <- get --if traceShow ("trying v", v) $ S.member (d v) s if S.member (d v) s then do put $ S.delete (d v) s return $ Just (d v) else return Nothing
298
try :: V -> (V -> V) -> MST (Maybe V) try v d = do s <- get --if traceShow ("trying v", v) $ S.member (d v) s if S.member (d v) s then do put $ S.delete (d v) s return $ Just (d v) else return Nothing
298
try v d = do s <- get --if traceShow ("trying v", v) $ S.member (d v) s if S.member (d v) s then do put $ S.delete (d v) s return $ Just (d v) else return Nothing
260
false
true
0
14
147
116
54
62
null
null
GaloisInc/saw-script
src/SAWScript/Builtins.hs
bsd-3-clause
wrapProver :: (Prop -> TopLevel (Maybe CEX, SolverStats)) -> ProofScript () wrapProver f = execTactic $ tacticSolve $ applyProverToGoal f
141
wrapProver :: (Prop -> TopLevel (Maybe CEX, SolverStats)) -> ProofScript () wrapProver f = execTactic $ tacticSolve $ applyProverToGoal f
141
wrapProver f = execTactic $ tacticSolve $ applyProverToGoal f
61
false
true
0
10
23
53
26
27
null
null
mettekou/ghc
libraries/ghci/GHCi/Run.hs
bsd-3-clause
getIdValFromApStack :: HValue -> Int -> IO (Maybe HValue) getIdValFromApStack apStack (I# stackDepth) = do case getApStackVal# apStack (stackDepth +# 1#) of -- The +1 is magic! I don't know where it comes -- from, but this makes things line up. --SDM ...
484
getIdValFromApStack :: HValue -> Int -> IO (Maybe HValue) getIdValFromApStack apStack (I# stackDepth) = do case getApStackVal# apStack (stackDepth +# 1#) of -- The +1 is magic! I don't know where it comes -- from, but this makes things line up. --SDM ...
484
getIdValFromApStack apStack (I# stackDepth) = do case getApStackVal# apStack (stackDepth +# 1#) of -- The +1 is magic! I don't know where it comes -- from, but this makes things line up. --SDM (# ok, result #) -> case ok of ...
426
false
true
0
17
181
106
53
53
null
null
batterseapower/chsc
Core/Syntax.hs
bsd-3-clause
-- NB: important for pushing down let-bound applications of ``error'' isCheap _ = False
97
isCheap _ = False
27
isCheap _ = False
27
true
false
0
4
23
11
5
6
null
null
didmar/helm
src/FRP/Helm/Color.hs
mit
{-| A purple color, combined from medium red and blue. -} purple :: Color purple = rgb 0.5 0 0.5
96
purple :: Color purple = rgb 0.5 0 0.5
38
purple = rgb 0.5 0 0.5
22
true
true
0
6
19
28
11
17
null
null
ublubu/wyascheme
src/Eval.hs
mit
eval env (List (Atom "define" : List (Atom var : params) : body)) = defineVar env var Func { _funcParams = fmap showVal params , _funcVararg = Nothing , _funcBody = body , _funcClosure = env }
269
eval env (List (Atom "define" : List (Atom var : params) : body)) = defineVar env var Func { _funcParams = fmap showVal params , _funcVararg = Nothing , _funcBody = body , _funcClosure = env }
269
eval env (List (Atom "define" : List (Atom var : params) : body)) = defineVar env var Func { _funcParams = fmap showVal params , _funcVararg = Nothing , _funcBody = body , _funcClosure = env }
269
false
false
0
13
113
86
43
43
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/XPathResult.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/XPathResult.stringValue Mozilla XPathResult.stringValue documentation> getStringValue :: (MonadDOM m, FromJSString result) => XPathResult -> m result getStringValue self = liftDOM ((self ^. js "stringValue") >>= fromJSValUnchecked)
304
getStringValue :: (MonadDOM m, FromJSString result) => XPathResult -> m result getStringValue self = liftDOM ((self ^. js "stringValue") >>= fromJSValUnchecked)
177
getStringValue self = liftDOM ((self ^. js "stringValue") >>= fromJSValUnchecked)
83
true
true
0
10
44
57
29
28
null
null
kenta2/retrograde
Chess.hs
agpl-3.0
n_chunk :: Integer -> [a] -> [[a]]; n_chunk i = unfoldr (\l -> if null l then Nothing else Just (genericSplitAt i l))
117
n_chunk :: Integer -> [a] -> [[a]] n_chunk i = unfoldr (\l -> if null l then Nothing else Just (genericSplitAt i l))
116
n_chunk i = unfoldr (\l -> if null l then Nothing else Just (genericSplitAt i l))
81
false
true
0
11
22
65
35
30
null
null
ancientlanguage/haskell-analysis
prepare/src/Prepare/Decompose.hs
mit
decomposeChar '\x2F974' = "\x4359"
34
decomposeChar '\x2F974' = "\x4359"
34
decomposeChar '\x2F974' = "\x4359"
34
false
false
1
5
3
13
4
9
null
null
deadfoxygrandpa/ElmEditorInfo
ParseTypes.hs
mit
-- Parsing stuff parseName :: Parser Name parseName = do name <- many $ noneOf " " many1 space char ':' return name
133
parseName :: Parser Name parseName = do name <- many $ noneOf " " many1 space char ':' return name
115
parseName = do name <- many $ noneOf " " many1 space char ':' return name
90
true
true
0
9
40
47
20
27
null
null
uduki/hsQt
Qtc/Gui/QSortFilterProxyModel.hs
bsd-2-clause
filterKeyColumn :: QSortFilterProxyModel a -> (()) -> IO (Int) filterKeyColumn x0 () = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QSortFilterProxyModel_filterKeyColumn cobj_x0
193
filterKeyColumn :: QSortFilterProxyModel a -> (()) -> IO (Int) filterKeyColumn x0 () = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QSortFilterProxyModel_filterKeyColumn cobj_x0
193
filterKeyColumn x0 () = withIntResult $ withObjectPtr x0 $ \cobj_x0 -> qtc_QSortFilterProxyModel_filterKeyColumn cobj_x0
130
false
true
4
9
31
65
30
35
null
null
onponomarev/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
lockAttemptsMinwait :: Double lockAttemptsMinwait = 5.0
55
lockAttemptsMinwait :: Double lockAttemptsMinwait = 5.0
55
lockAttemptsMinwait = 5.0
25
false
true
0
6
5
18
7
11
null
null
urbanslug/ghc
testsuite/tests/perf/compiler/T783.hs
bsd-3-clause
foo x | x == 61 = 61
20
foo x | x == 61 = 61
20
foo x | x == 61 = 61
20
false
false
0
8
7
23
9
14
null
null
NCrashed/bmstu-aivika-tutorial-01
src/Parser.hs
bsd-3-clause
inputParser :: TokenParser () -> Parser [Input] inputParser TokenParser{..} = do whiteSpace many $ lexeme parseExperiment where parseExperiment = do void $ symbol "experiment" between (symbol "{") (symbol "}") $ Input <$> (symbol "input" >> parseDisrt) <*> many (try parseSystem) ...
1,913
inputParser :: TokenParser () -> Parser [Input] inputParser TokenParser{..} = do whiteSpace many $ lexeme parseExperiment where parseExperiment = do void $ symbol "experiment" between (symbol "{") (symbol "}") $ Input <$> (symbol "input" >> parseDisrt) <*> many (try parseSystem) ...
1,913
inputParser TokenParser{..} = do whiteSpace many $ lexeme parseExperiment where parseExperiment = do void $ symbol "experiment" between (symbol "{") (symbol "}") $ Input <$> (symbol "input" >> parseDisrt) <*> many (try parseSystem) <*> parseSimulationTime <*> (fro...
1,865
false
true
69
18
588
589
302
287
null
null
mlite/hLLVM
src/LlvmTest.hs
bsd-3-clause
openFileOrStdout (Just x) = openFile x WriteMode
48
openFileOrStdout (Just x) = openFile x WriteMode
48
openFileOrStdout (Just x) = openFile x WriteMode
48
false
false
0
6
6
21
9
12
null
null
cabrera/ghc-mod
Language/Haskell/GhcMod/DynFlags.hs
bsd-3-clause
-- | Enable hiding of all package not explicitly exposed (like Cabal does) setHideAllPackages :: Build -> DynFlags -> DynFlags setHideAllPackages CabalPkg df = Gap.setHideAllPackages df
185
setHideAllPackages :: Build -> DynFlags -> DynFlags setHideAllPackages CabalPkg df = Gap.setHideAllPackages df
110
setHideAllPackages CabalPkg df = Gap.setHideAllPackages df
58
true
true
0
6
25
30
15
15
null
null
Thhethssmuz/ppp
src/Filter/Float.hs
mit
blockWidth _ = Nothing
22
blockWidth _ = Nothing
22
blockWidth _ = Nothing
22
false
false
0
4
3
10
4
6
null
null
jayflo/hscheme
src/h99/Lists.hs
gpl-2.0
-- P10, P11 encode :: (Eq a) => [a] -> [(a,Int)] encode = fmap (head &&& P.length) . pack
89
encode :: (Eq a) => [a] -> [(a,Int)] encode = fmap (head &&& P.length) . pack
77
encode = fmap (head &&& P.length) . pack
40
true
true
0
9
18
53
30
23
null
null
M42/mikrokosmos
source/NamedLambda.hs
gpl-3.0
namesUnit :: [String] namesUnit = ["★", "UNIT"]
47
namesUnit :: [String] namesUnit = ["★", "UNIT"]
47
namesUnit = ["★", "UNIT"]
25
false
true
0
7
6
27
13
14
null
null
unisonweb/platform
codebase2/util/U/Util/Cache.hs
mit
-- Create a cache of bounded size. Once the cache -- reaches a size of `maxSize`, older unused entries -- are evicted from the cache. Unlike LRU caching, -- where cache hits require updating LRU info, -- cache hits here are read-only and contention free. semispaceCache :: (MonadIO m, Ord k) => Word -> m (Cache k v) sem...
350
semispaceCache :: (MonadIO m, Ord k) => Word -> m (Cache k v) semispaceCache 0 = pure nullCache
95
semispaceCache 0 = pure nullCache
33
true
true
0
9
62
52
28
24
null
null
martin-kolinek/stack
src/Stack/Build/Cache.hs
bsd-3-clause
-------------------------------------- -- Precompiled Cache -- -- Idea is simple: cache information about packages built in other snapshots, -- and then for identical matches (same flags, config options, dependencies) -- just copy over the executables and reregister the libraries. --------------------------------------...
2,560
precompiledCacheFile :: (MonadThrow m, MonadReader env m, HasEnvConfig env, MonadLogger m) => PackageIdentifier -> ConfigureOpts -> Set GhcPkgId -- ^ dependencies -> m (Path Abs File, m (Path Abs File)) precompiledCacheFile pkgident cop...
1,779
precompiledCacheFile pkgident copts installedPackageIDs = do ec <- view envConfigL compiler <- view actualCompilerVersionL >>= parseRelDir . compilerVersionString cabal <- view cabalVersionL >>= parseRelDir . versionString pkg <- parseRelDir $ packageIdentifierString pkgident platformRelDir <- plat...
1,492
true
true
0
20
640
385
192
193
null
null
haskoin/haskoin
test/Haskoin/Keys/MnemonicSpec.hs
unlicense
seeds :: [Text] seeds = [ "c55257c360c07c72029aebc1b53c05ed0362ada38ead3e3e9efa3708e53495531f09a69\ \87599d18264c1e1c92f2cf141630c7a3c4ab7c81b2f001698e7463b04" , "2e8905819b8723fe2c1d161860e5ee1830318dbf49a83bd451cfb8440c28bd6fa457fe1\ \296106559a3c80937a1c1069be3a3a5bd381ee6260e8d9739fce1f607" ...
3,533
seeds :: [Text] seeds = [ "c55257c360c07c72029aebc1b53c05ed0362ada38ead3e3e9efa3708e53495531f09a69\ \87599d18264c1e1c92f2cf141630c7a3c4ab7c81b2f001698e7463b04" , "2e8905819b8723fe2c1d161860e5ee1830318dbf49a83bd451cfb8440c28bd6fa457fe1\ \296106559a3c80937a1c1069be3a3a5bd381ee6260e8d9739fce1f607" ...
3,533
seeds = [ "c55257c360c07c72029aebc1b53c05ed0362ada38ead3e3e9efa3708e53495531f09a69\ \87599d18264c1e1c92f2cf141630c7a3c4ab7c81b2f001698e7463b04" , "2e8905819b8723fe2c1d161860e5ee1830318dbf49a83bd451cfb8440c28bd6fa457fe1\ \296106559a3c80937a1c1069be3a3a5bd381ee6260e8d9739fce1f607" , "d71de856f81a8...
3,517
false
true
0
7
321
93
57
36
null
null
Zigazou/Sonnex
test/test-sonnex.hs
gpl-3.0
allTheSame :: (Eq a) => [a] -> Bool allTheSame xs = all (== head xs) (tail xs)
78
allTheSame :: (Eq a) => [a] -> Bool allTheSame xs = all (== head xs) (tail xs)
78
allTheSame xs = all (== head xs) (tail xs)
42
false
true
0
8
16
54
26
28
null
null
music-suite/music-score
src/Music/Score/Phrases.hs
bsd-3-clause
-- TODO meta -- | -- View an 'MVoice' as a 'PVoice' and vice versa. -- -- This a valid 'Iso' up to meta-data equivalence. -- unsafeMVoicePVoice :: Iso (MVoice a) (MVoice b) (PVoice a) (PVoice b) unsafeMVoicePVoice = iso mvoiceToPVoice pVoiceToMVoice where mvoiceToPVoice :: MVoice a -> PVoice a mvoiceToPVoice...
1,009
unsafeMVoicePVoice :: Iso (MVoice a) (MVoice b) (PVoice a) (PVoice b) unsafeMVoicePVoice = iso mvoiceToPVoice pVoiceToMVoice where mvoiceToPVoice :: MVoice a -> PVoice a mvoiceToPVoice = map ( bimap voiceToRest voiceToPhrase . bimap (^.from unsafePairs) (^.from unsafePairs) ) . groupDif...
883
unsafeMVoicePVoice = iso mvoiceToPVoice pVoiceToMVoice where mvoiceToPVoice :: MVoice a -> PVoice a mvoiceToPVoice = map ( bimap voiceToRest voiceToPhrase . bimap (^.from unsafePairs) (^.from unsafePairs) ) . groupDiff' (isJust . snd) . view pairs voiceToRest :: MVoice a -> ...
813
true
true
3
11
240
337
158
179
null
null
iljakuklic/eel-proto
src/Backend/Emit.hs
bsd-3-clause
compar ty iname = do y <- pop ty "y"; x <- pop ty "x" eq <- instr llBool "eq" (iname ++ " eq #, " ++ llVarName y) [x] eqi <- instr llInt "eqi" "zext # to #" [llVarDoc eq, llTypeDoc llInt] ge <- instr llBool "ge" (iname ++ " sge #, " ++ llVarName y) [x] gei <- instr llInt "gei" "zext # to #" [...
438
compar ty iname = do y <- pop ty "y"; x <- pop ty "x" eq <- instr llBool "eq" (iname ++ " eq #, " ++ llVarName y) [x] eqi <- instr llInt "eqi" "zext # to #" [llVarDoc eq, llTypeDoc llInt] ge <- instr llBool "ge" (iname ++ " sge #, " ++ llVarName y) [x] gei <- instr llInt "gei" "zext # to #" [...
438
compar ty iname = do y <- pop ty "y"; x <- pop ty "x" eq <- instr llBool "eq" (iname ++ " eq #, " ++ llVarName y) [x] eqi <- instr llInt "eqi" "zext # to #" [llVarDoc eq, llTypeDoc llInt] ge <- instr llBool "ge" (iname ++ " sge #, " ++ llVarName y) [x] gei <- instr llInt "gei" "zext # to #" [...
438
false
false
0
11
119
194
90
104
null
null
nfjinjing/yuuko
src/Text/HTML/TagSoup/Match.hs
bsd-3-clause
-- | Check if the 'Tag str' is 'TagClose' and matches the given name tagCloseNameLit :: Eq str => str -> Tag str -> Bool tagCloseNameLit name = tagCloseLit name
160
tagCloseNameLit :: Eq str => str -> Tag str -> Bool tagCloseNameLit name = tagCloseLit name
91
tagCloseNameLit name = tagCloseLit name
39
true
true
0
8
29
36
17
19
null
null
brendanhay/gogol
gogol-healthcare/gen/Network/Google/Healthcare/Types/Product.hs
mpl-2.0
-- | Creates a value of 'SignatureMetadata' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'smAddtional' signatureMetadata :: HashMap Text Text -- ^ 'smAddtional' -> SignatureMetadata signatureMetadata pSmAddtional_ = Signat...
373
signatureMetadata :: HashMap Text Text -- ^ 'smAddtional' -> SignatureMetadata signatureMetadata pSmAddtional_ = SignatureMetadata' {_smAddtional = _Coerce # pSmAddtional_}
182
signatureMetadata pSmAddtional_ = SignatureMetadata' {_smAddtional = _Coerce # pSmAddtional_}
95
true
true
0
8
62
50
26
24
null
null
snoyberg/ghc
compiler/hsSyn/HsExpr.hs
bsd-3-clause
ppr_expr :: forall id. (OutputableBndrId id) => HsExpr id -> SDoc ppr_expr (HsVar (L _ v)) = pprPrefixOcc v
108
ppr_expr :: forall id. (OutputableBndrId id) => HsExpr id -> SDoc ppr_expr (HsVar (L _ v)) = pprPrefixOcc v
108
ppr_expr (HsVar (L _ v)) = pprPrefixOcc v
42
false
true
0
8
19
56
27
29
null
null
sleepomeno/TForth
src/TF/StackEffectParser.hs
apache-2.0
alternativeTypes :: ParseStackEffectsM [ParseStackEffectsM [IndexedStackType]] alternativeTypes = do singleTypes' <- singleTypes return $ (`map` singleTypes') $ \firstTypeParser -> try $ do firstType <- firstTypeParser alternativeType <- option [] $ P.char '|' *> ...
418
alternativeTypes :: ParseStackEffectsM [ParseStackEffectsM [IndexedStackType]] alternativeTypes = do singleTypes' <- singleTypes return $ (`map` singleTypes') $ \firstTypeParser -> try $ do firstType <- firstTypeParser alternativeType <- option [] $ P.char '|' *> ...
418
alternativeTypes = do singleTypes' <- singleTypes return $ (`map` singleTypes') $ \firstTypeParser -> try $ do firstType <- firstTypeParser alternativeType <- option [] $ P.char '|' *> fmap (:[]) (choice singleTypes') atLeastOneSpace return $ firstTyp...
339
false
true
0
16
110
119
59
60
null
null
chreekat/snowdrift
Model/Comment.hs
agpl-3.0
-------------------------------------------------------------------------------- -- Database actions approveCommentDB :: UserId -> CommentId -> Comment -> SDB () approveCommentDB user_id comment_id comment = do now <- liftIO getCurrentTime -- Do an in-memory adjustment of the comment with exactly the same cha...
1,581
approveCommentDB :: UserId -> CommentId -> Comment -> SDB () approveCommentDB user_id comment_id comment = do now <- liftIO getCurrentTime -- Do an in-memory adjustment of the comment with exactly the same changes -- as 'upd' below (so we can avoid hitting the database). let updated_comment = comment ...
1,478
approveCommentDB user_id comment_id comment = do now <- liftIO getCurrentTime -- Do an in-memory adjustment of the comment with exactly the same changes -- as 'upd' below (so we can avoid hitting the database). let updated_comment = comment { commentApprovedTs = Just now , commentApp...
1,417
true
true
3
15
424
293
139
154
null
null
haskellGardener/transient
src/Transient/EVars.hs
gpl-3.0
writeEVar (EVar id ref1) x= Transient $ do EVars ref <- getSessionData `onNothing` error "No Events context" liftIO $ writeIORef ref1 $ Just x map <- liftIO $ readIORef ref let Just conts = M.lookup id map <|> Just [] len= length conts runCont' len id ref liftIO $ writeIORef ref1 Nothing re...
882
writeEVar (EVar id ref1) x= Transient $ do EVars ref <- getSessionData `onNothing` error "No Events context" liftIO $ writeIORef ref1 $ Just x map <- liftIO $ readIORef ref let Just conts = M.lookup id map <|> Just [] len= length conts runCont' len id ref liftIO $ writeIORef ref1 Nothing re...
882
writeEVar (EVar id ref1) x= Transient $ do EVars ref <- getSessionData `onNothing` error "No Events context" liftIO $ writeIORef ref1 $ Just x map <- liftIO $ readIORef ref let Just conts = M.lookup id map <|> Just [] len= length conts runCont' len id ref liftIO $ writeIORef ref1 Nothing re...
882
false
false
0
13
256
365
163
202
null
null
beni55/snap-server
test/suite/Snap/Internal/Http/Server/Tests.hs
bsd-3-clause
testPartialParse :: Test testPartialParse = testCase "server/short" $ do step <- runIteratee $ liftM fromJust $ rsm $ receiveRequest dummyIter let iter = enumBS sampleShortRequest step expectException $ run_ iter
225
testPartialParse :: Test testPartialParse = testCase "server/short" $ do step <- runIteratee $ liftM fromJust $ rsm $ receiveRequest dummyIter let iter = enumBS sampleShortRequest step expectException $ run_ iter
225
testPartialParse = testCase "server/short" $ do step <- runIteratee $ liftM fromJust $ rsm $ receiveRequest dummyIter let iter = enumBS sampleShortRequest step expectException $ run_ iter
200
false
true
0
12
42
67
30
37
null
null
mmwtsn/write-yourself-a-scheme
04-error-checking-and-exceptions/01-error-checking.hs
mit
showVal (DottedList head tail) = "(" ++ unwordsList head ++ " . " ++ showVal tail ++ ")"
88
showVal (DottedList head tail) = "(" ++ unwordsList head ++ " . " ++ showVal tail ++ ")"
88
showVal (DottedList head tail) = "(" ++ unwordsList head ++ " . " ++ showVal tail ++ ")"
88
false
false
0
9
17
40
18
22
null
null
shlevy/ghc
compiler/basicTypes/Literal.hs
bsd-3-clause
int2CharLit l = pprPanic "int2CharLit" (ppr l)
57
int2CharLit l = pprPanic "int2CharLit" (ppr l)
57
int2CharLit l = pprPanic "int2CharLit" (ppr l)
57
false
false
0
7
17
20
9
11
null
null
andorp/hs-bluesnap
src/Bluesnap/API/Request.hs
gpl-3.0
elementSku_custom_parameters :: XMLParser Sku_custom_parameters elementSku_custom_parameters = parseSchemaType "sku-custom-parameters"
134
elementSku_custom_parameters :: XMLParser Sku_custom_parameters elementSku_custom_parameters = parseSchemaType "sku-custom-parameters"
134
elementSku_custom_parameters = parseSchemaType "sku-custom-parameters"
70
false
true
0
5
7
17
8
9
null
null
thomie/vector
tests/Tests/Vector.hs
bsd-3-clause
testNumericPrimitiveVector :: forall a. (COMMON_CONTEXT(a, Data.Vector.Primitive.Vector), Data.Vector.Primitive.Prim a, Ord a, Num a, Enum a, Random a) => Data.Vector.Primitive.Vector a -> [Test] testNumericPrimitiveVector dummy = concatMap ($ dummy) [ testGeneralPrimitiveVector , testNumFunctions , testEnumFunct...
327
testNumericPrimitiveVector :: forall a. (COMMON_CONTEXT(a, Data.Vector.Primitive.Vector), Data.Vector.Primitive.Prim a, Ord a, Num a, Enum a, Random a) => Data.Vector.Primitive.Vector a -> [Test] testNumericPrimitiveVector dummy = concatMap ($ dummy) [ testGeneralPrimitiveVector , testNumFunctions , testEnumFunct...
327
testNumericPrimitiveVector dummy = concatMap ($ dummy) [ testGeneralPrimitiveVector , testNumFunctions , testEnumFunctions ]
131
false
true
0
9
40
105
59
46
null
null
CIFASIS/wavy
Sound/Wav/ChannelData.hs
bsd-3-clause
intToFloat :: Int64 -> Double intToFloat x = fromIntegral x / fromIntegral (maxBound :: Int64)
94
intToFloat :: Int64 -> Double intToFloat x = fromIntegral x / fromIntegral (maxBound :: Int64)
94
intToFloat x = fromIntegral x / fromIntegral (maxBound :: Int64)
64
false
true
2
7
14
40
18
22
null
null
phadej/stack
src/Stack/Upload.hs
bsd-3-clause
-- | How to get an HTTP connection manager. -- -- Default: @newManager tlsManagerSettings@ -- -- Since 0.1.0.0 setGetManager :: IO Manager -> UploadSettings -> UploadSettings setGetManager x us = us { usGetManager = x }
219
setGetManager :: IO Manager -> UploadSettings -> UploadSettings setGetManager x us = us { usGetManager = x }
108
setGetManager x us = us { usGetManager = x }
44
true
true
0
8
35
49
25
24
null
null
acowley/ghc
compiler/hsSyn/HsBinds.hs
bsd-3-clause
isEmptyLocalBinds :: HsLocalBindsLR a b -> Bool isEmptyLocalBinds (HsValBinds ds) = isEmptyValBinds ds
102
isEmptyLocalBinds :: HsLocalBindsLR a b -> Bool isEmptyLocalBinds (HsValBinds ds) = isEmptyValBinds ds
102
isEmptyLocalBinds (HsValBinds ds) = isEmptyValBinds ds
54
false
true
0
7
12
32
15
17
null
null
futufeld/eclogues
eclogues-impl/app/api/Eclogues/Scheduling/Run.hs
bsd-3-clause
runScheduleCommand :: ScheduleConf -> ScheduleCommand -> ExceptT A.UnexpectedResponse IO () runScheduleCommand conf (QueueJob spec uuid) = do let dir = jobDir conf $ spec ^. Job.name subspec = spec & Job.command .~ "eclogues-subexecutor " <> Job.nameText (spec ^. Job.name) & Job.name ...
623
runScheduleCommand :: ScheduleConf -> ScheduleCommand -> ExceptT A.UnexpectedResponse IO () runScheduleCommand conf (QueueJob spec uuid) = do let dir = jobDir conf $ spec ^. Job.name subspec = spec & Job.command .~ "eclogues-subexecutor " <> Job.nameText (spec ^. Job.name) & Job.name ...
623
runScheduleCommand conf (QueueJob spec uuid) = do let dir = jobDir conf $ spec ^. Job.name subspec = spec & Job.command .~ "eclogues-subexecutor " <> Job.nameText (spec ^. Job.name) & Job.name .~ Job.uuidName uuid lift $ do createDirectoryIfMissing False dir cre...
531
false
true
0
16
149
208
97
111
null
null
meiersi/bytestring
Data/ByteString.hs
bsd-3-clause
intercalate :: ByteString -> [ByteString] -> ByteString intercalate s = concat . (List.intersperse s)
101
intercalate :: ByteString -> [ByteString] -> ByteString intercalate s = concat . (List.intersperse s)
101
intercalate s = concat . (List.intersperse s)
45
false
true
0
9
13
43
20
23
null
null
kojiromike/Idris-dev
src/IRTS/Lang.hs
bsd-3-clause
-- Lifting happens before these can exist... lift env (LApp tc (LV n) args) = do args' <- mapM (lift env) args return (LApp tc (LV n) args')
176
lift env (LApp tc (LV n) args) = do args' <- mapM (lift env) args return (LApp tc (LV n) args')
131
lift env (LApp tc (LV n) args) = do args' <- mapM (lift env) args return (LApp tc (LV n) args')
131
true
false
0
11
63
70
32
38
null
null
edom/sound
src/Sound/ExampleFail.hs
bsd-3-clause
main :: IO () main = putStrLn "Hello."
38
main :: IO () main = putStrLn "Hello."
38
main = putStrLn "Hello."
24
false
true
1
6
7
22
9
13
null
null
nushio3/ghc
compiler/typecheck/TcType.hs
bsd-3-clause
legalFEArgTyCon :: TyCon -> Validity legalFEArgTyCon tc -- It's illegal to make foreign exports that take unboxed -- arguments. The RTS API currently can't invoke such things. --SDM 7/2000 = boxedMarshalableTyCon tc
223
legalFEArgTyCon :: TyCon -> Validity legalFEArgTyCon tc -- It's illegal to make foreign exports that take unboxed -- arguments. The RTS API currently can't invoke such things. --SDM 7/2000 = boxedMarshalableTyCon tc
223
legalFEArgTyCon tc -- It's illegal to make foreign exports that take unboxed -- arguments. The RTS API currently can't invoke such things. --SDM 7/2000 = boxedMarshalableTyCon tc
186
false
true
0
7
39
28
13
15
null
null
anchor/oauth2-server
test/tokenstore.hs
bsd-3-clause
alphabet :: Gen Char alphabet = elements ['a'..'z']
51
alphabet :: Gen Char alphabet = elements ['a'..'z']
51
alphabet = elements ['a'..'z']
30
false
true
0
6
7
22
11
11
null
null
csrhodes/pandoc
src/Text/Pandoc/Readers/LaTeX.hs
gpl-2.0
macron 'O' = "Ō"
16
macron 'O' = "Ō"
16
macron 'O' = "Ō"
16
false
false
1
5
3
13
4
9
null
null
Haskell-Praxis/core-catcher
src/TH/MonoFunctions.hs
mit
emptyDerive :: Name -> Name-> DecsQ emptyDerive typeclass name = do let instanceType = AppT (ConT typeclass) (ConT name) return [InstanceD Nothing [] instanceType [] ]
185
emptyDerive :: Name -> Name-> DecsQ emptyDerive typeclass name = do let instanceType = AppT (ConT typeclass) (ConT name) return [InstanceD Nothing [] instanceType [] ]
185
emptyDerive typeclass name = do let instanceType = AppT (ConT typeclass) (ConT name) return [InstanceD Nothing [] instanceType [] ]
149
false
true
0
12
43
72
34
38
null
null
UweSchmidt/ppl2
src/PPL2/CodeGen/Builder.hs
mit
gStore :: Address -> Code gStore = gi . Store
45
gStore :: Address -> Code gStore = gi . Store
45
gStore = gi . Store
19
false
true
1
7
9
27
11
16
null
null
oldmanmike/ghc
compiler/main/DynFlags.hs
bsd-3-clause
sepArg :: (String -> DynFlags -> DynFlags) -> OptKind (CmdLineP DynFlags) sepArg fn = SepArg (upd . fn)
103
sepArg :: (String -> DynFlags -> DynFlags) -> OptKind (CmdLineP DynFlags) sepArg fn = SepArg (upd . fn)
103
sepArg fn = SepArg (upd . fn)
29
false
true
0
9
17
53
25
28
null
null
fmapfmapfmap/amazonka
amazonka-cloudfront/test/Test/AWS/Gen/CloudFront.hs
mpl-2.0
testGetCloudFrontOriginAccessIdentity :: GetCloudFrontOriginAccessIdentity -> TestTree testGetCloudFrontOriginAccessIdentity = req "GetCloudFrontOriginAccessIdentity" "fixture/GetCloudFrontOriginAccessIdentity.yaml"
223
testGetCloudFrontOriginAccessIdentity :: GetCloudFrontOriginAccessIdentity -> TestTree testGetCloudFrontOriginAccessIdentity = req "GetCloudFrontOriginAccessIdentity" "fixture/GetCloudFrontOriginAccessIdentity.yaml"
223
testGetCloudFrontOriginAccessIdentity = req "GetCloudFrontOriginAccessIdentity" "fixture/GetCloudFrontOriginAccessIdentity.yaml"
136
false
true
0
5
17
21
10
11
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/HTMLTableRowElement.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement.vAlign Mozilla HTMLTableRowElement.vAlign documentation> setVAlign :: (MonadDOM m, ToJSString val) => HTMLTableRowElement -> val -> m () setVAlign self val = liftDOM (self ^. jss "vAlign" (toJSVal val))
288
setVAlign :: (MonadDOM m, ToJSString val) => HTMLTableRowElement -> val -> m () setVAlign self val = liftDOM (self ^. jss "vAlign" (toJSVal val))
155
setVAlign self val = liftDOM (self ^. jss "vAlign" (toJSVal val))
65
true
true
0
10
40
66
33
33
null
null
tebello-thejane/creis
src/Main.hs
bsd-2-clause
entries :: [[Text]] entries = unsafePerformIO $ do content <- readFile "Tswana.Creissels1996.txt" return . map (map Text.pack . splitOn "\t") . tail . lines $ content
170
entries :: [[Text]] entries = unsafePerformIO $ do content <- readFile "Tswana.Creissels1996.txt" return . map (map Text.pack . splitOn "\t") . tail . lines $ content
170
entries = unsafePerformIO $ do content <- readFile "Tswana.Creissels1996.txt" return . map (map Text.pack . splitOn "\t") . tail . lines $ content
150
false
true
0
16
29
68
33
35
null
null
phadej/stack
src/Stack/Solver.hs
bsd-3-clause
setupCabalEnv :: ( MonadBaseControl IO m, MonadIO m, MonadLogger m, MonadMask m , MonadReader env m, HasConfig env , HasGHCVariant env , HasHttpManager env , HasLogLevel env , HasReExec env , HasTerminal env) => CompilerVersion -> m EnvOverride setupCabalEnv compiler = do mpaths <- ...
1,229
setupCabalEnv :: ( MonadBaseControl IO m, MonadIO m, MonadLogger m, MonadMask m , MonadReader env m, HasConfig env , HasGHCVariant env , HasHttpManager env , HasLogLevel env , HasReExec env , HasTerminal env) => CompilerVersion -> m EnvOverride setupCabalEnv compiler = do mpaths <- ...
1,229
setupCabalEnv compiler = do mpaths <- setupCompiler compiler menv0 <- getMinimalEnvOverride envMap <- removeHaskellEnvVars <$> augmentPathMap (maybe [] edBins mpaths) (unEnvOverride menv0) platform <- asks getPlatform menv <- mkEnvOverride platform envM...
951
false
true
0
12
344
279
130
149
null
null
Lythimus/lptv
sites/all/modules/jgm-pandoc-8be6cc2/src/Text/Pandoc/Writers/Docbook.hs
gpl-2.0
-- | Convert a list of Pandoc blocks to Docbook. blocksToDocbook :: WriterOptions -> [Block] -> Doc blocksToDocbook opts = vcat . map (blockToDocbook opts)
155
blocksToDocbook :: WriterOptions -> [Block] -> Doc blocksToDocbook opts = vcat . map (blockToDocbook opts)
106
blocksToDocbook opts = vcat . map (blockToDocbook opts)
55
true
true
1
8
24
46
21
25
null
null
rueshyna/gogol
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs
mpl-2.0
-- | Name of the dimension mainly for debugging purposes, except for the case -- of CREATIVE_SIZE. For CREATIVE_SIZE, strings are used instead of ids. ddvName :: Lens' DimensionDimensionValue (Maybe Text) ddvName = lens _ddvName (\ s a -> s{_ddvName = a})
255
ddvName :: Lens' DimensionDimensionValue (Maybe Text) ddvName = lens _ddvName (\ s a -> s{_ddvName = a})
104
ddvName = lens _ddvName (\ s a -> s{_ddvName = a})
50
true
true
1
9
41
52
26
26
null
null
strager/b-shake
B/Shake/Derived.hs
bsd-3-clause
checkExitCode cmd (ExitFailure i) = error $ "System command failed (code " ++ show i ++ "):\n" ++ cmd
101
checkExitCode cmd (ExitFailure i) = error $ "System command failed (code " ++ show i ++ "):\n" ++ cmd
101
checkExitCode cmd (ExitFailure i) = error $ "System command failed (code " ++ show i ++ "):\n" ++ cmd
101
false
false
0
8
18
36
17
19
null
null
hferreiro/replay
compiler/nativeGen/X86/Ppr.hs
bsd-3-clause
pprSectionHeader :: Section -> SDoc pprSectionHeader seg = sdocWithPlatform $ \platform -> case platformOS platform of OSDarwin | target32Bit platform -> case seg of Text -> ptext (sLit ".text\n\t.align 2") Data -> ptext (sLit ".data\n\t.alig...
2,460
pprSectionHeader :: Section -> SDoc pprSectionHeader seg = sdocWithPlatform $ \platform -> case platformOS platform of OSDarwin | target32Bit platform -> case seg of Text -> ptext (sLit ".text\n\t.align 2") Data -> ptext (sLit ".data\n\t.alig...
2,460
pprSectionHeader seg = sdocWithPlatform $ \platform -> case platformOS platform of OSDarwin | target32Bit platform -> case seg of Text -> ptext (sLit ".text\n\t.align 2") Data -> ptext (sLit ".data\n\t.align 2") ReadOnlyData ...
2,424
false
true
0
16
877
506
233
273
null
null
beni55/ghcjs
src-bin/Haddock.hs
mit
main :: IO () main = do args <- Info.getFullArguments -- adds wrapper arguments for Windows haddockWithGhc withGhcjs args
125
main :: IO () main = do args <- Info.getFullArguments -- adds wrapper arguments for Windows haddockWithGhc withGhcjs args
125
main = do args <- Info.getFullArguments -- adds wrapper arguments for Windows haddockWithGhc withGhcjs args
111
false
true
1
9
22
38
16
22
null
null
maarons/Cortex
Utils/autobuild.hs
agpl-3.0
wait :: Double -> IO () wait t = threadDelay $ round $ (10 ** 6) * t
68
wait :: Double -> IO () wait t = threadDelay $ round $ (10 ** 6) * t
68
wait t = threadDelay $ round $ (10 ** 6) * t
44
false
true
0
8
17
42
21
21
null
null
Ian-Stewart-Binks/courseography
dependencies/HaXml-1.25.3/src/Text/XML/HaXml/OneOfN.hs
gpl-3.0
foldOneOf18 a b c d e f g h i j k l m n o p q r (FourOf18 z) = d z
66
foldOneOf18 a b c d e f g h i j k l m n o p q r (FourOf18 z) = d z
66
foldOneOf18 a b c d e f g h i j k l m n o p q r (FourOf18 z) = d z
66
false
false
0
7
23
54
26
28
null
null
ivanperez-keera/SoOSiM-ui
src/Config/Preferences.hs
bsd-3-clause
stdZoomStep :: Float stdZoomStep = 0.8
38
stdZoomStep :: Float stdZoomStep = 0.8
38
stdZoomStep = 0.8
17
false
true
0
4
5
11
6
5
null
null
xie-dongping/modelicaparser
src/Language/Modelica/Syntax/ToString.hs
bsd-3-clause
toSemiList xs = List.intercalate "; " (map toString xs) ++ ";"
64
toSemiList xs = List.intercalate "; " (map toString xs) ++ ";"
64
toSemiList xs = List.intercalate "; " (map toString xs) ++ ";"
64
false
false
1
8
12
32
13
19
null
null
haslab/SecreC
src/Language/SecreC/Transformation/Dafny.hs
gpl-3.0
procedureArgToDafny :: DafnyK m => Position -> Bool -> (Bool,Var,IsVariadic) -> DafnyM m (DDoc,AnnsDoc) procedureArgToDafny l isPost (_,v,False) = do vs <- lift $ usedVs' v let annK = if isPost then EnsureK else RequireK pv <- varToDafny $ fmap (Typed noloc) v (pt,annt) <- typeToDafny l annK (loc v) ...
427
procedureArgToDafny :: DafnyK m => Position -> Bool -> (Bool,Var,IsVariadic) -> DafnyM m (DDoc,AnnsDoc) procedureArgToDafny l isPost (_,v,False) = do vs <- lift $ usedVs' v let annK = if isPost then EnsureK else RequireK pv <- varToDafny $ fmap (Typed noloc) v (pt,annt) <- typeToDafny l annK (loc v) ...
427
procedureArgToDafny l isPost (_,v,False) = do vs <- lift $ usedVs' v let annK = if isPost then EnsureK else RequireK pv <- varToDafny $ fmap (Typed noloc) v (pt,annt) <- typeToDafny l annK (loc v) annp <- genDafnyAssumptions l False annK vs pv (loc v) return (pv <<>> dchar ':' <<>> pt,annp ++ an...
323
false
true
0
11
92
198
99
99
null
null
shockkolate/containers
Data/IntSet/Base.hs
bsd-3-clause
shorter :: Mask -> Mask -> Bool shorter m1 m2 = (natFromInt m1) > (natFromInt m2)
83
shorter :: Mask -> Mask -> Bool shorter m1 m2 = (natFromInt m1) > (natFromInt m2)
83
shorter m1 m2 = (natFromInt m1) > (natFromInt m2)
51
false
true
0
7
17
40
20
20
null
null
srush/Chart-Parsing-
NLP/ChartParse/Eisner.hs
bsd-3-clause
expandSpanEnd sp = (hasParent sp, state sp, word sp)
53
expandSpanEnd sp = (hasParent sp, state sp, word sp)
53
expandSpanEnd sp = (hasParent sp, state sp, word sp)
53
false
false
0
6
9
27
13
14
null
null
prl-tokyo/bigul-configuration-adaptation
Transformations/src/Generics/BiGUL/AST.hs
mit
constructR (RIn rpat) con = liftM inn (constructR rpat con)
77
constructR (RIn rpat) con = liftM inn (constructR rpat con)
77
constructR (RIn rpat) con = liftM inn (constructR rpat con)
77
false
false
0
7
27
30
14
16
null
null
rfranek/duckling
Duckling/Time/HE/Rules.hs
bsd-3-clause
ruleUntilTimeofday :: Rule ruleUntilTimeofday = Rule { name = "until <time-of-day>" , pattern = [ regex "\x05e2\x05d3" , dimension Time ] , prod = \tokens -> case tokens of (_:Token Time td:_) -> tt $ withDirection TTime.Before td _ -> Nothing }
285
ruleUntilTimeofday :: Rule ruleUntilTimeofday = Rule { name = "until <time-of-day>" , pattern = [ regex "\x05e2\x05d3" , dimension Time ] , prod = \tokens -> case tokens of (_:Token Time td:_) -> tt $ withDirection TTime.Before td _ -> Nothing }
285
ruleUntilTimeofday = Rule { name = "until <time-of-day>" , pattern = [ regex "\x05e2\x05d3" , dimension Time ] , prod = \tokens -> case tokens of (_:Token Time td:_) -> tt $ withDirection TTime.Before td _ -> Nothing }
258
false
true
0
15
81
95
50
45
null
null
ion1/buzhash-haskell
src/Data/BuzHash.hs
mit
buzHashBS :: BuzHash -> ByteString -> ListAnd BuzHash (ChunkSplit ByteString) buzHashBS bh bs = buzHashList bh [bs]
115
buzHashBS :: BuzHash -> ByteString -> ListAnd BuzHash (ChunkSplit ByteString) buzHashBS bh bs = buzHashList bh [bs]
115
buzHashBS bh bs = buzHashList bh [bs]
37
false
true
0
10
16
48
22
26
null
null
thewoolleyman/haskellbook
14/04/maor/addition/Addition.hs
unlicense
genBool' :: Gen Bool genBool' = elements [False, True]
54
genBool' :: Gen Bool genBool' = elements [False, True]
54
genBool' = elements [False, True]
33
false
true
0
6
8
23
12
11
null
null
acowley/ghc
compiler/utils/Pretty.hs
bsd-3-clause
oneLiner Empty = Empty
36
oneLiner Empty = Empty
36
oneLiner Empty = Empty
36
false
false
0
5
17
9
4
5
null
null
peter-fogg/pardoc
src/Text/Pandoc/Readers/TWiki.hs
gpl-2.0
linkText :: TWParser (String, String, B.Inlines) linkText = do string "[[" url <- many1Till anyChar (char ']') content <- option [B.str url] linkContent char ']' return (url, "", mconcat content) where linkContent = (char '[') >> many1Till anyChar (char ']') >>= parseLinkContent parseLinkConten...
354
linkText :: TWParser (String, String, B.Inlines) linkText = do string "[[" url <- many1Till anyChar (char ']') content <- option [B.str url] linkContent char ']' return (url, "", mconcat content) where linkContent = (char '[') >> many1Till anyChar (char ']') >>= parseLinkContent parseLinkConten...
354
linkText = do string "[[" url <- many1Till anyChar (char ']') content <- option [B.str url] linkContent char ']' return (url, "", mconcat content) where linkContent = (char '[') >> many1Till anyChar (char ']') >>= parseLinkContent parseLinkContent = parseFromString $ many1 inline
305
false
true
2
11
72
149
67
82
null
null