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
egison/egison-tutorial
Main.hs
mit
showFinishMessage :: IO () showFinishMessage = do putStrLn $ "You have finished this section." putStrLn $ "Thank you!"
122
showFinishMessage :: IO () showFinishMessage = do putStrLn $ "You have finished this section." putStrLn $ "Thank you!"
122
showFinishMessage = do putStrLn $ "You have finished this section." putStrLn $ "Thank you!"
95
false
true
0
7
21
30
14
16
null
null
frontrowed/stratosphere
library-gen/Stratosphere/ResourceProperties/CodePipelinePipelineActionDeclaration.hs
mit
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-stages-actions.html#cfn-codepipeline-pipeline-stages-actions-name cppadName :: Lens' CodePipelinePipelineActionDeclaration (Val Text) cppadName = lens _codePipelinePipelineActionDeclarationName (\s a -> s { _codePipe...
360
cppadName :: Lens' CodePipelinePipelineActionDeclaration (Val Text) cppadName = lens _codePipelinePipelineActionDeclarationName (\s a -> s { _codePipelinePipelineActionDeclarationName = a })
190
cppadName = lens _codePipelinePipelineActionDeclarationName (\s a -> s { _codePipelinePipelineActionDeclarationName = a })
122
true
true
0
9
21
46
25
21
null
null
sopvop/cabal
Cabal/Distribution/Verbosity.hs
bsd-3-clause
-- | Turn on verbose call-stack printing when we log. verboseCallStack :: Verbosity -> Verbosity verboseCallStack v = v { vFlags = Set.insert VCallStack (vFlags v) }
165
verboseCallStack :: Verbosity -> Verbosity verboseCallStack v = v { vFlags = Set.insert VCallStack (vFlags v) }
111
verboseCallStack v = v { vFlags = Set.insert VCallStack (vFlags v) }
68
true
true
0
9
26
40
21
19
null
null
Lainepress/hub-src
Hub/Directory.hs
bsd-3-clause
dir2heap_node :: FilePath -> FilePath -> Maybe Int dir2heap_node hdir dir = case hdir `isPrefixOf` dir of True -> readMB nd_s False -> Nothing where nd_s = takeWhile (not . isPathSeparator) $ dropWhile isPathSeparator $ drop (length hdir) dir
308
dir2heap_node :: FilePath -> FilePath -> Maybe Int dir2heap_node hdir dir = case hdir `isPrefixOf` dir of True -> readMB nd_s False -> Nothing where nd_s = takeWhile (not . isPathSeparator) $ dropWhile isPathSeparator $ drop (length hdir) dir
308
dir2heap_node hdir dir = case hdir `isPrefixOf` dir of True -> readMB nd_s False -> Nothing where nd_s = takeWhile (not . isPathSeparator) $ dropWhile isPathSeparator $ drop (length hdir) dir
257
false
true
0
11
104
91
45
46
null
null
rueshyna/gogol
gogol-books/gen/Network/Google/Resource/Books/MyLibrary/ReadingPositions/SetPosition.hs
mpl-2.0
-- | RFC 3339 UTC format timestamp associated with this reading position. mlrpspTimestamp :: Lens' MyLibraryReadingPositionsSetPosition Text mlrpspTimestamp = lens _mlrpspTimestamp (\ s a -> s{_mlrpspTimestamp = a})
223
mlrpspTimestamp :: Lens' MyLibraryReadingPositionsSetPosition Text mlrpspTimestamp = lens _mlrpspTimestamp (\ s a -> s{_mlrpspTimestamp = a})
149
mlrpspTimestamp = lens _mlrpspTimestamp (\ s a -> s{_mlrpspTimestamp = a})
82
true
true
0
9
35
42
22
20
null
null
thalerjonathan/phd
public/towards/SugarScape/experimental/chapter2_environment/src/SugarScape/Init.hs
gpl-3.0
sugarSpecToCoords :: [[Int]] -> Discrete2dCoord -> [(Discrete2dCoord, Int)] sugarSpecToCoords specs (dimX, dimY) | length specs /= dimY = error ("sugar row count does not match y-dimensions: " ++ show (length specs) ++ " not " ++ show dimY) | otherwise = sugarSpec...
1,225
sugarSpecToCoords :: [[Int]] -> Discrete2dCoord -> [(Discrete2dCoord, Int)] sugarSpecToCoords specs (dimX, dimY) | length specs /= dimY = error ("sugar row count does not match y-dimensions: " ++ show (length specs) ++ " not " ++ show dimY) | otherwise = sugarSpec...
1,225
sugarSpecToCoords specs (dimX, dimY) | length specs /= dimY = error ("sugar row count does not match y-dimensions: " ++ show (length specs) ++ " not " ++ show dimY) | otherwise = sugarSpecLines specs 0 [] where sugarSpecLines :: [[Int]] -> Int -> [(Discret...
1,113
false
true
3
13
463
357
188
169
null
null
CarstenKoenig/AdventOfCode2016
Day4/Parser.hs
mit
parseMany :: Parser a -> Parser [a] parseMany p = Parser (\inp -> case runParser p inp of Nothing -> Just ([], inp) Just (x, rem) -> case runParser (parseMany p) rem of Nothing -> Just ([x], rem) Just (xs, rem') -> Just (x:xs,...
327
parseMany :: Parser a -> Parser [a] parseMany p = Parser (\inp -> case runParser p inp of Nothing -> Just ([], inp) Just (x, rem) -> case runParser (parseMany p) rem of Nothing -> Just ([x], rem) Just (xs, rem') -> Just (x:xs,...
327
parseMany p = Parser (\inp -> case runParser p inp of Nothing -> Just ([], inp) Just (x, rem) -> case runParser (parseMany p) rem of Nothing -> Just ([x], rem) Just (xs, rem') -> Just (x:xs, rem'))
291
false
true
0
16
138
140
72
68
null
null
stevejb71/Idris-dev
src/IRTS/CodegenJavaScript.hs
bsd-3-clause
translateConstant (AType (ATInt ITChar)) = JSType JSCharTy
60
translateConstant (AType (ATInt ITChar)) = JSType JSCharTy
60
translateConstant (AType (ATInt ITChar)) = JSType JSCharTy
60
false
false
0
8
8
25
11
14
null
null
alanz/annotations-play
src/ch6.hs
unlicense
initState :: [(ExprToken, Bounds)] -> P.State [(ExprToken, Bounds)] Range -- initState = undefined initState toks = P.State { P.stateInput = toks , P.statePos = initialPos "src" , P.stateUser = (0,0) }
215
initState :: [(ExprToken, Bounds)] -> P.State [(ExprToken, Bounds)] Range initState toks = P.State { P.stateInput = toks , P.statePos = initialPos "src" , P.stateUser = (0,0) }
190
initState toks = P.State { P.stateInput = toks , P.statePos = initialPos "src" , P.stateUser = (0,0) }
116
true
true
0
8
44
81
47
34
null
null
badp/ganeti
test/hs/Test/Ganeti/Rpc.hs
gpl-2.0
genStorageUnits :: Gen [StorageUnit] genStorageUnits = do num_storage_units <- choose (0, 5) vectorOf num_storage_units genStorageUnit
138
genStorageUnits :: Gen [StorageUnit] genStorageUnits = do num_storage_units <- choose (0, 5) vectorOf num_storage_units genStorageUnit
138
genStorageUnits = do num_storage_units <- choose (0, 5) vectorOf num_storage_units genStorageUnit
101
false
true
0
9
18
41
20
21
null
null
anton-k/sharc-timbre
src/Sharc/Instruments/BassClarinet.hs
bsd-3-clause
note11 :: Note note11 = Note (Pitch 130.813 36 "c3") 12 (Range (NoteRange (NoteRangeAmplitude 9549.34 73 0.75) (NoteRangeHarmonicFreq 1 130.81)) (NoteRange (NoteRangeAmplitude 130.81 1 3250.0) (NoteRangeHarmonicFreq 76 9941.78))) [Harmonic ...
2,568
note11 :: Note note11 = Note (Pitch 130.813 36 "c3") 12 (Range (NoteRange (NoteRangeAmplitude 9549.34 73 0.75) (NoteRangeHarmonicFreq 1 130.81)) (NoteRange (NoteRangeAmplitude 130.81 1 3250.0) (NoteRangeHarmonicFreq 76 9941.78))) [Harmonic ...
2,568
note11 = Note (Pitch 130.813 36 "c3") 12 (Range (NoteRange (NoteRangeAmplitude 9549.34 73 0.75) (NoteRangeHarmonicFreq 1 130.81)) (NoteRange (NoteRangeAmplitude 130.81 1 3250.0) (NoteRangeHarmonicFreq 76 9941.78))) [Harmonic 1 1.651 3250.0 ...
2,553
false
true
0
11
711
1,020
527
493
null
null
SKA-ScienceDataProcessor/RC
MS5/dna/core/DNA/Interpreter/Spawn.hs
apache-2.0
execSpawnCollectorTreeGroup :: (Serializable a) => Res -> Spawn (Closure (CollectActor a a)) -> DnaMonad (Shell (Grp a) (Grp a)) execSpawnCollectorTreeGroup res act = do aid <- spawnActorGroup res (NWorkers 1) RcvTyTree ActorTree $ closureApply $(mkStaticClosure 'runTreeActor) <$> act r...
525
execSpawnCollectorTreeGroup :: (Serializable a) => Res -> Spawn (Closure (CollectActor a a)) -> DnaMonad (Shell (Grp a) (Grp a)) execSpawnCollectorTreeGroup res act = do aid <- spawnActorGroup res (NWorkers 1) RcvTyTree ActorTree $ closureApply $(mkStaticClosure 'runTreeActor) <$> act r...
525
execSpawnCollectorTreeGroup res act = do aid <- spawnActorGroup res (NWorkers 1) RcvTyTree ActorTree $ closureApply $(mkStaticClosure 'runTreeActor) <$> act return $ Shell aid ---------------------------------------------------------------- -- Spawn helpers -------------------------------------------...
380
false
true
0
14
88
133
64
69
null
null
louispan/glazier-react
src/Glazier/React/Plan/Internal.hs
bsd-3-clause
releaseWidgetCallbacks :: WidgetCallbacks -> IO () releaseWidgetCallbacks (WidgetCallbacks a b) = do releaseCallback a releaseCallback b ---------------------------------------------------------------------------------- -- | Interactivity data for a react component
275
releaseWidgetCallbacks :: WidgetCallbacks -> IO () releaseWidgetCallbacks (WidgetCallbacks a b) = do releaseCallback a releaseCallback b ---------------------------------------------------------------------------------- -- | Interactivity data for a react component
275
releaseWidgetCallbacks (WidgetCallbacks a b) = do releaseCallback a releaseCallback b ---------------------------------------------------------------------------------- -- | Interactivity data for a react component
224
false
true
0
7
34
45
21
24
null
null
Paow/encore
src/back/CodeGen/CCodeNames.hs
bsd-3-clause
closureTraceName :: String -> CCode Name closureTraceName name = Nam $ encoreName "trace" name
98
closureTraceName :: String -> CCode Name closureTraceName name = Nam $ encoreName "trace" name
98
closureTraceName name = Nam $ encoreName "trace" name
57
false
true
0
6
17
30
14
16
null
null
tel/hs-nanomsg
src/Network/Nanomsg/C.hs
apache-2.0
-- | "Can't assign requested address" eADDRNOTAVAIL :: Errno eADDRNOTAVAIL = Errno $ getSym "EADDRNOTAVAIL"
111
eADDRNOTAVAIL :: Errno eADDRNOTAVAIL = Errno $ getSym "EADDRNOTAVAIL"
73
eADDRNOTAVAIL = Errno $ getSym "EADDRNOTAVAIL"
48
true
true
0
6
18
25
11
14
null
null
alexbaluta/courseography
dependencies/HaXml-1.25.3/src/Text/XML/HaXml/Parse.hs
gpl-3.0
blank :: XParser a -> XParser a blank p = p `onFail` do n <- pereference tr <- stQuery (lookupPE n) `debug` ("Looking up %"++n++" (is blank?)") case tr of Just (PEDefEntityValue ev) | all isSpace (flattenEV ev) -> do blank p `debug` "Empt...
531
blank :: XParser a -> XParser a blank p = p `onFail` do n <- pereference tr <- stQuery (lookupPE n) `debug` ("Looking up %"++n++" (is blank?)") case tr of Just (PEDefEntityValue ev) | all isSpace (flattenEV ev) -> do blank p `debug` "Empt...
531
blank p = p `onFail` do n <- pereference tr <- stQuery (lookupPE n) `debug` ("Looking up %"++n++" (is blank?)") case tr of Just (PEDefEntityValue ev) | all isSpace (flattenEV ev) -> do blank p `debug` "Empty macro definition" J...
499
false
true
0
17
176
181
86
95
null
null
GaloisInc/halvm-ghc
compiler/iface/IfaceType.hs
bsd-3-clause
pprParendIfaceTcArgs = ppr_tc_args TyConPrec
44
pprParendIfaceTcArgs = ppr_tc_args TyConPrec
44
pprParendIfaceTcArgs = ppr_tc_args TyConPrec
44
false
false
0
5
3
9
4
5
null
null
fmthoma/ghc
compiler/hsSyn/HsExpr.hs
bsd-3-clause
pprGRHS :: (OutputableBndr idR, Outputable body) => HsMatchContext idL -> GRHS idR body -> SDoc pprGRHS ctxt (GRHS [] body) = pp_rhs ctxt body
152
pprGRHS :: (OutputableBndr idR, Outputable body) => HsMatchContext idL -> GRHS idR body -> SDoc pprGRHS ctxt (GRHS [] body) = pp_rhs ctxt body
152
pprGRHS ctxt (GRHS [] body) = pp_rhs ctxt body
48
false
true
0
8
33
66
31
35
null
null
k0001/gtk2hs
cairo/Graphics/Rendering/Cairo.hs
gpl-3.0
-- | This function finishes the surface and drops all references to external -- resources. For example, for the Xlib backend it means that cairo will no -- longer access the drawable, which can be freed. After calling 'surfaceFinish' -- the only valid operations on a surface are getting and setting user data and -- ref...
1,276
surfaceFinish :: MonadIO m => Surface -> m () surfaceFinish surface = liftIO $ do status <- Internal.surfaceStatus surface Internal.surfaceFinish surface unless (status == StatusSuccess) $ Internal.statusToString status >>= fail -- | Do any pending drawing for the surface and also restore any temporary -- mo...
591
surfaceFinish surface = liftIO $ do status <- Internal.surfaceStatus surface Internal.surfaceFinish surface unless (status == StatusSuccess) $ Internal.statusToString status >>= fail -- | Do any pending drawing for the surface and also restore any temporary -- modification's cairo has made to the surface's s...
545
true
true
0
12
213
102
54
48
null
null
jgoerzen/twidge
Commands/Ls.hs
gpl-2.0
nextMaxId r = Just ((minimum $ map (read . sId) r) - 1)
55
nextMaxId r = Just ((minimum $ map (read . sId) r) - 1)
55
nextMaxId r = Just ((minimum $ map (read . sId) r) - 1)
55
false
false
1
12
12
42
19
23
null
null
aemoncannon/woof
compiler/woof_to_bc.hs
mit
genBC (ASTGlobal s) = do return [Instr ("GETG", ["\"" ++ s ++ "\""])]
69
genBC (ASTGlobal s) = do return [Instr ("GETG", ["\"" ++ s ++ "\""])]
69
genBC (ASTGlobal s) = do return [Instr ("GETG", ["\"" ++ s ++ "\""])]
69
false
false
0
13
12
45
22
23
null
null
lpeterse/koka
src/Type/Type.hs
apache-2.0
typeTuple :: Int -> Tau typeTuple n = TCon (TypeCon (nameTuple n) (kindArrowN n))
83
typeTuple :: Int -> Tau typeTuple n = TCon (TypeCon (nameTuple n) (kindArrowN n))
83
typeTuple n = TCon (TypeCon (nameTuple n) (kindArrowN n))
59
false
true
0
9
15
41
20
21
null
null
keera-studios/hsQt
Qtc/Enums/Core/QAbstractFileEngine.hs
bsd-2-clause
ePermsMask :: FileFlag ePermsMask = ieFileFlag $ 65535
56
ePermsMask :: FileFlag ePermsMask = ieFileFlag $ 65535
56
ePermsMask = ieFileFlag $ 65535
33
false
true
0
6
9
18
8
10
null
null
Tuplanolla/ties341-parsing
ParsenatorCode.hs
gpl-3.0
entry p = Entry <$> natural <* char ':' <*> p <?> "entry"
67
entry p = Entry <$> natural <* char ':' <*> p <?> "entry"
67
entry p = Entry <$> natural <* char ':' <*> p <?> "entry"
67
false
false
0
8
22
28
13
15
null
null
Pitometsu/bake
src/General/Extra.hs
bsd-3-clause
modifyCVar_ :: CVar a -> (a -> IO a) -> IO () modifyCVar_ cvar f = modifyCVar cvar $ fmap (,()) . f
99
modifyCVar_ :: CVar a -> (a -> IO a) -> IO () modifyCVar_ cvar f = modifyCVar cvar $ fmap (,()) . f
99
modifyCVar_ cvar f = modifyCVar cvar $ fmap (,()) . f
53
false
true
0
9
22
62
30
32
null
null
IanConnolly/CS4032
lab2/client.hs
mit
sendMessages :: HostName -> PortID -> IO () sendMessages host port = do sock <- connectTo host port message <- prompt "Enter message to send: " hPutStrLn sock message when (head (words message) == "KILL_SERVICE") $ do lastMessage <- hGetLine sock putStrLn lastMessage exitSuccess...
396
sendMessages :: HostName -> PortID -> IO () sendMessages host port = do sock <- connectTo host port message <- prompt "Enter message to send: " hPutStrLn sock message when (head (words message) == "KILL_SERVICE") $ do lastMessage <- hGetLine sock putStrLn lastMessage exitSuccess...
396
sendMessages host port = do sock <- connectTo host port message <- prompt "Enter message to send: " hPutStrLn sock message when (head (words message) == "KILL_SERVICE") $ do lastMessage <- hGetLine sock putStrLn lastMessage exitSuccess resp <- hGetContents sock putStrLn...
352
false
true
0
14
106
133
55
78
null
null
shlevy/ghc
compiler/types/Coercion.hs
bsd-3-clause
mapStepResult _ NS_Abort = NS_Abort
50
mapStepResult _ NS_Abort = NS_Abort
50
mapStepResult _ NS_Abort = NS_Abort
50
false
false
1
5
19
13
5
8
null
null
damianfral/clay
src/Clay/Gradient.hs
bsd-3-clause
------------------------------------------------------------------------------- repeatingLinearGradient :: Direction -> Ramp -> BackgroundImage repeatingLinearGradient d xs = other $ Value $ let Value v = "repeating-linear-gradient(" <> value d <> "," <> ramp xs <> ")" in browsers <> v
292
repeatingLinearGradient :: Direction -> Ramp -> BackgroundImage repeatingLinearGradient d xs = other $ Value $ let Value v = "repeating-linear-gradient(" <> value d <> "," <> ramp xs <> ")" in browsers <> v
211
repeatingLinearGradient d xs = other $ Value $ let Value v = "repeating-linear-gradient(" <> value d <> "," <> ramp xs <> ")" in browsers <> v
147
true
true
4
14
40
82
36
46
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/enumFromThen_3.hs
mit
primMinusNat (Succ x) (Succ y) = primMinusNat x y
49
primMinusNat (Succ x) (Succ y) = primMinusNat x y
49
primMinusNat (Succ x) (Succ y) = primMinusNat x y
49
false
false
0
7
8
28
13
15
null
null
ardumont/haskell-lab
src/programming-in-haskell/ch1.hs
gpl-2.0
doublee :: Num a => a -> a doublee x = x + x
44
doublee :: Num a => a -> a doublee x = x + x
44
doublee x = x + x
17
false
true
0
6
13
29
14
15
null
null
kosmoskatten/ghost-lang
ghost-lang/test/GhostLang/InterpreterGenerators.hs
mit
invokeOperation :: Gen (Operation TestInstrSet) invokeOperation = Invoke <$> arbitrary
86
invokeOperation :: Gen (Operation TestInstrSet) invokeOperation = Invoke <$> arbitrary
86
invokeOperation = Invoke <$> arbitrary
38
false
true
4
6
9
32
12
20
null
null
olorin/amazonka
amazonka-iam/gen/Network/AWS/IAM/ListVirtualMFADevices.hs
mpl-2.0
-- | The status (unassigned or assigned) of the devices to list. If you do -- not specify an 'AssignmentStatus', the action defaults to 'Any' which -- lists both assigned and unassigned virtual MFA devices. lvmdAssignmentStatus :: Lens' ListVirtualMFADevices (Maybe AssignmentStatusType) lvmdAssignmentStatus = lens _lvm...
377
lvmdAssignmentStatus :: Lens' ListVirtualMFADevices (Maybe AssignmentStatusType) lvmdAssignmentStatus = lens _lvmdAssignmentStatus (\ s a -> s{_lvmdAssignmentStatus = a})
170
lvmdAssignmentStatus = lens _lvmdAssignmentStatus (\ s a -> s{_lvmdAssignmentStatus = a})
89
true
true
0
9
51
48
27
21
null
null
tonyfloatersu/solution-haskell-craft-of-FP
ServerState.hs
mit
addNewObject :: Inmess -> ServerState -> ServerState addNewObject No servSt = servSt
97
addNewObject :: Inmess -> ServerState -> ServerState addNewObject No servSt = servSt
97
addNewObject No servSt = servSt
44
false
true
0
6
24
29
13
16
null
null
jwiegley/ghc-release
libraries/Cabal/cabal/Distribution/PackageDescription.hs
gpl-3.0
-- | The 'Extensions' that are used by all modules in this component -- usedExtensions :: BuildInfo -> [Extension] usedExtensions bi = oldExtensions bi ++ defaultExtensions bi
192
usedExtensions :: BuildInfo -> [Extension] usedExtensions bi = oldExtensions bi ++ defaultExtensions bi
120
usedExtensions bi = oldExtensions bi ++ defaultExtensions bi
77
true
true
0
6
43
33
17
16
null
null
alphalambda/codeworld
codeworld-compiler/test/testcases/misspelledUserVar/source.hs
apache-2.0
{- Copyright 2019 The CodeWorld Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicab...
636
program = drawingOf(circl)
26
program = drawingOf(circl)
26
true
false
0
6
117
13
7
6
null
null
vladimir-ipatov/ganeti
src/Ganeti/Constants.hs
gpl-2.0
htKvmSpiceLosslessImgComprLz :: String htKvmSpiceLosslessImgComprLz = "lz"
74
htKvmSpiceLosslessImgComprLz :: String htKvmSpiceLosslessImgComprLz = "lz"
74
htKvmSpiceLosslessImgComprLz = "lz"
35
false
true
0
6
5
18
7
11
null
null
rueshyna/gogol
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs
mpl-2.0
-- | List of deals deleted (in the same proposal as passed in the request) dDeals :: Lens' DeleteOrderDealsResponse [MarketplaceDeal] dDeals = lens _dDeals (\ s a -> s{_dDeals = a}) . _Default . _Coerce
210
dDeals :: Lens' DeleteOrderDealsResponse [MarketplaceDeal] dDeals = lens _dDeals (\ s a -> s{_dDeals = a}) . _Default . _Coerce
135
dDeals = lens _dDeals (\ s a -> s{_dDeals = a}) . _Default . _Coerce
76
true
true
1
10
42
57
28
29
null
null
unisonweb/platform
parser-typechecker/src/Unison/Codebase/Editor/HandleCommand.hs
mit
commandLine :: forall i v a gen . (Var v, Random.DRG gen) => Config -> IO i -> (Branch IO -> IO ()) -> Runtime v -> (Output v -> IO ()) -> (NumberedOutput v -> IO NumberedArgs) -> (SourceName -> IO LoadSourceResult) -> Codebase IO v Ann -> Maybe Server.BaseUrl -> (Int -> IO gen) -> Free (Comm...
9,976
commandLine :: forall i v a gen . (Var v, Random.DRG gen) => Config -> IO i -> (Branch IO -> IO ()) -> Runtime v -> (Output v -> IO ()) -> (NumberedOutput v -> IO NumberedArgs) -> (SourceName -> IO LoadSourceResult) -> Codebase IO v Ann -> Maybe Server.BaseUrl -> (Int -> IO gen) -> Free (Comm...
9,976
commandLine config awaitInput setBranchRef rt notifyUser notifyNumbered loadSource codebase serverBaseUrl rngGen = flip State.evalStateT 0 . Free.fold go where go :: forall x . Command IO i v x -> State.StateT Int IO x go x = case x of -- Wait until we get either user input or a unison file update Eval m ...
9,632
false
true
0
28
2,416
2,162
1,051
1,111
null
null
ghc-android/ghc
testsuite/tests/ghci/should_run/ghcirun004.hs
bsd-3-clause
4728 = 4727
11
4728 = 4727
11
4728 = 4727
11
false
false
1
5
2
10
3
7
null
null
ku-fpg/ecc-ldpc
src/ECC/Code/LDPC/GPU/CachedMult.hs
bsd-3-clause
ldpc' :: Acc (Matrixlet Double) -> Acc (Scalar Int) -> Acc (V Double) -> Acc (V Bool) ldpc' mLet maxIterations orig_lam = map hard' $ loop 0 mLet orig_lam where loop :: Int -> Acc (Matrixlet Double) -> Acc (V Double) -> Acc (V Double) loop n ne lam = let (finalN, ne, r) = unlift (awhile loopCond loopB...
2,077
ldpc' :: Acc (Matrixlet Double) -> Acc (Scalar Int) -> Acc (V Double) -> Acc (V Bool) ldpc' mLet maxIterations orig_lam = map hard' $ loop 0 mLet orig_lam where loop :: Int -> Acc (Matrixlet Double) -> Acc (V Double) -> Acc (V Double) loop n ne lam = let (finalN, ne, r) = unlift (awhile loopCond loopB...
2,077
ldpc' mLet maxIterations orig_lam = map hard' $ loop 0 mLet orig_lam where loop :: Int -> Acc (Matrixlet Double) -> Acc (V Double) -> Acc (V Double) loop n ne lam = let (finalN, ne, r) = unlift (awhile loopCond loopBody liftedInit) :: (Acc (Scalar Int), Acc (Matrixlet Doubl...
1,991
false
true
8
14
653
861
435
426
null
null
dysinger/amazonka
amazonka-ecs/gen/Network/AWS/ECS/DiscoverPollEndpoint.hs
mpl-2.0
-- | The cluster that the container instance belongs to. dpeCluster :: Lens' DiscoverPollEndpoint (Maybe Text) dpeCluster = lens _dpeCluster (\s a -> s { _dpeCluster = a })
172
dpeCluster :: Lens' DiscoverPollEndpoint (Maybe Text) dpeCluster = lens _dpeCluster (\s a -> s { _dpeCluster = a })
115
dpeCluster = lens _dpeCluster (\s a -> s { _dpeCluster = a })
61
true
true
0
9
28
46
25
21
null
null
brendanhay/gogol
gogol-container/gen/Network/Google/Resource/Container/Projects/Locations/Operations/Cancel.hs
mpl-2.0
-- | Multipart request metadata. plocPayload :: Lens' ProjectsLocationsOperationsCancel CancelOperationRequest plocPayload = lens _plocPayload (\ s a -> s{_plocPayload = a})
175
plocPayload :: Lens' ProjectsLocationsOperationsCancel CancelOperationRequest plocPayload = lens _plocPayload (\ s a -> s{_plocPayload = a})
142
plocPayload = lens _plocPayload (\ s a -> s{_plocPayload = a})
64
true
true
0
9
22
42
22
20
null
null
brendanhay/gogol
gogol-admin-reports/gen/Network/Google/Resource/Reports/UserUsageReport/Get.hs
mpl-2.0
-- | Represents the profile ID or the user email for which the data should be -- filtered. Can be \`all\` for all information, or \`userKey\` for a -- user\'s unique Google Workspace profile ID or their primary email -- address. Must not be a deleted user. For a deleted user, call -- \`users.list\` in Directory API wit...
505
uurgUserKey :: Lens' UserUsageReportGet Text uurgUserKey = lens _uurgUserKey (\ s a -> s{_uurgUserKey = a})
109
uurgUserKey = lens _uurgUserKey (\ s a -> s{_uurgUserKey = a})
64
true
true
0
9
85
47
27
20
null
null
JacquesCarette/literate-scientific-software
code/drasil-code/Language/Drasil/CodeSpec.hs
bsd-2-clause
codeSpec :: SystemInformation -> Choices -> [Mod] -> CodeSpec codeSpec SI {_sys = sys , _authors = as , _quants = q , _definitions = defs' , _datadefs = ddefs , _inputs = ins , _outputs = outs , _constraints = cs ...
1,731
codeSpec :: SystemInformation -> Choices -> [Mod] -> CodeSpec codeSpec SI {_sys = sys , _authors = as , _quants = q , _definitions = defs' , _datadefs = ddefs , _inputs = ins , _outputs = outs , _constraints = cs ...
1,731
codeSpec SI {_sys = sys , _authors = as , _quants = q , _definitions = defs' , _datadefs = ddefs , _inputs = ins , _outputs = outs , _constraints = cs , _constants = cnsts , _sysinfodb = db ...
1,669
false
true
0
15
643
499
279
220
null
null
Copilot-Language/sbv-for-copilot
SBVUnitTest/SBVBasicTests.hs
bsd-3-clause
testCollection :: [(String, SBVTestSuite)] testCollection = [(n, s) | (n, False, s) <- allTestCases]
100
testCollection :: [(String, SBVTestSuite)] testCollection = [(n, s) | (n, False, s) <- allTestCases]
100
testCollection = [(n, s) | (n, False, s) <- allTestCases]
57
false
true
0
8
13
46
28
18
null
null
printedheart/Dao
src/Dao/Grammar.hs
agpl-3.0
lexerFunction :: Monad m => Lens m (Lexer o) (LazyText -> o) lexerFunction = lexerTuple >>> tuple1
98
lexerFunction :: Monad m => Lens m (Lexer o) (LazyText -> o) lexerFunction = lexerTuple >>> tuple1
98
lexerFunction = lexerTuple >>> tuple1
37
false
true
0
8
16
42
21
21
null
null
CloudI/CloudI
src/api/haskell/external/bytestring-0.10.10.0/Data/ByteString/Lazy.hs
mit
hGetNonBlockingN _ _ 0 = return Empty
37
hGetNonBlockingN _ _ 0 = return Empty
37
hGetNonBlockingN _ _ 0 = return Empty
37
false
false
1
5
6
15
6
9
null
null
eb-gh-cr/XMonadContrib1
XMonad/Prompt/SubWorkspace.hs
bsd-3-clause
fullName :: (String, String, String) -> String fullName (wsp, prj, "") = wsp ++ "::" ++ prj
91
fullName :: (String, String, String) -> String fullName (wsp, prj, "") = wsp ++ "::" ++ prj
91
fullName (wsp, prj, "") = wsp ++ "::" ++ prj
44
false
true
0
6
16
44
25
19
null
null
glguy/CookieCalculator
src/CookieClicker.hs
isc
-- | Compute the cost to buy back the given number of buildings -- after sacrificing that many for Krumblor, the cookie dragon. sacrificeCost :: Int -> GameInput -> GameState -> Double sacrificeCost n i st = sum (buyMore n <$> buildingCosts i' st) where i' = over (buildingsOwned . mapped) (subtract n) i
308
sacrificeCost :: Int -> GameInput -> GameState -> Double sacrificeCost n i st = sum (buyMore n <$> buildingCosts i' st) where i' = over (buildingsOwned . mapped) (subtract n) i
180
sacrificeCost n i st = sum (buyMore n <$> buildingCosts i' st) where i' = over (buildingsOwned . mapped) (subtract n) i
123
true
true
0
8
57
78
39
39
null
null
urbanslug/ghc
compiler/llvmGen/Llvm/Types.hs
bsd-3-clause
isFloat LMFloat80 = True
25
isFloat LMFloat80 = True
25
isFloat LMFloat80 = True
25
false
false
0
5
4
9
4
5
null
null
batterseapower/supercompilation-by-evaluation
Core/Syntax.hs
bsd-3-clause
detagValue (Data dc xs) = Data dc xs
36
detagValue (Data dc xs) = Data dc xs
36
detagValue (Data dc xs) = Data dc xs
36
false
false
0
6
7
23
10
13
null
null
iteloo/tsuru-sample
iteratee-0.8.9.6/bench/BenchBase.hs
bsd-3-clause
take0 = makeList "take length of list long" (Prelude.length . Prelude.take 1000)
80
take0 = makeList "take length of list long" (Prelude.length . Prelude.take 1000)
80
take0 = makeList "take length of list long" (Prelude.length . Prelude.take 1000)
80
false
false
1
9
11
29
12
17
null
null
Feeniks/valkyrie
app/Main.hs
bsd-3-clause
main :: IO () main = valkyrie TG
32
main :: IO () main = valkyrie TG
32
main = valkyrie TG
18
false
true
0
7
7
24
10
14
null
null
mfpi/spacepart
src/Data/SpacePart/QuadTree.hs
bsd-3-clause
map_child f NNQuad ( np_c, pp_c , nn_c, pn_c ) = ( np_c , pp_c , f nn_c, pn_c )
164
map_child f NNQuad ( np_c, pp_c , nn_c, pn_c ) = ( np_c , pp_c , f nn_c, pn_c )
164
map_child f NNQuad ( np_c, pp_c , nn_c, pn_c ) = ( np_c , pp_c , f nn_c, pn_c )
164
false
false
0
6
104
43
23
20
null
null
trskop/cabal
Cabal/Distribution/Simple/Build.hs
bsd-3-clause
addInternalBuildTools :: PackageDescription -> LocalBuildInfo -> BuildInfo -> ProgramDb -> ProgramDb addInternalBuildTools pkg lbi bi progs = foldr updateProgram progs internalBuildTools where internalBuildTools = [ simpleConfiguredProgram toolName (FoundOnSystem toolLocation) ...
806
addInternalBuildTools :: PackageDescription -> LocalBuildInfo -> BuildInfo -> ProgramDb -> ProgramDb addInternalBuildTools pkg lbi bi progs = foldr updateProgram progs internalBuildTools where internalBuildTools = [ simpleConfiguredProgram toolName (FoundOnSystem toolLocation) ...
806
addInternalBuildTools pkg lbi bi progs = foldr updateProgram progs internalBuildTools where internalBuildTools = [ simpleConfiguredProgram toolName (FoundOnSystem toolLocation) | toolName <- toolNames , let toolLocation = buildDir lbi </> toolName </> toolName <.> exeExtension ] toolName...
683
false
true
2
13
173
179
84
95
null
null
sordina/wai
warp/test/RunSpec.hs
bsd-2-clause
singlePostHello :: ByteString singlePostHello = "POST /hello HTTP/1.1\r\nHost: localhost\r\nContent-length: 5\r\n\r\nHello"
123
singlePostHello :: ByteString singlePostHello = "POST /hello HTTP/1.1\r\nHost: localhost\r\nContent-length: 5\r\n\r\nHello"
123
singlePostHello = "POST /hello HTTP/1.1\r\nHost: localhost\r\nContent-length: 5\r\n\r\nHello"
93
false
true
0
4
9
11
6
5
null
null
andorp/bead
src/Bead/View/RouteOf.hs
bsd-3-clause
submissionPath :: RoutePath submissionPath = "/submission"
58
submissionPath :: RoutePath submissionPath = "/submission"
58
submissionPath = "/submission"
30
false
true
0
6
5
18
7
11
null
null
bredelings/BAli-Phy
haskell/MCMC.hs
gpl-2.0
metropolis_hastings :: Proposal -> Context -> IO Bool metropolis_hastings proposal c1 = do c2 <- copy_context c1 ratio <- proposal c2 accept <- accept_MH c1 c2 ratio if accept then switch_to_context c1 c2 else return () release_context c2 return accept
264
metropolis_hastings :: Proposal -> Context -> IO Bool metropolis_hastings proposal c1 = do c2 <- copy_context c1 ratio <- proposal c2 accept <- accept_MH c1 c2 ratio if accept then switch_to_context c1 c2 else return () release_context c2 return accept
264
metropolis_hastings proposal c1 = do c2 <- copy_context c1 ratio <- proposal c2 accept <- accept_MH c1 c2 ratio if accept then switch_to_context c1 c2 else return () release_context c2 return accept
210
false
true
0
9
51
94
41
53
null
null
tonyfischetti/99-haskell-problems
Q1to10.hs
unlicense
-- .02s - .03s - .03s length' xs = foldl step 0 xs where step acc x = acc + 1 -- equivalent to above but using lambda -- .01s - .03s - .05sj
141
length' xs = foldl step 0 xs where step acc x = acc + 1 -- equivalent to above but using lambda -- .01s - .03s - .05sj
119
length' xs = foldl step 0 xs where step acc x = acc + 1 -- equivalent to above but using lambda -- .01s - .03s - .05sj
119
true
false
0
7
34
35
18
17
null
null
webcrank/webcrank.hs
src/Webcrank/Internal/DecisionCore.hs
bsd-3-clause
-- Accept exists? c3 :: (Applicative m, MonadReader r m, HasResourceData r m, MonadState s m, HasReqData s) => FlowChart (HaltT m) Status c3 = decision "c3" $ getRequestHeader hAccept >>= maybe d4' (return . c4) where d4' = do ts <- callr' contentTypesProvided traverse_ (assign reqDataRespMediaType . fst)...
388
c3 :: (Applicative m, MonadReader r m, HasResourceData r m, MonadState s m, HasReqData s) => FlowChart (HaltT m) Status c3 = decision "c3" $ getRequestHeader hAccept >>= maybe d4' (return . c4) where d4' = do ts <- callr' contentTypesProvided traverse_ (assign reqDataRespMediaType . fst) (listToMaybe ts) ...
370
c3 = decision "c3" $ getRequestHeader hAccept >>= maybe d4' (return . c4) where d4' = do ts <- callr' contentTypesProvided traverse_ (assign reqDataRespMediaType . fst) (listToMaybe ts) return d4 -- Acceptable media type available?
246
true
true
0
11
76
139
67
72
null
null
CindyLinz/Haskell.js
trans/src/Desugar/PatBind.hs
mit
dePatBindExp (XChildTag l exp) = XChildTag (id l) (fmap (dePatBindExp) exp)
75
dePatBindExp (XChildTag l exp) = XChildTag (id l) (fmap (dePatBindExp) exp)
75
dePatBindExp (XChildTag l exp) = XChildTag (id l) (fmap (dePatBindExp) exp)
75
false
false
0
8
10
39
19
20
null
null
tonyfloatersu/solution-haskell-craft-of-FP
Chapter_12_my_note.hs
mit
strongShowIndex :: ([Int], Word) -> String strongShowIndex (datas, word) = word ++ concat (replicate (__width - length word) " ") ++ concatMap (++ ", ") ((init . strongExpress) datas) ++ (last . strongExpress) datas where __width = 15 :: Int
319
strongShowIndex :: ([Int], Word) -> String strongShowIndex (datas, word) = word ++ concat (replicate (__width - length word) " ") ++ concatMap (++ ", ") ((init . strongExpress) datas) ++ (last . strongExpress) datas where __width = 15 :: Int
319
strongShowIndex (datas, word) = word ++ concat (replicate (__width - length word) " ") ++ concatMap (++ ", ") ((init . strongExpress) datas) ++ (last . strongExpress) datas where __width = 15 :: Int
276
false
true
0
13
117
113
59
54
null
null
brendanhay/gogol
gogol-ml/gen/Network/Google/Resource/Ml/Projects/Locations/Studies/Trials/Complete.hs
mpl-2.0
-- | Multipart request metadata. pPayload :: Lens' ProjectsLocationsStudiesTrialsComplete GoogleCloudMlV1__CompleteTrialRequest pPayload = lens _pPayload (\ s a -> s{_pPayload = a})
181
pPayload :: Lens' ProjectsLocationsStudiesTrialsComplete GoogleCloudMlV1__CompleteTrialRequest pPayload = lens _pPayload (\ s a -> s{_pPayload = a})
148
pPayload = lens _pPayload (\ s a -> s{_pPayload = a})
53
true
true
0
9
20
40
22
18
null
null
greydot/intern
Data/Interned/IntSet.hs
bsd-3-clause
split :: Int -> IntSet -> (IntSet,IntSet) split x t = case t of Bin _ _ _ m l r | m < 0 -> if x >= 0 then let (lt,gt) = split' x l in (union r lt, gt) else let (lt,gt) = split' x r in (lt, union gt l) -- handle negative numbers....
507
split :: Int -> IntSet -> (IntSet,IntSet) split x t = case t of Bin _ _ _ m l r | m < 0 -> if x >= 0 then let (lt,gt) = split' x l in (union r lt, gt) else let (lt,gt) = split' x r in (lt, union gt l) -- handle negative numbers....
507
split x t = case t of Bin _ _ _ m l r | m < 0 -> if x >= 0 then let (lt,gt) = split' x l in (union r lt, gt) else let (lt,gt) = split' x r in (lt, union gt l) -- handle negative numbers. | otherwise -> split' x t ...
465
false
true
6
11
250
236
118
118
null
null
schell/nshaskell
src/NSHaskell.hs
mit
getClassSelectors :: HasClass a => a -> IO [Sel] getClassSelectors a = getClassMethods a >>= mapM c'method_getName
114
getClassSelectors :: HasClass a => a -> IO [Sel] getClassSelectors a = getClassMethods a >>= mapM c'method_getName
114
getClassSelectors a = getClassMethods a >>= mapM c'method_getName
65
false
true
2
9
16
47
21
26
null
null
phischu/fragnix
app/Main.hs
bsd-3-clause
sliceIdParser :: Parser IDType sliceIdParser = SliceID <$> strArgument (metavar "ID")
85
sliceIdParser :: Parser IDType sliceIdParser = SliceID <$> strArgument (metavar "ID")
85
sliceIdParser = SliceID <$> strArgument (metavar "ID")
54
false
true
1
8
10
30
13
17
null
null
tomjaguarpaw/postgresql-simple
src/Database/PostgreSQL/Simple/TypeInfo/Static.hs
bsd-3-clause
_tsrange :: TypeInfo _tsrange = Array { typoid = _tsrangeOid, typcategory = 'A', typdelim = ',', typname = "_tsrange", typelem = tsrange }
177
_tsrange :: TypeInfo _tsrange = Array { typoid = _tsrangeOid, typcategory = 'A', typdelim = ',', typname = "_tsrange", typelem = tsrange }
177
_tsrange = Array { typoid = _tsrangeOid, typcategory = 'A', typdelim = ',', typname = "_tsrange", typelem = tsrange }
156
false
true
0
6
61
43
27
16
null
null
lpeterse/koka
src/Kind/ImportMap.hs
apache-2.0
importsExtend :: Name -> Name -> ImportMap -> Maybe ImportMap importsExtend name fullName imp = let rpath = reverse $ splitModuleName name in case lookup rpath imp of Nothing -> Just ((rpath,fullName):imp) Just _ -> Nothing -- | @importsExpand name map@ takes a qualified name (@core/int@) and expand...
536
importsExtend :: Name -> Name -> ImportMap -> Maybe ImportMap importsExtend name fullName imp = let rpath = reverse $ splitModuleName name in case lookup rpath imp of Nothing -> Just ((rpath,fullName):imp) Just _ -> Nothing -- | @importsExpand name map@ takes a qualified name (@core/int@) and expand...
536
importsExtend name fullName imp = let rpath = reverse $ splitModuleName name in case lookup rpath imp of Nothing -> Just ((rpath,fullName):imp) Just _ -> Nothing -- | @importsExpand name map@ takes a qualified name (@core/int@) and expands -- it to its real fully qualified name (@std/core/int@). It ...
474
false
true
0
13
106
100
49
51
null
null
luisgepeto/HaskellLearning
08 Own Types/04_derived_instances.hs
mit
demo11 = True > False
21
demo11 = True > False
21
demo11 = True > False
21
false
false
1
5
4
13
5
8
null
null
paulrzcz/takusen-oracle
Database/Oracle/Test/OCIFunctions.hs
bsd-3-clause
stOutputStmtBind :: (String, String, String) -> IO () testOutputStmtBind args = do (env, err, conn) <- logon args OCI.catchOCI ( do stmt <- OCI.handleAlloc oci_HTYPE_STMT (castPtr env) OCI.stmtPrepare err (castPtr stmt) (OCI.substituteBindPlaceHolders ("begin open :1 for select dummy from ...
1,919
testOutputStmtBind :: (String, String, String) -> IO () testOutputStmtBind args = do (env, err, conn) <- logon args OCI.catchOCI ( do stmt <- OCI.handleAlloc oci_HTYPE_STMT (castPtr env) OCI.stmtPrepare err (castPtr stmt) (OCI.substituteBindPlaceHolders ("begin open :1 for select dummy from...
1,918
testOutputStmtBind args = do (env, err, conn) <- logon args OCI.catchOCI ( do stmt <- OCI.handleAlloc oci_HTYPE_STMT (castPtr env) OCI.stmtPrepare err (castPtr stmt) (OCI.substituteBindPlaceHolders ("begin open :1 for select dummy from dual; end;")) nullIndFPtr <- mallocForeignPtr ...
1,862
false
true
0
17
431
490
238
252
null
null
haroldcarr/learn-haskell-coq-ml-etc
haskell/topic/general/haskellforall/src/PipesTutorial.hs
unlicense
runDoubleEcho :: IO () runDoubleEcho = runEffect $ lift getLine >~ doubleUp >~ stdoutLn'
88
runDoubleEcho :: IO () runDoubleEcho = runEffect $ lift getLine >~ doubleUp >~ stdoutLn'
88
runDoubleEcho = runEffect $ lift getLine >~ doubleUp >~ stdoutLn'
65
false
true
0
8
13
31
15
16
null
null
keithodulaigh/Hets
CSL/Sign.hs
gpl-2.0
-- TODO: adapt the operations to new signature components -- | determines whether a signature is valid. all sets are ok, so glued to true isLegalSignature :: Sign -> Bool isLegalSignature _ = True
198
isLegalSignature :: Sign -> Bool isLegalSignature _ = True
58
isLegalSignature _ = True
25
true
true
0
5
35
20
11
9
null
null
beni55/haste-compiler
libraries/ghc-7.8/base/GHC/Event/Internal.hs
bsd-3-clause
-- | Data is available to be read. evtRead :: Event evtRead = Event 1
69
evtRead :: Event evtRead = Event 1
34
evtRead = Event 1
17
true
true
0
6
14
22
9
13
null
null
bergmark/hlint
src/Util.hs
bsd-3-clause
thd3 :: (a,b,c) -> c thd3 (a,b,c) = c
37
thd3 :: (a,b,c) -> c thd3 (a,b,c) = c
37
thd3 (a,b,c) = c
16
false
true
0
6
8
36
21
15
null
null
tulcod/megaparsec
Text/Megaparsec/Char.hs
bsd-2-clause
-- | Parses an ASCII digit, i.e between “0” and “9”. digitChar :: Stream s m Char => ParsecT s u m Char digitChar = satisfy isDigit <?> "digit"
144
digitChar :: Stream s m Char => ParsecT s u m Char digitChar = satisfy isDigit <?> "digit"
90
digitChar = satisfy isDigit <?> "digit"
39
true
true
0
6
29
39
19
20
null
null
simonmar/alex
src/ParseMonad.hs
bsd-3-clause
alexStartPos :: AlexPosn alexStartPos = AlexPn 0 1 1
52
alexStartPos :: AlexPosn alexStartPos = AlexPn 0 1 1
52
alexStartPos = AlexPn 0 1 1
27
false
true
0
5
8
18
9
9
null
null
ivanperez-keera/Yampa
yampa/tests/TestsRSwitch.hs
bsd-3-clause
rswitch_st0r = 4.75
19
rswitch_st0r = 4.75
19
rswitch_st0r = 4.75
19
false
false
0
4
2
6
3
3
null
null
idris-hackers/idris-java
src/IRTS/Java/JTypes.hs
bsd-3-clause
-- Currently we only support Java_* types for foreign functions foreignType :: FDesc -> Maybe J.Type foreignType (FCon t) | isCType t = error ("Java backend does not (currently) support C calls") | isJavaType t = Just $ foreignType' t | otherwise = error ("Java backend does not support " ++ show t)
311
foreignType :: FDesc -> Maybe J.Type foreignType (FCon t) | isCType t = error ("Java backend does not (currently) support C calls") | isJavaType t = Just $ foreignType' t | otherwise = error ("Java backend does not support " ++ show t)
247
foreignType (FCon t) | isCType t = error ("Java backend does not (currently) support C calls") | isJavaType t = Just $ foreignType' t | otherwise = error ("Java backend does not support " ++ show t)
210
true
true
2
8
64
86
40
46
null
null
GaloisInc/halvm-ghc
compiler/prelude/TysWiredIn.hs
bsd-3-clause
liftedTypeKindTyConName, starKindTyConName, unicodeStarKindTyConName :: Name liftedTypeKindTyConName = mkWiredInTyConName UserSyntax gHC_TYPES (fsLit "Type") liftedTypeKindTyConKey liftedTypeKindTyCon
202
liftedTypeKindTyConName, starKindTyConName, unicodeStarKindTyConName :: Name liftedTypeKindTyConName = mkWiredInTyConName UserSyntax gHC_TYPES (fsLit "Type") liftedTypeKindTyConKey liftedTypeKindTyCon
202
liftedTypeKindTyConName = mkWiredInTyConName UserSyntax gHC_TYPES (fsLit "Type") liftedTypeKindTyConKey liftedTypeKindTyCon
123
false
true
0
7
15
32
18
14
null
null
nkpart/lens-xml
src/Text/XML/Light/Lens.hs
bsd-3-clause
elContentL :: Lens' Element [Content] elContentL = lens elContent (\v a -> v { elContent = a })
95
elContentL :: Lens' Element [Content] elContentL = lens elContent (\v a -> v { elContent = a })
95
elContentL = lens elContent (\v a -> v { elContent = a })
57
false
true
0
9
17
49
24
25
null
null
thalerjonathan/phd
thesis/code/sugarscape/src/test/Agent/Move.hs
gpl-3.0
pc :: SugEnvSite pc = SugEnvSite { sugEnvSiteSugarCapacity = 0 , sugEnvSiteSugarLevel = 0 , sugEnvSiteSpiceCapacity = 0 , sugEnvSiteSpiceLevel = 0 , sugEnvSitePolutionLevel = 0 , sugEnvSiteOccupier = Nothing }
235
pc :: SugEnvSite pc = SugEnvSite { sugEnvSiteSugarCapacity = 0 , sugEnvSiteSugarLevel = 0 , sugEnvSiteSpiceCapacity = 0 , sugEnvSiteSpiceLevel = 0 , sugEnvSitePolutionLevel = 0 , sugEnvSiteOccupier = Nothing }
235
pc = SugEnvSite { sugEnvSiteSugarCapacity = 0 , sugEnvSiteSugarLevel = 0 , sugEnvSiteSpiceCapacity = 0 , sugEnvSiteSpiceLevel = 0 , sugEnvSitePolutionLevel = 0 , sugEnvSiteOccupier = Nothing }
218
false
true
0
7
56
59
33
26
null
null
headprogrammingczar/Data
data-eval/IRC/Data/L.hs
bsd-3-clause
uptime = text "more than Shishichi!"
36
uptime = text "more than Shishichi!"
36
uptime = text "more than Shishichi!"
36
false
false
1
5
5
13
4
9
null
null
Ferdinand-vW/sessiontypes
src/Control/SessionTypes/Debug.hs
gpl-3.0
run' (OffZ s) (S_OffZ s_s) = O_OffZ $ run' s s_s
48
run' (OffZ s) (S_OffZ s_s) = O_OffZ $ run' s s_s
48
run' (OffZ s) (S_OffZ s_s) = O_OffZ $ run' s s_s
48
false
false
0
6
10
34
15
19
null
null
DanielSchuessler/hstri
Util.hs
gpl-3.0
uncurry3 :: (t1 -> t2 -> t3 -> t) -> (t1, t2, t3) -> t uncurry3 f (a,b,c) = f a b c
83
uncurry3 :: (t1 -> t2 -> t3 -> t) -> (t1, t2, t3) -> t uncurry3 f (a,b,c) = f a b c
83
uncurry3 f (a,b,c) = f a b c
28
false
true
0
9
22
64
35
29
null
null
ChrisLane/leksah
src/IDE/Core/State.hs
gpl-2.0
setCurrentContext c = modifyIDE_ (\ide -> ide{currentEBC = (currentError ide, currentBreak ide, c)})
100
setCurrentContext c = modifyIDE_ (\ide -> ide{currentEBC = (currentError ide, currentBreak ide, c)})
100
setCurrentContext c = modifyIDE_ (\ide -> ide{currentEBC = (currentError ide, currentBreak ide, c)})
100
false
false
0
11
12
43
23
20
null
null
ghcjs/ghcjs
src/Gen2/Printer.hs
mit
braceNest :: Doc -> Doc braceNest x = char '{' <+> nest 2 x $$ char '}'
71
braceNest :: Doc -> Doc braceNest x = char '{' <+> nest 2 x $$ char '}'
71
braceNest x = char '{' <+> nest 2 x $$ char '}'
47
false
true
0
7
16
42
18
24
null
null
gjasinski/rsa-haskell
dist/build/autogen/Paths_rsa_haskell.hs
mit
getBinDir, getLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath getBinDir = catchIO (getEnv "rsa_haskell_bindir") (\_ -> return bindir)
149
getBinDir, getLibDir, getDataDir, getLibexecDir, getSysconfDir :: IO FilePath getBinDir = catchIO (getEnv "rsa_haskell_bindir") (\_ -> return bindir)
149
getBinDir = catchIO (getEnv "rsa_haskell_bindir") (\_ -> return bindir)
71
false
true
5
8
16
56
26
30
null
null
expipiplus1/spir-v
Language/SpirV/OpCode.hs
mit
instructionSize OpGroupFAdd = Fixed 6
37
instructionSize OpGroupFAdd = Fixed 6
37
instructionSize OpGroupFAdd = Fixed 6
37
false
false
0
5
4
12
5
7
null
null
sdiehl/ghc
compiler/simplCore/SetLevels.hs
bsd-3-clause
isBottomThunk :: Maybe (Arity, s) -> Bool -- See Note [Bottoming floats] (2) isBottomThunk (Just (0, _)) = True
111
isBottomThunk :: Maybe (Arity, s) -> Bool isBottomThunk (Just (0, _)) = True
76
isBottomThunk (Just (0, _)) = True
34
true
true
0
8
18
40
22
18
null
null
HIPERFIT/futhark
src/Futhark/IR/GPU/Op.hs
isc
checkSegLevel (Just SegThread {}) _ = TC.bad $ TC.TypeError "SegOps cannot occur when already at thread level."
113
checkSegLevel (Just SegThread {}) _ = TC.bad $ TC.TypeError "SegOps cannot occur when already at thread level."
113
checkSegLevel (Just SegThread {}) _ = TC.bad $ TC.TypeError "SegOps cannot occur when already at thread level."
113
false
false
0
8
18
32
15
17
null
null
mpkh/Idris-dev
src/Idris/DSL.hs
bsd-3-clause
expandSugar dsl (PCase fc s opts) = PCase fc (expandSugar dsl s) (map (pmap (expandSugar dsl)) opts)
140
expandSugar dsl (PCase fc s opts) = PCase fc (expandSugar dsl s) (map (pmap (expandSugar dsl)) opts)
140
expandSugar dsl (PCase fc s opts) = PCase fc (expandSugar dsl s) (map (pmap (expandSugar dsl)) opts)
140
false
false
0
11
56
58
27
31
null
null
sordina/matasano-cryptopals
src/Set1/Challenge_1.hs
mit
main :: IO () main = print $ hexStringTo64String input == output
64
main :: IO () main = print $ hexStringTo64String input == output
64
main = print $ hexStringTo64String input == output
50
false
true
0
7
11
27
13
14
null
null
osa1/language-lua
src/Language/Lua/Annotated/Simplify.hs
bsd-3-clause
sExp (A.Vararg _) = Vararg
26
sExp (A.Vararg _) = Vararg
26
sExp (A.Vararg _) = Vararg
26
false
false
0
7
4
18
8
10
null
null
SAdams601/HaRe
old/testing/asPatterns/A8.hs
bsd-3-clause
buildtree :: Ord a => [a] -> BTree a buildtree [] = Empty
57
buildtree :: Ord a => [a] -> BTree a buildtree [] = Empty
57
buildtree [] = Empty
20
false
true
0
9
12
38
17
21
null
null
vTurbine/ghc
compiler/main/TidyPgm.hs
bsd-3-clause
extendScope :: Var -> DFFV a -> DFFV a extendScope v (DFFV f) = DFFV (\env st -> f (extendVarSet env v) st)
107
extendScope :: Var -> DFFV a -> DFFV a extendScope v (DFFV f) = DFFV (\env st -> f (extendVarSet env v) st)
107
extendScope v (DFFV f) = DFFV (\env st -> f (extendVarSet env v) st)
68
false
true
0
10
22
62
30
32
null
null
sdiehl/ghc
libraries/base/Foreign/C/Error.hs
bsd-3-clause
eNOLINK = Errno (CONST_ENOLINK)
39
eNOLINK = Errno (CONST_ENOLINK)
39
eNOLINK = Errno (CONST_ENOLINK)
39
false
false
1
5
11
15
6
9
null
null
abooij/cubicaltt
Resolver.hs
mit
unApps u ws = (u, ws)
29
unApps u ws = (u, ws)
29
unApps u ws = (u, ws)
29
false
false
1
5
13
21
9
12
null
null
leshchevds/ganeti
test/hs/Test/Ganeti/Objects.hs
bsd-2-clause
-- | Tests that the logical ID is correctly found in a plain disk caseIncludeLogicalIdPlain :: HUnit.Assertion caseIncludeLogicalIdPlain = let vg_name = "xenvg" :: String lv_name = "1234sdf-qwef-2134-asff-asd2-23145d.data" :: String lv = LogicalVolume vg_name lv_name time = TOD 0 0 d = RealDis...
622
caseIncludeLogicalIdPlain :: HUnit.Assertion caseIncludeLogicalIdPlain = let vg_name = "xenvg" :: String lv_name = "1234sdf-qwef-2134-asff-asd2-23145d.data" :: String lv = LogicalVolume vg_name lv_name time = TOD 0 0 d = RealDisk $ RealDiskData (LIDPlain lv) [] ["node1.example.com"] "d...
556
caseIncludeLogicalIdPlain = let vg_name = "xenvg" :: String lv_name = "1234sdf-qwef-2134-asff-asd2-23145d.data" :: String lv = LogicalVolume vg_name lv_name time = TOD 0 0 d = RealDisk $ RealDiskData (LIDPlain lv) [] ["node1.example.com"] "diskname" 1000 DiskRdWr No...
511
true
true
0
12
149
117
60
57
null
null
dmjio/CompactMap
src/Data/CompactMap.hs
bsd-3-clause
withExisting m fn = fn m
28
withExisting m fn = fn m
28
withExisting m fn = fn m
28
false
false
0
5
9
14
6
8
null
null
HJvT/hdirect
src/Parser.hs
bsd-3-clause
action_346 (68#) = happyGoto action_143
39
action_346 (68#) = happyGoto action_143
39
action_346 (68#) = happyGoto action_143
39
false
false
0
6
4
15
7
8
null
null