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
olsner/ghc
compiler/coreSyn/CoreUnfold.hs
bsd-3-clause
calcUnfoldingGuidance dflags is_top_bottoming expr = case sizeExpr dflags bOMB_OUT_SIZE val_bndrs body of TooBig -> UnfNever SizeIs size cased_bndrs scrut_discount | uncondInline expr n_val_bndrs size -> UnfWhen { ug_unsat_ok = unSaturatedOk , ug_boring_ok = boringCxtOk...
5,009
calcUnfoldingGuidance dflags is_top_bottoming expr = case sizeExpr dflags bOMB_OUT_SIZE val_bndrs body of TooBig -> UnfNever SizeIs size cased_bndrs scrut_discount | uncondInline expr n_val_bndrs size -> UnfWhen { ug_unsat_ok = unSaturatedOk , ug_boring_ok = boringCxtOk...
5,009
calcUnfoldingGuidance dflags is_top_bottoming expr = case sizeExpr dflags bOMB_OUT_SIZE val_bndrs body of TooBig -> UnfNever SizeIs size cased_bndrs scrut_discount | uncondInline expr n_val_bndrs size -> UnfWhen { ug_unsat_ok = unSaturatedOk , ug_boring_ok = boringCxtOk...
5,009
false
false
19
13
1,461
299
157
142
null
null
zorion/acm-uva
H99/Problems010.hs
gpl-3.0
flatten (List (a:as)) = flatten a ++ flatten (List as)
54
flatten (List (a:as)) = flatten a ++ flatten (List as)
54
flatten (List (a:as)) = flatten a ++ flatten (List as)
54
false
false
0
9
9
38
18
20
null
null
snowleopard/alga
test/Algebra/Graph/Test/Relation.hs
mit
tPoly :: Testsuite Relation Ord tPoly = ("Relation.", relationAPI)
66
tPoly :: Testsuite Relation Ord tPoly = ("Relation.", relationAPI)
66
tPoly = ("Relation.", relationAPI)
34
false
true
0
5
8
22
12
10
null
null
fultonms/artificial-intelligence
exam/p2.hs
mit
bfs x op | trace (show x) False = undefined
43
bfs x op | trace (show x) False = undefined
43
bfs x op | trace (show x) False = undefined
43
false
false
0
10
9
29
12
17
null
null
dancor/melang
src/Main/wikt-to-defs.hs
mit
main :: IO () main = do args <- getArgs lang <- case args of [arg] -> return arg _ -> error $ concat [ "usage e.g.: " , "/usr/bin/time < ~/data/wikt/en-es.txt " ++ "./wikt-to-defs es > lang/es/wikt-defs.txt" ] dict <- HMS.fromList . zipWith (\n (word:_fr...
862
main :: IO () main = do args <- getArgs lang <- case args of [arg] -> return arg _ -> error $ concat [ "usage e.g.: " , "/usr/bin/time < ~/data/wikt/en-es.txt " ++ "./wikt-to-defs es > lang/es/wikt-defs.txt" ] dict <- HMS.fromList . zipWith (\n (word:_fr...
862
main = do args <- getArgs lang <- case args of [arg] -> return arg _ -> error $ concat [ "usage e.g.: " , "/usr/bin/time < ~/data/wikt/en-es.txt " ++ "./wikt-to-defs es > lang/es/wikt-defs.txt" ] dict <- HMS.fromList . zipWith (\n (word:_freq:spPart:stat...
848
false
true
0
20
285
311
155
156
null
null
wtetzner/hatemail
haskell/src/Connection.hs
gpl-3.0
writeText :: IMAPConnection -> BZ.ByteString -> IO () writeText (SSLConn ctx) text = sendData ctx text
102
writeText :: IMAPConnection -> BZ.ByteString -> IO () writeText (SSLConn ctx) text = sendData ctx text
102
writeText (SSLConn ctx) text = sendData ctx text
48
false
true
0
8
15
46
21
25
null
null
OpenXT/manager
rpc-proxy/Msg/Json.hs
gpl-2.0
jmsgErr tag act = do x <- act when (isNothing x) $ liftIO $ warn ("converting " ++ tag ++ " to dbus message FAILED") return x
144
jmsgErr tag act = do x <- act when (isNothing x) $ liftIO $ warn ("converting " ++ tag ++ " to dbus message FAILED") return x
144
jmsgErr tag act = do x <- act when (isNothing x) $ liftIO $ warn ("converting " ++ tag ++ " to dbus message FAILED") return x
144
false
false
0
11
45
59
26
33
null
null
cbrghostrider/Hacking
HackerRank/Contests/ProjectEuler/008_largestProductSeries.hs
mit
splitList :: [String] -> [(String, String)] splitList [] = []
61
splitList :: [String] -> [(String, String)] splitList [] = []
61
splitList [] = []
17
false
true
0
7
9
34
19
15
null
null
nushio3/ghc
compiler/prelude/TysWiredIn.hs
bsd-3-clause
pcNonRecDataTyCon :: Name -> Maybe CType -> [TyVar] -> [DataCon] -> TyCon -- Not an enumeration pcNonRecDataTyCon = pcTyCon False NonRecursive
142
pcNonRecDataTyCon :: Name -> Maybe CType -> [TyVar] -> [DataCon] -> TyCon pcNonRecDataTyCon = pcTyCon False NonRecursive
120
pcNonRecDataTyCon = pcTyCon False NonRecursive
46
true
true
0
9
20
42
22
20
null
null
JoshuaGross/STILC
Check.hs
mit
runCheck :: Env -> Check a -> Either TypeError a runCheck env = flip runReader env . runExceptT
95
runCheck :: Env -> Check a -> Either TypeError a runCheck env = flip runReader env . runExceptT
95
runCheck env = flip runReader env . runExceptT
46
false
true
0
7
17
39
18
21
null
null
ga2arch/youtube-radio.hs
src/Radio.hs
mit
ffmpeg :: Show a => TBMChan BU.ByteString -> a -> BC.ByteString -> IO () ffmpeg out bitrate url = do f <- forkExecuteFile "ffmpeg" ["-i", (toStrict . BC.init $ url), "-vn", "-f", "mp3", "-ab", (BU.fromString $ (show bitrate) ++ "k"), "-"] Nothing Nothing (Just $ return ())...
464
ffmpeg :: Show a => TBMChan BU.ByteString -> a -> BC.ByteString -> IO () ffmpeg out bitrate url = do f <- forkExecuteFile "ffmpeg" ["-i", (toStrict . BC.init $ url), "-vn", "-f", "mp3", "-ab", (BU.fromString $ (show bitrate) ++ "k"), "-"] Nothing Nothing (Just $ return ())...
464
ffmpeg out bitrate url = do f <- forkExecuteFile "ffmpeg" ["-i", (toStrict . BC.init $ url), "-vn", "-f", "mp3", "-ab", (BU.fromString $ (show bitrate) ++ "k"), "-"] Nothing Nothing (Just $ return ()) (Just $ sinkTBMChan out False) (Just $ CL.sinkNull) _ <-...
391
false
true
0
14
137
192
97
95
null
null
lubomir/dot-race
fay/GameScreen.hs
bsd-3-clause
getCurrentTrace :: GameState -> PlayerTrace getCurrentTrace s = gsTraces s !! (gsCurrentPlayer s - 1)
101
getCurrentTrace :: GameState -> PlayerTrace getCurrentTrace s = gsTraces s !! (gsCurrentPlayer s - 1)
101
getCurrentTrace s = gsTraces s !! (gsCurrentPlayer s - 1)
57
false
true
2
8
14
42
18
24
null
null
ksaveljev/hake-2
src/Game/Monsters/MFlyer.hs
bsd-3-clause
flyerMoveWalk :: MMoveT flyerMoveWalk = MMoveT "flyerMoveWalk" frameStand01 frameStand45 flyerFramesWalk Nothing
112
flyerMoveWalk :: MMoveT flyerMoveWalk = MMoveT "flyerMoveWalk" frameStand01 frameStand45 flyerFramesWalk Nothing
112
flyerMoveWalk = MMoveT "flyerMoveWalk" frameStand01 frameStand45 flyerFramesWalk Nothing
88
false
true
0
5
10
22
11
11
null
null
xnning/fcore
lib/typeCheck/TypeCheck.hs
bsd-2-clause
checkFieldAccess :: JCallee ClassName -> FieldName -> Checker ClassName checkFieldAccess callee f = do typeserver <- getTypeServer res <- liftIO (fieldTypeOf typeserver c (f, static_flag)) case res of Nothing -> throwError (noExpr $ NoSuchField callee f) Just return_class -> ...
396
checkFieldAccess :: JCallee ClassName -> FieldName -> Checker ClassName checkFieldAccess callee f = do typeserver <- getTypeServer res <- liftIO (fieldTypeOf typeserver c (f, static_flag)) case res of Nothing -> throwError (noExpr $ NoSuchField callee f) Just return_class -> ...
396
checkFieldAccess callee f = do typeserver <- getTypeServer res <- liftIO (fieldTypeOf typeserver c (f, static_flag)) case res of Nothing -> throwError (noExpr $ NoSuchField callee f) Just return_class -> return return_class where (static_flag, c) = unwrapJCallee ca...
324
false
true
0
13
101
121
57
64
null
null
da-x/lamdu
Lamdu/GUI/ExpressionEdit/RecordEdit.hs
gpl-3.0
shouldAddBg :: Monad m => Sugar.Record name m a -> Bool shouldAddBg (Sugar.Record [] Sugar.ClosedRecord{} _) = False
116
shouldAddBg :: Monad m => Sugar.Record name m a -> Bool shouldAddBg (Sugar.Record [] Sugar.ClosedRecord{} _) = False
116
shouldAddBg (Sugar.Record [] Sugar.ClosedRecord{} _) = False
60
false
true
0
9
17
54
26
28
null
null
mgsloan/language-typescript
src/Language/TypeScript/Pretty.hs
mit
renderAmbientClassBodyElement (AmbientMemberDeclaration p s prop (Left ty)) = renderMaybe publicOrPrivate p <+> renderMaybe static s <+> propertyName prop <+> renderMaybe typeAnnotation ty
196
renderAmbientClassBodyElement (AmbientMemberDeclaration p s prop (Left ty)) = renderMaybe publicOrPrivate p <+> renderMaybe static s <+> propertyName prop <+> renderMaybe typeAnnotation ty
196
renderAmbientClassBodyElement (AmbientMemberDeclaration p s prop (Left ty)) = renderMaybe publicOrPrivate p <+> renderMaybe static s <+> propertyName prop <+> renderMaybe typeAnnotation ty
196
false
false
6
9
29
60
26
34
null
null
DanielWaterworth/Idris-dev
src/IRTS/Lang.hs
bsd-3-clause
lift env (LCon i n args) = do args' <- mapM (lift env) args return (LCon i n args')
113
lift env (LCon i n args) = do args' <- mapM (lift env) args return (LCon i n args')
113
lift env (LCon i n args) = do args' <- mapM (lift env) args return (LCon i n args')
113
false
false
0
10
48
57
25
32
null
null
plaprade/haskoin
haskoin-wallet/src/Network/Haskoin/Wallet/Client/Commands.hs
unlicense
cmdNewAcc :: Bool -> String -> [String] -> Handler () cmdNewAcc readOnly name ls = do e <- R.asks configEntropy d <- R.asks configDerivIndex _ <- return $! typ accountExists name >>= (`when` error "Account exists") (masterM, keyM, mnemonicM, passM) <- go =<< askMnemonicOrKey "Enter mnemonic,...
1,539
cmdNewAcc :: Bool -> String -> [String] -> Handler () cmdNewAcc readOnly name ls = do e <- R.asks configEntropy d <- R.asks configDerivIndex _ <- return $! typ accountExists name >>= (`when` error "Account exists") (masterM, keyM, mnemonicM, passM) <- go =<< askMnemonicOrKey "Enter mnemonic,...
1,539
cmdNewAcc readOnly name ls = do e <- R.asks configEntropy d <- R.asks configDerivIndex _ <- return $! typ accountExists name >>= (`when` error "Account exists") (masterM, keyM, mnemonicM, passM) <- go =<< askMnemonicOrKey "Enter mnemonic, extended key or leave empty to generate: " let ne...
1,485
false
true
0
13
489
466
236
230
null
null
edoardo90/lsystem
src/FractalTree.hs
bsd-3-clause
colors = Color (makeColorI 158 191 109 255) : colors
52
colors = Color (makeColorI 158 191 109 255) : colors
52
colors = Color (makeColorI 158 191 109 255) : colors
52
false
false
0
8
9
25
12
13
null
null
wfleming/advent-of-code-2016
2016/test/D22Spec.hs
bsd-3-clause
fixtureInput = "/dev/grid/node-x0-y0 10T 8T 2T 80%\n" ++ "/dev/grid/node-x0-y1 11T 6T 5T 54%\n" ++ "/dev/grid/node-x0-y2 32T 28T 4T 87%\n" ++ "/dev/grid/node-x1-y0 9T 7T 2T 77%\n" ++ "/dev/grid/node-x1-y1 8T 0T...
608
fixtureInput = "/dev/grid/node-x0-y0 10T 8T 2T 80%\n" ++ "/dev/grid/node-x0-y1 11T 6T 5T 54%\n" ++ "/dev/grid/node-x0-y2 32T 28T 4T 87%\n" ++ "/dev/grid/node-x1-y0 9T 7T 2T 77%\n" ++ "/dev/grid/node-x1-y1 8T 0T...
608
fixtureInput = "/dev/grid/node-x0-y0 10T 8T 2T 80%\n" ++ "/dev/grid/node-x0-y1 11T 6T 5T 54%\n" ++ "/dev/grid/node-x0-y2 32T 28T 4T 87%\n" ++ "/dev/grid/node-x1-y0 9T 7T 2T 77%\n" ++ "/dev/grid/node-x1-y1 8T 0T...
608
false
false
1
12
277
42
19
23
null
null
elbrujohalcon/hfiar
src/HFiaR/GUI.hs
bsd-3-clause
cellId :: Int -> Int -> Id cellId c r = 5300 + c * 10 + r
57
cellId :: Int -> Int -> Id cellId c r = 5300 + c * 10 + r
57
cellId c r = 5300 + c * 10 + r
30
false
true
5
8
17
45
19
26
null
null
FranklinChen/hugs98-plus-Sep2006
packages/Cabal/Network/Hackage/CabalInstall/Install.hs
bsd-3-clause
downloadPkg :: ConfigFlags -> PackageIdentifier -> String -> IO FilePath downloadPkg cfg pkg location = do fetched <- isFetched cfg pkg if fetched then do pkgIsPresent (configOutputGen cfg) pkg return (packageFile cfg pkg) else do downloadingPkg (configOutputGen ...
378
downloadPkg :: ConfigFlags -> PackageIdentifier -> String -> IO FilePath downloadPkg cfg pkg location = do fetched <- isFetched cfg pkg if fetched then do pkgIsPresent (configOutputGen cfg) pkg return (packageFile cfg pkg) else do downloadingPkg (configOutputGen ...
378
downloadPkg cfg pkg location = do fetched <- isFetched cfg pkg if fetched then do pkgIsPresent (configOutputGen cfg) pkg return (packageFile cfg pkg) else do downloadingPkg (configOutputGen cfg) pkg fetchPackage cfg pkg location
305
false
true
0
12
119
108
49
59
null
null
enolan/Idris-dev
src/Idris/Core/TT.hs
bsd-3-clause
constIsType :: Const -> Bool constIsType (I _) = False
54
constIsType :: Const -> Bool constIsType (I _) = False
54
constIsType (I _) = False
25
false
true
0
7
9
24
12
12
null
null
FranklinChen/hugs98-plus-Sep2006
packages/fgl/Data/Graph/Inductive/Example.hs
bsd-3-clause
d1,d3 :: Gr Int Int a = ([],1,'a',[]) & empty
70
d1,d3 :: Gr Int Int a = ([],1,'a',[]) & empty
69
a = ([],1,'a',[]) & empty
28
false
true
4
6
34
46
22
24
null
null
adaszko/concurrent-ordered-set
test/Main.hs
bsd-3-clause
prop_inserts_very_concurrently :: Property prop_inserts_very_concurrently = monadicIO $ do contents <- pick $ listOf genElem numThreads <- genThreads level <- pick genLevel elems <- replicateM numThreads $ pick $ listOf genElem result <- run $ do gen <- getStdGen oset <- fromList gen level contents ...
511
prop_inserts_very_concurrently :: Property prop_inserts_very_concurrently = monadicIO $ do contents <- pick $ listOf genElem numThreads <- genThreads level <- pick genLevel elems <- replicateM numThreads $ pick $ listOf genElem result <- run $ do gen <- getStdGen oset <- fromList gen level contents ...
511
prop_inserts_very_concurrently = monadicIO $ do contents <- pick $ listOf genElem numThreads <- genThreads level <- pick genLevel elems <- replicateM numThreads $ pick $ listOf genElem result <- run $ do gen <- getStdGen oset <- fromList gen level contents mvars <- mapM (\elt -> myForkIO $ mapM_ (...
468
false
true
0
19
109
181
81
100
null
null
urbanslug/ghc
compiler/cmm/CmmType.hs
bsd-3-clause
bHalfWord :: DynFlags -> CmmType bHalfWord dflags = cmmBits (halfWordWidth dflags)
82
bHalfWord :: DynFlags -> CmmType bHalfWord dflags = cmmBits (halfWordWidth dflags)
82
bHalfWord dflags = cmmBits (halfWordWidth dflags)
49
false
true
0
7
10
27
13
14
null
null
msakai/icfpc2013
src/GenProgram/Template.hs
bsd-2-clause
refine :: Template -> [String] -> [Template] refine t ops = case holes t of h:_ -> refineH t h ops [] -> []
118
refine :: Template -> [String] -> [Template] refine t ops = case holes t of h:_ -> refineH t h ops [] -> []
118
refine t ops = case holes t of h:_ -> refineH t h ops [] -> []
73
false
true
0
8
34
64
32
32
null
null
junjihashimoto/hsverilog
tests/test.hs
bsd-3-clause
trimSpace (' ':')':xs) = trimSpace (')':xs)
43
trimSpace (' ':')':xs) = trimSpace (')':xs)
43
trimSpace (' ':')':xs) = trimSpace (')':xs)
43
false
false
0
7
5
31
15
16
null
null
markuspf/Idris-dev
src/IRTS/CodegenC.hs
bsd-3-clause
c_irts FAny l x = l ++ x
24
c_irts FAny l x = l ++ x
24
c_irts FAny l x = l ++ x
24
false
false
0
5
7
19
8
11
null
null
sjpet/quark
src/Quark/Layout.hs
mit
thirdL f (HSplitLayout t u d p s) = HSplitLayout t u (f d) p s
62
thirdL f (HSplitLayout t u d p s) = HSplitLayout t u (f d) p s
62
thirdL f (HSplitLayout t u d p s) = HSplitLayout t u (f d) p s
62
false
false
0
7
15
44
20
24
null
null
Brightgalrs/con-lang-gen
src/HelperFunctions.hs
mit
randomSubset xs = join $ flip sample xs <$> uniform 0 (length xs)
65
randomSubset xs = join $ flip sample xs <$> uniform 0 (length xs)
65
randomSubset xs = join $ flip sample xs <$> uniform 0 (length xs)
65
false
false
0
8
12
33
15
18
null
null
JustusAdam/snaplet-scoped-session
src/Snap/Snaplet/Session/Scoped.hs
bsd-3-clause
-- | Tells the session manager to persist any changes. -- Should be called at the end of a request cycle. commitSession :: forall s v. HasManager s => Handler s v () commitSession = withTop' (toManager :: SnapletLens (Snaplet s) (TheManager s)) managerCommit
258
commitSession :: forall s v. HasManager s => Handler s v () commitSession = withTop' (toManager :: SnapletLens (Snaplet s) (TheManager s)) managerCommit
152
commitSession = withTop' (toManager :: SnapletLens (Snaplet s) (TheManager s)) managerCommit
92
true
true
0
9
43
68
34
34
null
null
bitemyapp/ghc
compiler/hsSyn/HsBinds.hs
bsd-3-clause
emptyValBindsIn, emptyValBindsOut :: HsValBindsLR a b emptyValBindsIn = ValBindsIn emptyBag []
95
emptyValBindsIn, emptyValBindsOut :: HsValBindsLR a b emptyValBindsIn = ValBindsIn emptyBag []
95
emptyValBindsIn = ValBindsIn emptyBag []
41
false
true
0
6
11
25
13
12
null
null
mattias-lundell/timber-llvm
src/Desugar2.hs
bsd-3-clause
dsWildType (TAp t t') = TAp (dsWildType t) (dsWildType t')
68
dsWildType (TAp t t') = TAp (dsWildType t) (dsWildType t')
68
dsWildType (TAp t t') = TAp (dsWildType t) (dsWildType t')
68
false
false
0
7
19
34
16
18
null
null
danr/hipspec
src/HipSpec/ParseDSL.hs
gpl-3.0
isMain :: Id -> Bool isMain = ghcName (isInfixOf "main")
66
isMain :: Id -> Bool isMain = ghcName (isInfixOf "main")
66
isMain = ghcName (isInfixOf "main")
40
false
true
0
7
19
24
12
12
null
null
forste/haReFork
tools/base/AST/HsExpMaps.hs
bsd-3-clause
seqStmt (HsLast e) = HsLast # e
40
seqStmt (HsLast e) = HsLast # e
40
seqStmt (HsLast e) = HsLast # e
40
false
false
0
7
15
19
9
10
null
null
faylang/snaplet-fay
src/Snap/Snaplet/Fay.hs
bsd-3-clause
-- | Respond with Not Found send404 :: Maybe ByteString -> Handler a b () send404 msg = do modifyResponse $ setResponseStatus 404 "Not Found" writeBS $ fromMaybe "Not Found" msg finishWith =<< getResponse -- | Respond with Internal Server Error
251
send404 :: Maybe ByteString -> Handler a b () send404 msg = do modifyResponse $ setResponseStatus 404 "Not Found" writeBS $ fromMaybe "Not Found" msg finishWith =<< getResponse -- | Respond with Internal Server Error
223
send404 msg = do modifyResponse $ setResponseStatus 404 "Not Found" writeBS $ fromMaybe "Not Found" msg finishWith =<< getResponse -- | Respond with Internal Server Error
177
true
true
0
8
47
63
29
34
null
null
peterbecich/haskell-programming-first-principles
src/Morra.hs
bsd-3-clause
-- prediction of player move, based on last two moves, if they exist prediction :: Morra (Maybe Fingers) prediction = do gameState <- get case gameState of (GameState _ playerMoves priorTwoMoves) -> case priorTwoMoves of (PriorTwoMoves (Just secondLastMove) (Just lastMove)) -> pure (Map.lookup (se...
449
prediction :: Morra (Maybe Fingers) prediction = do gameState <- get case gameState of (GameState _ playerMoves priorTwoMoves) -> case priorTwoMoves of (PriorTwoMoves (Just secondLastMove) (Just lastMove)) -> pure (Map.lookup (secondLastMove, lastMove) playerMoves) (PriorTwoMoves _ _) -> p...
380
prediction = do gameState <- get case gameState of (GameState _ playerMoves priorTwoMoves) -> case priorTwoMoves of (PriorTwoMoves (Just secondLastMove) (Just lastMove)) -> pure (Map.lookup (secondLastMove, lastMove) playerMoves) (PriorTwoMoves _ _) -> pure Nothing -- computer makes decis...
344
true
true
0
16
90
118
59
59
null
null
ksaveljev/hake-2
src/Constants.hs
bsd-3-clause
teLightning = 33 :: Int
30
teLightning = 33 :: Int
30
teLightning = 33 :: Int
30
false
false
0
4
11
9
5
4
null
null
patperry/hs-gsl-random
lib/GSL/Random/Dist.hs
bsd-3-clause
-- | @getPareto r a b@ gets a random Pareto with exponent @a@ and scale @b@. getPareto :: RNG -> Double -> Double -> IO Double getPareto = liftRan2 gsl_ran_pareto
162
getPareto :: RNG -> Double -> Double -> IO Double getPareto = liftRan2 gsl_ran_pareto
85
getPareto = liftRan2 gsl_ran_pareto
35
true
true
0
8
29
30
15
15
null
null
weissi/diplomarbeit
test/TestRAE.hs
gpl-3.0
prop_draeAddDRAEConstants :: Element -> Element -> Element -> Element -> Element -> Element -> Element -> Element ...
691
prop_draeAddDRAEConstants :: Element -> Element -> Element -> Element -> Element -> Element -> Element -> Element ...
691
prop_draeAddDRAEConstants el1 el2 r1 r2 r3 r4 skpL skpR = let skp = deriveSkp skpL skpR el1DRAE = draeEncodePrimaryExpr skp (DualConst el1) r1 r2 el2DRAE = draeEncodePrimaryExpr skp (DualConst el2) r3 r4 el1el2DRAE = draeEncodeDRAEAdd skp el1DRAE el2DRAE act = draeDecodeFull M.empty ...
361
false
true
0
12
316
154
76
78
null
null
danr/hipspec
testsuite/prod/zeno_version/PropT45.hs
gpl-3.0
union [] ys = ys
16
union [] ys = ys
16
union [] ys = ys
16
false
false
0
6
4
13
6
7
null
null
nomeata/ghc
utils/ghc-cabal/Main.hs
bsd-3-clause
generate :: [String] -> FilePath -> FilePath -> IO () generate config_args distdir directory = withCurrentDirectory directory $ do let verbosity = normal -- XXX We shouldn't just configure with the default flags -- XXX And this, and thus the "getPersistBuildConfig distdir" below, -- aren't going to ...
8,383
generate :: [String] -> FilePath -> FilePath -> IO () generate config_args distdir directory = withCurrentDirectory directory $ do let verbosity = normal -- XXX We shouldn't just configure with the default flags -- XXX And this, and thus the "getPersistBuildConfig distdir" below, -- aren't going to ...
8,383
generate config_args distdir directory = withCurrentDirectory directory $ do let verbosity = normal -- XXX We shouldn't just configure with the default flags -- XXX And this, and thus the "getPersistBuildConfig distdir" below, -- aren't going to work when the deps aren't built yet withArgs (["...
8,329
false
true
6
21
2,925
1,721
853
868
null
null
nickgeoca/idris-py
src/IRTS/CodegenPython.hs
bsd-3-clause
cgPrim LStrFloat = cgPFun "float"
33
cgPrim LStrFloat = cgPFun "float"
33
cgPrim LStrFloat = cgPFun "float"
33
false
false
1
5
4
16
5
11
null
null
rrnewton/stack
test/integration/IntegrationSpec.hs
bsd-3-clause
main :: IO () main = do currDir <- canonicalizePath "test/integration" let findExe name = do mexe <- findExecutable name case mexe of Nothing -> error $ name ++ " not found on PATH" Just exe -> return exe runghc <- findExe "runghc" stack <- findEx...
985
main :: IO () main = do currDir <- canonicalizePath "test/integration" let findExe name = do mexe <- findExecutable name case mexe of Nothing -> error $ name ++ " not found on PATH" Just exe -> return exe runghc <- findExe "runghc" stack <- findEx...
985
main = do currDir <- canonicalizePath "test/integration" let findExe name = do mexe <- findExecutable name case mexe of Nothing -> error $ name ++ " not found on PATH" Just exe -> return exe runghc <- findExe "runghc" stack <- findExe "stack" ...
971
false
true
0
22
330
284
126
158
null
null
Palmik/data-store
benchmarks/src/HS/B01.hs
bsd-3-clause
insertLookup :: Int -> Int -> Int -> HS -> [C01] insertLookup d1 d2 d3 s = H.queryList (H.equals $! DimOO d1) new ++ H.queryList (H.equals $! DimOM d2) new ++ H.queryList (H.equals $! DimMM d3) new where new = H.insert (C01 d1 d2 [d3]) s
246
insertLookup :: Int -> Int -> Int -> HS -> [C01] insertLookup d1 d2 d3 s = H.queryList (H.equals $! DimOO d1) new ++ H.queryList (H.equals $! DimOM d2) new ++ H.queryList (H.equals $! DimMM d3) new where new = H.insert (C01 d1 d2 [d3]) s
246
insertLookup d1 d2 d3 s = H.queryList (H.equals $! DimOO d1) new ++ H.queryList (H.equals $! DimOM d2) new ++ H.queryList (H.equals $! DimMM d3) new where new = H.insert (C01 d1 d2 [d3]) s
197
false
true
1
11
54
143
66
77
null
null
WojciechKarpiel/cayley-dickson
src/Lib.hs
bsd-3-clause
cdMultiply (Pair a1 b1) (Pair a2 b2) = Pair (cdSubstract (cdMultiply a1 a2) (cdMultiply (cdConjugate b2) b1)) (cdAdd (cdMultiply a1 b2) (cdMultiply (cdConjugate a2) b1))
173
cdMultiply (Pair a1 b1) (Pair a2 b2) = Pair (cdSubstract (cdMultiply a1 a2) (cdMultiply (cdConjugate b2) b1)) (cdAdd (cdMultiply a1 b2) (cdMultiply (cdConjugate a2) b1))
173
cdMultiply (Pair a1 b1) (Pair a2 b2) = Pair (cdSubstract (cdMultiply a1 a2) (cdMultiply (cdConjugate b2) b1)) (cdAdd (cdMultiply a1 b2) (cdMultiply (cdConjugate a2) b1))
173
false
false
0
10
28
93
45
48
null
null
nmattia/snipcheck
src/Snipcheck.hs
mit
trim :: String -> String trim = dropWhile isSpace . dropWhileEnd isSpace
72
trim :: String -> String trim = dropWhile isSpace . dropWhileEnd isSpace
72
trim = dropWhile isSpace . dropWhileEnd isSpace
47
false
true
0
7
11
31
13
18
null
null
miie/bkr
src/System/Bkr/BkrConfig.hs
bsd-3-clause
getConfFile :: IO (Maybe FilePath) getConfFile = do argIfValid <- getArgIfValid case argIfValid of Just x -> return $ Just x _ -> do bkrFromDot <- getBkrConfFromDot case bkrFromDot of Just x -> return $ Just x ...
964
getConfFile :: IO (Maybe FilePath) getConfFile = do argIfValid <- getArgIfValid case argIfValid of Just x -> return $ Just x _ -> do bkrFromDot <- getBkrConfFromDot case bkrFromDot of Just x -> return $ Just x ...
964
getConfFile = do argIfValid <- getArgIfValid case argIfValid of Just x -> return $ Just x _ -> do bkrFromDot <- getBkrConfFromDot case bkrFromDot of Just x -> return $ Just x _ -> do ...
929
false
true
2
23
431
140
60
80
null
null
PIWEEK/halisp
src/Core.hs
gpl-3.0
readContents :: [LispVal] -> IOThrowsError LispVal readContents [String filename] = liftM String $ liftIO $ readFile filename
125
readContents :: [LispVal] -> IOThrowsError LispVal readContents [String filename] = liftM String $ liftIO $ readFile filename
125
readContents [String filename] = liftM String $ liftIO $ readFile filename
74
false
true
0
9
16
48
22
26
null
null
thitp/extract-words
src/Data/Text/Words.hs
bsd-3-clause
isJap :: Char -> Bool isJap o@(ord -> c) = isJapPunct o || (c >= 0x3040 && c <= 0x309f) -- hiragana || (c >= 0x30a0 && c <= 0x30ff) -- katakana || (c >= 0xff00 && c <= 0xffef) -- full width roman || (c >= 0x4e00 && c <= 0x9faf)
247
isJap :: Char -> Bool isJap o@(ord -> c) = isJapPunct o || (c >= 0x3040 && c <= 0x309f) -- hiragana || (c >= 0x30a0 && c <= 0x30ff) -- katakana || (c >= 0xff00 && c <= 0xffef) -- full width roman || (c >= 0x4e00 && c <= 0x9faf)
247
isJap o@(ord -> c) = isJapPunct o || (c >= 0x3040 && c <= 0x309f) -- hiragana || (c >= 0x30a0 && c <= 0x30ff) -- katakana || (c >= 0xff00 && c <= 0xffef) -- full width roman || (c >= 0x4e00 && c <= 0x9faf)
225
false
true
0
12
71
110
59
51
null
null
Philonous/pontarius-xmpp
source/Network/Xmpp/Stream.hs
bsd-3-clause
mbl Nothing = []
16
mbl Nothing = []
16
mbl Nothing = []
16
false
false
0
5
3
11
5
6
null
null
AaronFriel/hs-tls
core/Network/TLS/Struct.hs
bsd-3-clause
verOfNum (3, 3) = Just TLS12
28
verOfNum (3, 3) = Just TLS12
28
verOfNum (3, 3) = Just TLS12
28
false
false
0
6
5
18
9
9
null
null
scravy/simplex
src/Simplex/Parser.hs
gpl-3.0
parseIt [ix] s@(TControl "**" : TBlock b : xs) = parseIt [Items Itemize [Item b], ix] xs
90
parseIt [ix] s@(TControl "**" : TBlock b : xs) = parseIt [Items Itemize [Item b], ix] xs
90
parseIt [ix] s@(TControl "**" : TBlock b : xs) = parseIt [Items Itemize [Item b], ix] xs
90
false
false
1
9
18
63
28
35
null
null
nmarshall23/Programming-Challenges
project-euler/055/55.hs
unlicense
rge (x:xs) = x + (merge (map (\ a -> a*10) xs))
49
merge (x:xs) = x + (merge (map (\ a -> a*10) xs))
49
merge (x:xs) = x + (merge (map (\ a -> a*10) xs))
49
false
false
0
12
13
47
24
23
null
null
icyfork/shellcheck
ShellCheck/Analytics.hs
gpl-3.0
prop_checkShorthandIf5 = verifyNot checkShorthandIf "foo && rm || printf b"
75
prop_checkShorthandIf5 = verifyNot checkShorthandIf "foo && rm || printf b"
75
prop_checkShorthandIf5 = verifyNot checkShorthandIf "foo && rm || printf b"
75
false
false
1
5
9
14
5
9
null
null
jasonzoladz/persistent
persistent/Database/Persist/Class/PersistField.hs
mit
getPersistMap (PersistByteString bs) | Just pairs <- A.decode' (L.fromChunks [bs]) = Right pairs
100
getPersistMap (PersistByteString bs) | Just pairs <- A.decode' (L.fromChunks [bs]) = Right pairs
100
getPersistMap (PersistByteString bs) | Just pairs <- A.decode' (L.fromChunks [bs]) = Right pairs
100
false
false
0
12
16
47
21
26
null
null
bananu7/Hate
src/Hate/Common.hs
mit
tryOpenWindow :: GlContextDescriptor -> (Int, Int) -> String -> IO (Maybe G.Window) tryOpenWindow cd (width, height) titl = do putStrLn $ "Opening Window (" ++ show cd ++ ")" G.windowHint (G.WindowHint'ContextVersionMajor (majVersion cd)) G.windowHint (G.WindowHint'ContextVersionMinor (minVersion cd)) ...
562
tryOpenWindow :: GlContextDescriptor -> (Int, Int) -> String -> IO (Maybe G.Window) tryOpenWindow cd (width, height) titl = do putStrLn $ "Opening Window (" ++ show cd ++ ")" G.windowHint (G.WindowHint'ContextVersionMajor (majVersion cd)) G.windowHint (G.WindowHint'ContextVersionMinor (minVersion cd)) ...
562
tryOpenWindow cd (width, height) titl = do putStrLn $ "Opening Window (" ++ show cd ++ ")" G.windowHint (G.WindowHint'ContextVersionMajor (majVersion cd)) G.windowHint (G.WindowHint'ContextVersionMinor (minVersion cd)) G.windowHint (G.WindowHint'OpenGLForwardCompat (forwardCompat cd)) G.windowHint ...
478
false
true
0
11
81
187
88
99
null
null
brendanhay/gogol
gogol-docs/gen/Network/Google/Docs/Types/Product.hs
mpl-2.0
-- | The suggested text style changes to this InlineObject, keyed by -- suggestion ID. ioeSuggestedTextStyleChanges :: Lens' InlineObjectElement (Maybe InlineObjectElementSuggestedTextStyleChanges) ioeSuggestedTextStyleChanges = lens _ioeSuggestedTextStyleChanges (\ s a -> s{_ioeSuggestedTextStyleChanges = a})
319
ioeSuggestedTextStyleChanges :: Lens' InlineObjectElement (Maybe InlineObjectElementSuggestedTextStyleChanges) ioeSuggestedTextStyleChanges = lens _ioeSuggestedTextStyleChanges (\ s a -> s{_ioeSuggestedTextStyleChanges = a})
232
ioeSuggestedTextStyleChanges = lens _ioeSuggestedTextStyleChanges (\ s a -> s{_ioeSuggestedTextStyleChanges = a})
121
true
true
0
9
39
49
26
23
null
null
brendanhay/gogol
gogol-admin-directory/gen/Network/Google/Resource/Directory/Users/Photos/Delete.hs
mpl-2.0
-- | V1 error format. updXgafv :: Lens' UsersPhotosDelete (Maybe Xgafv) updXgafv = lens _updXgafv (\ s a -> s{_updXgafv = a})
125
updXgafv :: Lens' UsersPhotosDelete (Maybe Xgafv) updXgafv = lens _updXgafv (\ s a -> s{_updXgafv = a})
103
updXgafv = lens _updXgafv (\ s a -> s{_updXgafv = a})
53
true
true
2
9
21
55
25
30
null
null
fedora-infra/pagure-haskell
src/Web/Pagure/Projects.hs
bsd-2-clause
gitTagsFork :: Username -> Repo -> PagureT [Tag] gitTagsFork u r = gitTags ("fork/" ++ T.unpack u ++ "/" ++ r)
110
gitTagsFork :: Username -> Repo -> PagureT [Tag] gitTagsFork u r = gitTags ("fork/" ++ T.unpack u ++ "/" ++ r)
110
gitTagsFork u r = gitTags ("fork/" ++ T.unpack u ++ "/" ++ r)
61
false
true
0
11
20
53
26
27
null
null
expipiplus1/vulkan
openxr/src/OpenXR/Core10/Instance.hs
bsd-3-clause
-- | xrGetInstanceProperties - Gets information about the instance -- -- == Parameter Descriptions -- -- = Description -- -- The @instanceProperties@ parameter /must/ be filled out by the runtime -- in response to this call, with information as defined in -- 'InstanceProperties'. -- -- == Return Codes -- -- [<https://w...
2,255
getInstanceProperties :: forall io . (MonadIO io) => -- | @instance@ is a handle to an 'OpenXR.Core10.Handles.Instance' previously -- created with 'createInstance'. -- -- #VUID-xrGetInstanceProperties...
1,343
getInstanceProperties instance' = liftIO . evalContT $ do let xrGetInstancePropertiesPtr = pXrGetInstanceProperties (case instance' of Instance{instanceCmds} -> instanceCmds) lift $ unless (xrGetInstancePropertiesPtr /= nullFunPtr) $ throwIO $ IOError Nothing InvalidArgument "" "The function pointer for xrGetIn...
822
true
true
0
17
442
279
151
128
null
null
markhepburn/dotxmonad
xmonad.hs
gpl-2.0
-- wrap inactive workspace with these myVisibleWSRight = ")"
60
myVisibleWSRight = ")"
22
myVisibleWSRight = ")"
22
true
false
0
4
8
7
4
3
null
null
bjornars/HaskellGame
src/Console.hs
bsd-3-clause
drawCell (ActorBlock actor) = actorImage actor
46
drawCell (ActorBlock actor) = actorImage actor
46
drawCell (ActorBlock actor) = actorImage actor
46
false
false
0
6
5
19
8
11
null
null
shayan-najd/HsParser
U/Pretty.hs
gpl-3.0
lparen = char '('
17
lparen = char '('
17
lparen = char '('
17
false
false
0
5
3
9
4
5
null
null
li-zhirui/EoplLangs
src/ImplicitRefs/Evaluator.hs
bsd-3-clause
unpackExprRef :: ExpressedValue -> IOTry Ref unpackExprRef (ExprRef ref) = return ref
85
unpackExprRef :: ExpressedValue -> IOTry Ref unpackExprRef (ExprRef ref) = return ref
85
unpackExprRef (ExprRef ref) = return ref
40
false
true
0
6
11
34
15
19
null
null
silverweed/ketchup
Ketchup/Utils.hs
mit
statusMsg 410 = "410 Gone"
26
statusMsg 410 = "410 Gone"
26
statusMsg 410 = "410 Gone"
26
false
false
0
5
4
9
4
5
null
null
christiaanb/ghc
compiler/types/TypeRep.hs
bsd-3-clause
tidyOpenTyVar :: TidyEnv -> TyVar -> (TidyEnv, TyVar) -- ^ Treat a new 'TyVar' as a binder, and give it a fresh tidy name -- using the environment if one has not already been allocated. See -- also 'tidyTyVarBndr' tidyOpenTyVar env@(_, subst) tyvar = case lookupVarEnv subst tyvar of Just tyvar' -> (env, tyvar...
445
tidyOpenTyVar :: TidyEnv -> TyVar -> (TidyEnv, TyVar) tidyOpenTyVar env@(_, subst) tyvar = case lookupVarEnv subst tyvar of Just tyvar' -> (env, tyvar') -- Already substituted Nothing -> tidyTyVarBndr env tyvar -- Treat it as a binder ---------------
285
tidyOpenTyVar env@(_, subst) tyvar = case lookupVarEnv subst tyvar of Just tyvar' -> (env, tyvar') -- Already substituted Nothing -> tidyTyVarBndr env tyvar -- Treat it as a binder ---------------
231
true
true
1
8
103
89
46
43
null
null
ben-schulz/Idris-dev
src/Idris/Info.hs
bsd-3-clause
getIdrisLibDir :: IO String getIdrisLibDir = S.getIdrisLibDir
61
getIdrisLibDir :: IO String getIdrisLibDir = S.getIdrisLibDir
61
getIdrisLibDir = S.getIdrisLibDir
33
false
true
0
5
6
16
8
8
null
null
snoyberg/ghc
compiler/llvmGen/Llvm/Types.hs
bsd-3-clause
pVarLower (LMNLocalVar s t ) = LMNLocalVar s (pLower t)
62
pVarLower (LMNLocalVar s t ) = LMNLocalVar s (pLower t)
62
pVarLower (LMNLocalVar s t ) = LMNLocalVar s (pLower t)
62
false
false
0
7
16
29
13
16
null
null
beni55/hermit
src/HERMIT/Context.hs
bsd-2-clause
-- | Determine if a variable is bound in a context. boundIn :: ReadBindings c => Var -> c -> Bool boundIn i c = i `member` hermitBindings c
139
boundIn :: ReadBindings c => Var -> c -> Bool boundIn i c = i `member` hermitBindings c
87
boundIn i c = i `member` hermitBindings c
41
true
true
0
7
28
41
21
20
null
null
mrkkrp/stack
src/Stack/Build/Target.hs
bsd-3-clause
-- | If this function returns @Nothing@, the input should be treated as a -- directory. parseRawTarget :: Text -> Maybe (RawTarget 'HasIdents) parseRawTarget t = (RTPackageIdentifier <$> parsePackageIdentifierFromString s) <|> (RTPackage <$> parsePackageNameFromString s) <|> (RTComponent <$> T.stripPref...
1,329
parseRawTarget :: Text -> Maybe (RawTarget 'HasIdents) parseRawTarget t = (RTPackageIdentifier <$> parsePackageIdentifierFromString s) <|> (RTPackage <$> parsePackageNameFromString s) <|> (RTComponent <$> T.stripPrefix ":" t) <|> parsePackageComponent where s = T.unpack t parsePackageComp...
1,241
parseRawTarget t = (RTPackageIdentifier <$> parsePackageIdentifierFromString s) <|> (RTPackage <$> parsePackageNameFromString s) <|> (RTComponent <$> T.stripPrefix ":" t) <|> parsePackageComponent where s = T.unpack t parsePackageComponent = case T.splitOn ":" t of [pn...
1,186
true
true
2
16
423
304
154
150
null
null
mapinguari/SC_HS_Proxy
src/Proxy/Query/Unit.hs
mit
tileWidth SpecialIonCannon = 3
30
tileWidth SpecialIonCannon = 3
30
tileWidth SpecialIonCannon = 3
30
false
false
0
5
3
9
4
5
null
null
shicks/shsh
Language/Sh/Parser.hs
bsd-3-clause
sequentialSep :: P () sequentialSep = choice [operator ";" >> return () ,cnewlineNS >> readHDs >> spaces ,eof >> closeHereDocs -- ? ,do unlessM insideParens $ fail "" lookAhead $ operator ")" retur...
377
sequentialSep :: P () sequentialSep = choice [operator ";" >> return () ,cnewlineNS >> readHDs >> spaces ,eof >> closeHereDocs -- ? ,do unlessM insideParens $ fail "" lookAhead $ operator ")" retur...
377
sequentialSep = choice [operator ";" >> return () ,cnewlineNS >> readHDs >> spaces ,eof >> closeHereDocs -- ? ,do unlessM insideParens $ fail "" lookAhead $ operator ")" return () ...
355
false
true
0
11
198
91
43
48
null
null
alexander-at-github/eta
compiler/ETA/BasicTypes/Name.hs
bsd-3-clause
isBuiltInSyntax :: Name -> Bool isBuiltInSyntax (Name {n_sort = WiredIn _ _ BuiltInSyntax}) = True
98
isBuiltInSyntax :: Name -> Bool isBuiltInSyntax (Name {n_sort = WiredIn _ _ BuiltInSyntax}) = True
98
isBuiltInSyntax (Name {n_sort = WiredIn _ _ BuiltInSyntax}) = True
66
false
true
3
7
14
43
20
23
null
null
balopat/quantum-computing
app/ClassicalMultiSlitExperimentSimulation.hs
bsd-3-clause
getLines :: Int -> IO [String] getLines 0 = return []
54
getLines :: Int -> IO [String] getLines 0 = return []
53
getLines 0 = return []
22
false
true
0
7
11
29
14
15
null
null
leepike/copilot-core
src/Copilot/Core/Interpret/Eval.hs
bsd-3-clause
-------------------------------------------------------------------------------- evalOp3 :: Op3 a b c d -> (a -> b -> c -> d) evalOp3 (Mux _) = \ !v !x !y -> if v then x else y
177
evalOp3 :: Op3 a b c d -> (a -> b -> c -> d) evalOp3 (Mux _) = \ !v !x !y -> if v then x else y
95
evalOp3 (Mux _) = \ !v !x !y -> if v then x else y
50
true
true
0
9
31
69
35
34
null
null
hermish/courseography
app/Response/Calendar.hs
gpl-3.0
endTimesByCourse dataInOrder _ = endTime dataInOrder
52
endTimesByCourse dataInOrder _ = endTime dataInOrder
52
endTimesByCourse dataInOrder _ = endTime dataInOrder
52
false
false
0
5
5
14
6
8
null
null
emaphis/Haskell-Practice
cis194/src/Misc/Date2.hs
bsd-3-clause
-- "Thu Jan 1 00:00:10 UTC 1970" utcTime4 :: Maybe UTCTime utcTime4 = parseTimeM True defaultTimeLocale "%c" "Thu Jan 1 00:00:10 UTC 1970" :: Maybe UTCTime
158
utcTime4 :: Maybe UTCTime utcTime4 = parseTimeM True defaultTimeLocale "%c" "Thu Jan 1 00:00:10 UTC 1970" :: Maybe UTCTime
122
utcTime4 = parseTimeM True defaultTimeLocale "%c" "Thu Jan 1 00:00:10 UTC 1970" :: Maybe UTCTime
96
true
true
2
6
28
34
16
18
null
null
tjakway/ghcjvm
compiler/typecheck/TcBinds.hs
bsd-3-clause
instErrCtxt :: Name -> TcType -> TidyEnv -> TcM (TidyEnv, SDoc) instErrCtxt name ty env = do { let (env', ty') = tidyOpenType env ty ; return (env', hang (text "When instantiating" <+> quotes (ppr name) <> text ", initially inferred to have" $$ text "th...
647
instErrCtxt :: Name -> TcType -> TidyEnv -> TcM (TidyEnv, SDoc) instErrCtxt name ty env = do { let (env', ty') = tidyOpenType env ty ; return (env', hang (text "When instantiating" <+> quotes (ppr name) <> text ", initially inferred to have" $$ text "th...
647
instErrCtxt name ty env = do { let (env', ty') = tidyOpenType env ty ; return (env', hang (text "When instantiating" <+> quotes (ppr name) <> text ", initially inferred to have" $$ text "this overly-general type:") 2 (ppr ty') ...
583
false
true
0
17
236
169
83
86
null
null
siddhanathan/yi
example-configs/yi-vim-colemak-vty-dynamic/yi.hs
gpl-2.0
myBindings :: (V2.EventString -> EditorM ()) -> [V2.VimBinding] myBindings eval = let nmap x y = V2.mkStringBindingE V2.Normal V2.Drop (x, y, id) imap x y = V2.VimBindingE (\evs state -> case V2.vsMode state of V2.Insert _ -> fmap (...
1,117
myBindings :: (V2.EventString -> EditorM ()) -> [V2.VimBinding] myBindings eval = let nmap x y = V2.mkStringBindingE V2.Normal V2.Drop (x, y, id) imap x y = V2.VimBindingE (\evs state -> case V2.vsMode state of V2.Insert _ -> fmap (...
1,117
myBindings eval = let nmap x y = V2.mkStringBindingE V2.Normal V2.Drop (x, y, id) imap x y = V2.VimBindingE (\evs state -> case V2.vsMode state of V2.Insert _ -> fmap (const (y >> return V2.Continue)) ...
1,053
false
true
0
21
406
297
151
146
null
null
GaloisInc/curl
Network/Curl/Easy.hs
bsd-3-clause
perform :: Curl -> IO CurlCode perform hh = liftM toCode $ curlPrim hh $ \_ h -> easy_perform_prim h
100
perform :: Curl -> IO CurlCode perform hh = liftM toCode $ curlPrim hh $ \_ h -> easy_perform_prim h
100
perform hh = liftM toCode $ curlPrim hh $ \_ h -> easy_perform_prim h
69
false
true
0
7
19
45
21
24
null
null
continuouspi/cpiwb
profileTrue.hs
gpl-3.0
f26 = Nec (0,25) f18
20
f26 = Nec (0,25) f18
20
f26 = Nec (0,25) f18
20
false
false
1
6
4
20
9
11
null
null
brendanhay/gogol
gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs
mpl-2.0
-- | The channelItem object contains details about a resource which was added -- to a channel. This property is only present if the snippet.type is -- channelItem. acdChannelItem :: Lens' ActivityContentDetails (Maybe ActivityContentDetailsChannelItem) acdChannelItem = lens _acdChannelItem (\ s a -> s{_acdChann...
332
acdChannelItem :: Lens' ActivityContentDetails (Maybe ActivityContentDetailsChannelItem) acdChannelItem = lens _acdChannelItem (\ s a -> s{_acdChannelItem = a})
168
acdChannelItem = lens _acdChannelItem (\ s a -> s{_acdChannelItem = a})
79
true
true
0
9
52
50
27
23
null
null
UCSD-PL/RefScript
src/Language/Rsc/Typecheck/Types.hs
bsd-3-clause
infixOpId OpSpRShift = builtinId "OpSpRShift"
52
infixOpId OpSpRShift = builtinId "OpSpRShift"
52
infixOpId OpSpRShift = builtinId "OpSpRShift"
52
false
false
0
5
11
12
5
7
null
null
Zankoku-Okuno/ammonite
Language/Ammonite/Syntax/Printer.hs
gpl-3.0
showCont (RecordCont) = "TODO RecordCont"
41
showCont (RecordCont) = "TODO RecordCont"
41
showCont (RecordCont) = "TODO RecordCont"
41
false
false
0
5
4
13
6
7
null
null
YoEight/dotnet-timespan
Data/DotNet/TimeSpan/Internal.hs
bsd-3-clause
-------------------------------------------------------------------------------- -- | Returns a 'TimeSpan' that represents a specified number of hours, where the -- specification is accurate to the nearest millisecond. fromHours :: Double -> TimeSpan fromHours i = interval i millisPerHour
291
fromHours :: Double -> TimeSpan fromHours i = interval i millisPerHour
70
fromHours i = interval i millisPerHour
38
true
true
0
5
35
26
14
12
null
null
brunoczim/PulseLambda
PulseLambda/TokenStream.hs
gpl-3.0
showListOfTokens [x,y] = show x ++ " or " ++ show y
51
showListOfTokens [x,y] = show x ++ " or " ++ show y
51
showListOfTokens [x,y] = show x ++ " or " ++ show y
51
false
false
0
7
11
29
14
15
null
null
diffusionkinetics/open
fuml/lib/Fuml/Base/Logistic.hs
mit
myBOpts = BFGSOpts 1e-7 2e-5 200
32
myBOpts = BFGSOpts 1e-7 2e-5 200
32
myBOpts = BFGSOpts 1e-7 2e-5 200
32
false
false
1
5
5
17
6
11
null
null
cdornan/idiot
Text/RE/PCRE/RE.hs
bsd-3-clause
reMS = reMultilineSensitive
47
reMS = reMultilineSensitive
47
reMS = reMultilineSensitive
47
false
false
0
4
22
6
3
3
null
null
harendra-kumar/unicode-transforms
Data/Unicode/Internal/NormalizeStream.hs
bsd-3-clause
initJamo :: Char -> Int -> ST s (Int, ComposeState) initJamo c i = return (i, ComposeJamo (Jamo c))
99
initJamo :: Char -> Int -> ST s (Int, ComposeState) initJamo c i = return (i, ComposeJamo (Jamo c))
99
initJamo c i = return (i, ComposeJamo (Jamo c))
47
false
true
0
9
18
53
27
26
null
null
monky-hs/monky
Monky/Battery.hs
lgpl-3.0
getCurrentStatusM (BatH (ChargeNow _ _ _ _ _ adp) _) = getCurrentStatusInt adp
80
getCurrentStatusM (BatH (ChargeNow _ _ _ _ _ adp) _) = getCurrentStatusInt adp
80
getCurrentStatusM (BatH (ChargeNow _ _ _ _ _ adp) _) = getCurrentStatusInt adp
80
false
false
0
9
14
36
17
19
null
null
feuerbach/bert
src/Data/BERT/Term.hs
bsd-3-clause
putTerm (BinaryTerm value) = tag 109 >> (put32u $ B.length value) >> putL value
79
putTerm (BinaryTerm value) = tag 109 >> (put32u $ B.length value) >> putL value
79
putTerm (BinaryTerm value) = tag 109 >> (put32u $ B.length value) >> putL value
79
false
false
0
10
13
41
19
22
null
null
phischu/fragnix
builtins/ghc-prim/GHC.Prim.hs
bsd-3-clause
-- | Write a vector to specified index of mutable array. writeWord32X4Array# :: MutableByteArray# s -> Int# -> Word32X4# -> State# s -> State# s writeWord32X4Array# = writeWord32X4Array#
188
writeWord32X4Array# :: MutableByteArray# s -> Int# -> Word32X4# -> State# s -> State# s writeWord32X4Array# = writeWord32X4Array#
129
writeWord32X4Array# = writeWord32X4Array#
41
true
true
0
9
29
37
18
19
null
null
awalterschulze/xhaskell-regex-deriv
lhs2hs/lhs2hs.hs
bsd-3-clause
-- Opens a file, given name and mode openGivenFile :: String -> IOMode -> IO Handle openGivenFile name mode = do handle <- openFile name mode return handle
165
openGivenFile :: String -> IOMode -> IO Handle openGivenFile name mode = do handle <- openFile name mode return handle
128
openGivenFile name mode = do handle <- openFile name mode return handle
81
true
true
0
8
37
46
21
25
null
null
ekmett/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxCB_SIMPLE :: Int wxCB_SIMPLE = 4
34
wxCB_SIMPLE :: Int wxCB_SIMPLE = 4
34
wxCB_SIMPLE = 4
15
false
true
0
6
5
18
7
11
null
null
cirquit/Personal-Repository
Haskell/RWH/Regex/Glob.hs
mit
listPlain :: FilePath -> String -> IO [String] listPlain dirName baseName = do exists <- if null baseName then doesDirectoryExist dirName else fileExist (dirName </> baseName) ...
716
listPlain :: FilePath -> String -> IO [String] listPlain dirName baseName = do exists <- if null baseName then doesDirectoryExist dirName else fileExist (dirName </> baseName) ...
716
listPlain dirName baseName = do exists <- if null baseName then doesDirectoryExist dirName else fileExist (dirName </> baseName) return (if exists then [baseName] else []) ...
669
false
true
0
12
314
90
45
45
null
null
uuhan/Idris-dev
src/Idris/Core/TT.hs
bsd-3-clause
traceWhen True msg a = trace msg a
34
traceWhen True msg a = trace msg a
34
traceWhen True msg a = trace msg a
34
false
false
0
5
7
20
8
12
null
null
prb/perpubplat
src/Blog/FrontEnd/Views.hs
bsd-3-clause
one_if_nothing :: Maybe Int -> Int one_if_nothing Nothing = 1
61
one_if_nothing :: Maybe Int -> Int one_if_nothing Nothing = 1
61
one_if_nothing Nothing = 1
26
false
true
0
6
9
21
10
11
null
null
nushio3/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
constructorClassName = clsQual gHC_GENERICS (fsLit "Constructor") constructorClassKey
85
constructorClassName = clsQual gHC_GENERICS (fsLit "Constructor") constructorClassKey
85
constructorClassName = clsQual gHC_GENERICS (fsLit "Constructor") constructorClassKey
85
false
false
0
7
6
19
9
10
null
null