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
lambdageek/use-c
src/Centrinel/RegionInference.hs
mit
withLocation :: (RegionUnification v m, C.CNode n) => n -> Maybe v -> m (Maybe v) withLocation ni m = do case m of Just r -> regionAddLocation r ni Nothing -> return () return m
189
withLocation :: (RegionUnification v m, C.CNode n) => n -> Maybe v -> m (Maybe v) withLocation ni m = do case m of Just r -> regionAddLocation r ni Nothing -> return () return m
189
withLocation ni m = do case m of Just r -> regionAddLocation r ni Nothing -> return () return m
107
false
true
0
11
47
93
43
50
null
null
mfine/ghc
compiler/main/DriverPhases.hs
bsd-3-clause
eqPhase StopLn StopLn = True
37
eqPhase StopLn StopLn = True
37
eqPhase StopLn StopLn = True
37
false
false
0
5
13
13
5
8
null
null
AlexeyRaga/eta
compiler/ETA/TypeCheck/TcType.hs
bsd-3-clause
isTyVarClassPred :: PredType -> Bool isTyVarClassPred ty = case getClassPredTys_maybe ty of Just (_, tys) -> all isTyVarTy tys _ -> False
157
isTyVarClassPred :: PredType -> Bool isTyVarClassPred ty = case getClassPredTys_maybe ty of Just (_, tys) -> all isTyVarTy tys _ -> False
157
isTyVarClassPred ty = case getClassPredTys_maybe ty of Just (_, tys) -> all isTyVarTy tys _ -> False
120
false
true
0
9
41
57
26
31
null
null
GaloisInc/halvm-ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
maybeTyConKey = mkPreludeTyConUnique 26
65
maybeTyConKey = mkPreludeTyConUnique 26
65
maybeTyConKey = mkPreludeTyConUnique 26
65
false
false
0
5
29
9
4
5
null
null
lsartran/2048
src/Logic.hs
mit
getNewRandomTiles gen n = let (l, gen') = getNewRandomTiles gen (n-1) (x, gen'') = getNewRandomTile gen' in (x:l, gen'')
144
getNewRandomTiles gen n = let (l, gen') = getNewRandomTiles gen (n-1) (x, gen'') = getNewRandomTile gen' in (x:l, gen'')
144
getNewRandomTiles gen n = let (l, gen') = getNewRandomTiles gen (n-1) (x, gen'') = getNewRandomTile gen' in (x:l, gen'')
144
false
false
0
11
42
66
34
32
null
null
ezyang/ghc
compiler/main/HscTypes.hs
bsd-3-clause
mgModSummaries :: ModuleGraph -> [ModSummary] mgModSummaries = mg_mss
69
mgModSummaries :: ModuleGraph -> [ModSummary] mgModSummaries = mg_mss
69
mgModSummaries = mg_mss
23
false
true
0
8
7
25
11
14
null
null
sdiehl/ghc
compiler/utils/Util.hs
bsd-3-clause
lastMaybe xs = Just $ last xs
29
lastMaybe xs = Just $ last xs
29
lastMaybe xs = Just $ last xs
29
false
false
0
6
6
16
7
9
null
null
blax/icfp-contest-2015
src/LCGen.hs
mit
splitLCGen :: LCGen -> (LCGen, LCGen) splitLCGen (LCGen s) = (LCGen s, LCGen s)
83
splitLCGen :: LCGen -> (LCGen, LCGen) splitLCGen (LCGen s) = (LCGen s, LCGen s)
83
splitLCGen (LCGen s) = (LCGen s, LCGen s)
45
false
true
0
9
17
48
23
25
null
null
TakSuyu/mahjong
src/Mahjong/Riichi.hs
mit
-- * Hand -- toHand :: [(Dora, RiichiTile)] -> Hand -- toHand = foldr insertTile mempty -- where -- insertTile :: (Dora, RiichiTile) -> Hand -> Hand -- insertTile t h = case snd t of -- CharacterT a -> insertOver a t h -- CircleT a -> insertOver a t h -- BambooT a -> insertOver a t h ...
1,267
takeFrom :: (Eq a) => a -> [a] -> String -> Either String [a] takeFrom t ts message = if tz == ts then Right tz else Left message where tz = L.delete t ts -- | Because the structure that a player draws from is pure, we don't have to -- worry about side effects within the function. However, we do have t...
606
takeFrom t ts message = if tz == ts then Right tz else Left message where tz = L.delete t ts -- | Because the structure that a player draws from is pure, we don't have to -- worry about side effects within the function. However, we do have to make -- sure that at the end of the player's turn if there i...
544
true
true
1
11
325
112
65
47
null
null
ysnrkdm/OGLWHaskellTest
OGLWHaskellTestHaskell/src/LoadShaders.hs
mit
loadCompileAttach :: GL.Program -> [ShaderInfo] -> IO () loadCompileAttach _ [] = return ()
91
loadCompileAttach :: GL.Program -> [ShaderInfo] -> IO () loadCompileAttach _ [] = return ()
91
loadCompileAttach _ [] = return ()
34
false
true
0
8
13
41
20
21
null
null
pbl64k/HackerRank-Contests
2014-06-20-FP/BoleynSalary/bs.merge.hs
bsd-2-clause
insertPh x e = x `mergePh` (singPh e)
37
insertPh x e = x `mergePh` (singPh e)
37
insertPh x e = x `mergePh` (singPh e)
37
false
false
0
7
7
23
12
11
null
null
davdar/maam
src/FP/Monads.hs
bsd-3-clause
stateLensE :: (MonadState s1 m, Monad m) => Lens s1 s2 -> (StateT s2 m ~> m) stateLensE = stateE .: stateLens
109
stateLensE :: (MonadState s1 m, Monad m) => Lens s1 s2 -> (StateT s2 m ~> m) stateLensE = stateE .: stateLens
109
stateLensE = stateE .: stateLens
32
false
true
0
9
21
53
27
26
null
null
damoxc/ganeti
src/Ganeti/Objects.hs
gpl-2.0
roleDescription NRRegular = "regular"
39
roleDescription NRRegular = "regular"
39
roleDescription NRRegular = "regular"
39
false
false
0
5
5
9
4
5
null
null
kosmikus/cabal
cabal-install/Main.hs
bsd-3-clause
upgradeAction :: (ConfigFlags, ConfigExFlags, InstallFlags, HaddockFlags) -> [String] -> GlobalFlags -> IO () upgradeAction _ _ _ = die $ "Use the 'cabal install' command instead of 'cabal upgrade'.\n" ++ "You can install the latest version of a package using 'cabal install'. " ++ "The 'cabal upgrad...
935
upgradeAction :: (ConfigFlags, ConfigExFlags, InstallFlags, HaddockFlags) -> [String] -> GlobalFlags -> IO () upgradeAction _ _ _ = die $ "Use the 'cabal install' command instead of 'cabal upgrade'.\n" ++ "You can install the latest version of a package using 'cabal install'. " ++ "The 'cabal upgrad...
935
upgradeAction _ _ _ = die $ "Use the 'cabal install' command instead of 'cabal upgrade'.\n" ++ "You can install the latest version of a package using 'cabal install'. " ++ "The 'cabal upgrade' command has been removed because people found it " ++ "confusing and it often led to broken packages.\n" ++ "If you wan...
811
false
true
20
9
177
105
49
56
null
null
valderman/selda
selda/src/Database/Selda/Migrations.hs
mit
-- | Like 'migrate', but allows the column upgrade to access -- the entire database. migrateM :: (MonadSelda m, MonadMask m, Relational a, Relational b) => Table a -> Table b -> (Row (Backend m) a -> Query (Backend m) (Row (Backend m) b)) -> m () migrateM t1 t2 upg = migrateAll Tru...
343
migrateM :: (MonadSelda m, MonadMask m, Relational a, Relational b) => Table a -> Table b -> (Row (Backend m) a -> Query (Backend m) (Row (Backend m) b)) -> m () migrateM t1 t2 upg = migrateAll True [Migration t1 t2 upg]
256
migrateM t1 t2 upg = migrateAll True [Migration t1 t2 upg]
58
true
true
0
15
95
128
63
65
null
null
fffej/HS-Poker
LookupPatternMatch.hs
bsd-3-clause
getValueFromProduct 685069 = 5321
33
getValueFromProduct 685069 = 5321
33
getValueFromProduct 685069 = 5321
33
false
false
0
5
3
9
4
5
null
null
MasseR/xmonadcontrib
XMonad/Layout/Groups/Examples.hs
bsd-3-clause
-- | Toggle whether the currently focused window should -- take up the whole column whenever it has focus toggleWindowFull :: X () toggleWindowFull = sendMessage ZoomFullToggle
176
toggleWindowFull :: X () toggleWindowFull = sendMessage ZoomFullToggle
70
toggleWindowFull = sendMessage ZoomFullToggle
45
true
true
0
6
26
21
11
10
null
null
mekeor/config
xmonad/xmonad.hs
gpl-3.0
-- foreground default ownBg = "#282828"
41
ownBg = "#282828"
19
ownBg = "#282828"
19
true
false
1
5
7
11
4
7
null
null
SkyA1ex/tetris
src/Drawing.hs
bsd-3-clause
drawGameOver :: StateT TetrisGame (Reader AppConfig) Picture drawGameOver = do conf <- ask state <- get let (px, py) = cupPosition conf let (w, h) = cupSize conf let (_winw, _winh) = windowSize conf let (winw, winh) = (fromIntegral _winw, fromIntegral _winh) let (cx, cy) = (px + w / 2, py + h / 2) let o...
859
drawGameOver :: StateT TetrisGame (Reader AppConfig) Picture drawGameOver = do conf <- ask state <- get let (px, py) = cupPosition conf let (w, h) = cupSize conf let (_winw, _winh) = windowSize conf let (winw, winh) = (fromIntegral _winw, fromIntegral _winh) let (cx, cy) = (px + w / 2, py + h / 2) let o...
859
drawGameOver = do conf <- ask state <- get let (px, py) = cupPosition conf let (w, h) = cupSize conf let (_winw, _winh) = windowSize conf let (winw, winh) = (fromIntegral _winw, fromIntegral _winh) let (cx, cy) = (px + w / 2, py + h / 2) let overlay = Color overlayColor $ polygon [ (- winw, - winh) ...
798
false
true
1
18
364
332
165
167
null
null
atzedijkstra/delimiter-separated
src/Text/DelimiterSeparated.hs
bsd-3-clause
-- | Convert to records, with a header described by string holding whitespaced separated labels toRecordsWithHeaderStr :: DelimSepRecord x => String -> [x] -> Records toRecordsWithHeaderStr s = toRecordsWithHeader (recordsFromHeaderStr s)
238
toRecordsWithHeaderStr :: DelimSepRecord x => String -> [x] -> Records toRecordsWithHeaderStr s = toRecordsWithHeader (recordsFromHeaderStr s)
142
toRecordsWithHeaderStr s = toRecordsWithHeader (recordsFromHeaderStr s)
71
true
true
0
8
30
42
21
21
null
null
michalc/haskell-experiments
maybe.hs
mit
computation :: Reader MyContext (Maybe String) computation = do n <- asks bar x <- asks foo if n > 0 then return (Just x) else return Nothing -- maybeGetString :: MaybeT Identity String -- maybeGetString = return "first" >> -- mzero >> -- return "second" -- maybeTN...
547
computation :: Reader MyContext (Maybe String) computation = do n <- asks bar x <- asks foo if n > 0 then return (Just x) else return Nothing -- maybeGetString :: MaybeT Identity String -- maybeGetString = return "first" >> -- mzero >> -- return "second" -- maybeTN...
547
computation = do n <- asks bar x <- asks foo if n > 0 then return (Just x) else return Nothing -- maybeGetString :: MaybeT Identity String -- maybeGetString = return "first" >> -- mzero >> -- return "second" -- maybeTNothing :: MaybeT Identity String -- maybeTNothi...
500
false
true
0
10
170
79
42
37
null
null
schell/esthree
Main.hs
mit
executeS3Command :: Repl -> S3Command -> ResourceT IO Repl executeS3Command r (S3PutBucket bucket loc) = fromRepl r (PutBucket bucket Nothing loc) $ const $ okay >> return r
177
executeS3Command :: Repl -> S3Command -> ResourceT IO Repl executeS3Command r (S3PutBucket bucket loc) = fromRepl r (PutBucket bucket Nothing loc) $ const $ okay >> return r
177
executeS3Command r (S3PutBucket bucket loc) = fromRepl r (PutBucket bucket Nothing loc) $ const $ okay >> return r
118
false
true
0
10
31
67
32
35
null
null
acharal/hopes
src/frontend/WellForm.hs
gpl-2.0
-- normProg :: HpProg a -> Tc (HpProg a) normSrc p = do cl <- mapM normForm (clauses p) return (p { clauses = cl })
123
normSrc p = do cl <- mapM normForm (clauses p) return (p { clauses = cl })
82
normSrc p = do cl <- mapM normForm (clauses p) return (p { clauses = cl })
82
true
false
0
10
33
45
22
23
null
null
nevrenato/Hets_Fork
OWL2/Keywords.hs
gpl-2.0
languageS :: String languageS = "language"
42
languageS :: String languageS = "language"
42
languageS = "language"
22
false
true
0
4
5
11
6
5
null
null
tphyahoo/haskoin-wallet
Network/Haskoin/Wallet/Client/Commands.hs
unlicense
cmdKeyRing :: Handler () cmdKeyRing = do k <- R.asks configKeyRing sendZmq (GetKeyRingR k) $ putStr . printKeyRing
122
cmdKeyRing :: Handler () cmdKeyRing = do k <- R.asks configKeyRing sendZmq (GetKeyRingR k) $ putStr . printKeyRing
122
cmdKeyRing = do k <- R.asks configKeyRing sendZmq (GetKeyRingR k) $ putStr . printKeyRing
97
false
true
0
11
25
54
23
31
null
null
andre-artus/handbook-of-practical-logic-and-automated-reasoning-haskell
src/ATP/Util/List.hs
gpl-3.0
all2 _ _ _ = False
18
all2 _ _ _ = False
18
all2 _ _ _ = False
18
false
false
0
5
5
13
6
7
null
null
fmapfmapfmap/amazonka
amazonka-workspaces/gen/Network/AWS/WorkSpaces/Types/Product.hs
mpl-2.0
-- | A WorkspaceRequest object that contains the information about the -- WorkSpace that could not be created. fcwrWorkspaceRequest :: Lens' FailedCreateWorkspaceRequest (Maybe WorkspaceRequest) fcwrWorkspaceRequest = lens _fcwrWorkspaceRequest (\ s a -> s{_fcwrWorkspaceRequest = a})
284
fcwrWorkspaceRequest :: Lens' FailedCreateWorkspaceRequest (Maybe WorkspaceRequest) fcwrWorkspaceRequest = lens _fcwrWorkspaceRequest (\ s a -> s{_fcwrWorkspaceRequest = a})
173
fcwrWorkspaceRequest = lens _fcwrWorkspaceRequest (\ s a -> s{_fcwrWorkspaceRequest = a})
89
true
true
1
9
34
52
26
26
null
null
ml9951/ghc
compiler/prelude/THNames.hs
bsd-3-clause
libFun, libTc, thFun, thTc, thCls, thCon, qqFun :: FastString -> Unique -> Name libFun = mk_known_key_name OccName.varName thLib
129
libFun, libTc, thFun, thTc, thCls, thCon, qqFun :: FastString -> Unique -> Name libFun = mk_known_key_name OccName.varName thLib
129
libFun = mk_known_key_name OccName.varName thLib
49
false
true
0
6
18
38
25
13
null
null
codders/gp3
src/GP3GUI.hs
gpl-3.0
hasSuffix :: String -> String -> Bool hasSuffix suffix = \s -> endswith suffix (map toLower s)
94
hasSuffix :: String -> String -> Bool hasSuffix suffix = \s -> endswith suffix (map toLower s)
94
hasSuffix suffix = \s -> endswith suffix (map toLower s)
56
false
true
0
8
16
45
21
24
null
null
AlexBaranosky/QuickCheck
Test/QuickCheck/Function.hs
bsd-3-clause
mkFun :: (a :-> b) -> b -> Fun a b mkFun p d = Fun (p,d) (abstract p d)
71
mkFun :: (a :-> b) -> b -> Fun a b mkFun p d = Fun (p,d) (abstract p d)
71
mkFun p d = Fun (p,d) (abstract p d)
36
false
true
0
8
19
60
29
31
null
null
kazu-yamamoto/network-uri
tests/uri001.hs
bsd-3-clause
-- normal cases, RFC2396bis 5.4.1 testRFC01 = testRelJoin "testRFC01" rfcbase "g:h" "g:h"
89
testRFC01 = testRelJoin "testRFC01" rfcbase "g:h" "g:h"
55
testRFC01 = testRelJoin "testRFC01" rfcbase "g:h" "g:h"
55
true
false
0
5
11
16
8
8
null
null
mcschroeder/ghc
compiler/coreSyn/MkCore.hs
bsd-3-clause
mkIntExpr :: DynFlags -> Integer -> CoreExpr -- Result = I# i :: Int mkIntExpr dflags i = mkCoreConApps intDataCon [mkIntLit dflags i]
142
mkIntExpr :: DynFlags -> Integer -> CoreExpr mkIntExpr dflags i = mkCoreConApps intDataCon [mkIntLit dflags i]
111
mkIntExpr dflags i = mkCoreConApps intDataCon [mkIntLit dflags i]
66
true
true
0
7
30
38
19
19
null
null
apyrgio/ganeti
src/Ganeti/Utils/UniStd.hs
bsd-2-clause
-- Opens a file and calls fsync(2) on the file descriptor. -- -- Because of a bug in GHC 7.6.3 (at least), calling 'hIsClosed' on a handle -- to get the file descriptor leaks memory. Therefore we open a given file -- just to sync it and close it again. fsyncFile :: (Error e) => FilePath -> ResultT e IO () fsyncFile pat...
492
fsyncFile :: (Error e) => FilePath -> ResultT e IO () fsyncFile path = liftIO $ bracket (openFd path ReadOnly Nothing defaultFileFlags) closeFd callfsync where callfsync (Fd fd) = throwErrnoPathIfMinus1_ "fsyncFile" path $ fsync fd
239
fsyncFile path = liftIO $ bracket (openFd path ReadOnly Nothing defaultFileFlags) closeFd callfsync where callfsync (Fd fd) = throwErrnoPathIfMinus1_ "fsyncFile" path $ fsync fd
185
true
true
2
8
92
94
47
47
null
null
mightymoose/liquidhaskell
src/Language/Haskell/Liquid/TransformRec.hs
bsd-3-clause
transformRecExpr :: CoreProgram -> CoreProgram transformRecExpr cbs | isEmptyBag $ filterBag isTypeError e = {-trace "new cbs"-} pg | otherwise = error ("Type-check" ++ showSDoc (pprMessageBag e)) where pg0 = evalState (transPg (inlineLoopBreaker <$> cbs)) initEnv (_, e) = lintCoreBindings [] pg...
357
transformRecExpr :: CoreProgram -> CoreProgram transformRecExpr cbs | isEmptyBag $ filterBag isTypeError e = {-trace "new cbs"-} pg | otherwise = error ("Type-check" ++ showSDoc (pprMessageBag e)) where pg0 = evalState (transPg (inlineLoopBreaker <$> cbs)) initEnv (_, e) = lintCoreBindings [] pg...
357
transformRecExpr cbs | isEmptyBag $ filterBag isTypeError e = {-trace "new cbs"-} pg | otherwise = error ("Type-check" ++ showSDoc (pprMessageBag e)) where pg0 = evalState (transPg (inlineLoopBreaker <$> cbs)) initEnv (_, e) = lintCoreBindings [] pg pg = inlineFailCases pg0
310
false
true
2
11
81
116
57
59
null
null
mplamann/magic-spieler
src/Action.hs
mit
runAction (DeclareAttacker pID attackingCard) = do debug $ "runAction (DeclareAttacker " ++ show pID ++ " " ++ show attackingCard ++ ")" s <- get if attackingCard `elem` (s^.attackers) then attackers %= delete attackingCard else attackers <>= [attackingCard]
276
runAction (DeclareAttacker pID attackingCard) = do debug $ "runAction (DeclareAttacker " ++ show pID ++ " " ++ show attackingCard ++ ")" s <- get if attackingCard `elem` (s^.attackers) then attackers %= delete attackingCard else attackers <>= [attackingCard]
276
runAction (DeclareAttacker pID attackingCard) = do debug $ "runAction (DeclareAttacker " ++ show pID ++ " " ++ show attackingCard ++ ")" s <- get if attackingCard `elem` (s^.attackers) then attackers %= delete attackingCard else attackers <>= [attackingCard]
276
false
false
0
11
55
92
45
47
null
null
gsdlab/clafer
src/Language/Clafer/Generator/Concat.hs
mit
mapToCStr :: [String] -> [Concat] mapToCStr xs = map CString xs
63
mapToCStr :: [String] -> [Concat] mapToCStr xs = map CString xs
63
mapToCStr xs = map CString xs
29
false
true
0
6
10
29
15
14
null
null
pgj/bead
src/Bead/Persistence/NoSQLDir.hs
bsd-3-clause
-- | Creates a persist initialization structure. createPersistInit :: Config -> IO PersistInit createPersistInit _ = return PersistInit { isSetUp = isPersistenceSetUp , initPersist = initPersistence , tearDown = nTearDown }
233
createPersistInit :: Config -> IO PersistInit createPersistInit _ = return PersistInit { isSetUp = isPersistenceSetUp , initPersist = initPersistence , tearDown = nTearDown }
184
createPersistInit _ = return PersistInit { isSetUp = isPersistenceSetUp , initPersist = initPersistence , tearDown = nTearDown }
138
true
true
0
7
40
45
25
20
null
null
bravit/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
-- Defined in builtins.idr sigmaTy = sNS (sUN "DPair") ["Builtins"]
69
sigmaTy = sNS (sUN "DPair") ["Builtins"]
42
sigmaTy = sNS (sUN "DPair") ["Builtins"]
42
true
false
1
7
11
25
11
14
null
null
jiayuanmark/Haxl
tests/CoreTests.hs
bsd-3-clause
testEnv = do -- To use a data source, we need to initialize its state: exstate <- ExampleDataSource.initGlobalState -- And create a StateStore object containing the states we need: let st = stateSet exstate stateEmpty -- Create the Env: initEnv st ()
264
testEnv = do -- To use a data source, we need to initialize its state: exstate <- ExampleDataSource.initGlobalState -- And create a StateStore object containing the states we need: let st = stateSet exstate stateEmpty -- Create the Env: initEnv st ()
264
testEnv = do -- To use a data source, we need to initialize its state: exstate <- ExampleDataSource.initGlobalState -- And create a StateStore object containing the states we need: let st = stateSet exstate stateEmpty -- Create the Env: initEnv st ()
264
false
false
1
11
55
46
20
26
null
null
sdiehl/ghc
compiler/utils/Bag.hs
bsd-3-clause
foldBag t u e (ListBag xs) = foldr (t.u) e xs
48
foldBag t u e (ListBag xs) = foldr (t.u) e xs
48
foldBag t u e (ListBag xs) = foldr (t.u) e xs
48
false
false
0
6
13
39
16
23
null
null
jean-edouard/manager
xenmgr/XenMgr/PowerManagement.hs
gpl-2.0
pmActionToStr ActionNothing = "nothing"
41
pmActionToStr ActionNothing = "nothing"
41
pmActionToStr ActionNothing = "nothing"
41
false
false
0
5
5
9
4
5
null
null
iteloo/tsuru-sample
iteratee-0.8.9.6/src/Data/Iteratee/ListLike.hs
bsd-3-clause
-- ------------------------------------------------------------------------ -- Primitive iteratees -- |Read a stream to the end and return all of its elements as a list. -- This iteratee returns all data from the stream *strictly*. stream2list :: (Monad m, Nullable s, LL.ListLike s el) => Iteratee s m [el] stream2list...
360
stream2list :: (Monad m, Nullable s, LL.ListLike s el) => Iteratee s m [el] stream2list = liftM (concatMap LL.toList) getChunks
127
stream2list = liftM (concatMap LL.toList) getChunks
51
true
true
0
8
51
69
35
34
null
null
fmapfmapfmap/amazonka
amazonka-ml/gen/Network/AWS/MachineLearning/Types/Product.hs
mpl-2.0
-- | Creates a value of 'RedshiftDatabaseCredentials' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'rdcUsername' -- -- * 'rdcPassword' redshiftDatabaseCredentials :: Text -- ^ 'rdcUsername' -> Text -- ^ 'rdcPassword' -> ...
502
redshiftDatabaseCredentials :: Text -- ^ 'rdcUsername' -> Text -- ^ 'rdcPassword' -> RedshiftDatabaseCredentials redshiftDatabaseCredentials pUsername_ pPassword_ = RedshiftDatabaseCredentials' { _rdcUsername = pUsername_ , _rdcPassword = pPassword_ }
279
redshiftDatabaseCredentials pUsername_ pPassword_ = RedshiftDatabaseCredentials' { _rdcUsername = pUsername_ , _rdcPassword = pPassword_ }
154
true
true
0
8
92
56
32
24
null
null
Sealos/AI
Sudoku/ProyectosReferencia/Simon/encoder.hs
gpl-2.0
main :: IO () main = do args <- getArgs putStrLn $ toDimacs $ reglas $ variablesIniciales 0 (trim (args !! 0))
114
main :: IO () main = do args <- getArgs putStrLn $ toDimacs $ reglas $ variablesIniciales 0 (trim (args !! 0))
114
main = do args <- getArgs putStrLn $ toDimacs $ reglas $ variablesIniciales 0 (trim (args !! 0))
100
false
true
0
13
25
62
28
34
null
null
notogawa/monarch
test/Database/Monarch/ActionSpec.hs
bsd-3-clause
caseGetLargeRecord :: IO () caseGetLargeRecord = do content <- BS.concat . replicate 1024 <$> liftIO (BS.readFile "monarch.cabal") action content `returns` Right (Just content) where action content = do put "foo" content get "foo"
260
caseGetLargeRecord :: IO () caseGetLargeRecord = do content <- BS.concat . replicate 1024 <$> liftIO (BS.readFile "monarch.cabal") action content `returns` Right (Just content) where action content = do put "foo" content get "foo"
260
caseGetLargeRecord = do content <- BS.concat . replicate 1024 <$> liftIO (BS.readFile "monarch.cabal") action content `returns` Right (Just content) where action content = do put "foo" content get "foo"
232
false
true
2
12
62
100
42
58
null
null
ezyang/ghc
compiler/basicTypes/VarEnv.hs
bsd-3-clause
inRnEnvR (RV2 { envR = env }) v = v `elemVarEnv` env
52
inRnEnvR (RV2 { envR = env }) v = v `elemVarEnv` env
52
inRnEnvR (RV2 { envR = env }) v = v `elemVarEnv` env
52
false
false
0
9
11
29
16
13
null
null
randen/haddock
haddock-api/src/Haddock/Backends/Xhtml/Utils.hs
bsd-2-clause
pick :: Bool -> a -> a -> a pick True t _ = t
46
pick :: Bool -> a -> a -> a pick True t _ = t
46
pick True t _ = t
18
false
true
0
9
15
36
16
20
null
null
killerswan/askitter
Web/Twitter.hs
mit
-- | Get the last 20 updates, without RTs, of the given username, with -- authentication. If this throws an @AccessForbidden@ error, their -- timeline is protected and you aren't allowed to see it. authUserTimeline :: Token -> String -> [Option] -> IO [Status] authUserTimeline token name opts = fmap parseTimeline . run...
412
authUserTimeline :: Token -> String -> [Option] -> IO [Status] authUserTimeline token name opts = fmap parseTimeline . runOAuthM token $ doRequest GET "statuses/user_timeline" (("screen_name", name) : toQuery opts)
214
authUserTimeline token name opts = fmap parseTimeline . runOAuthM token $ doRequest GET "statuses/user_timeline" (("screen_name", name) : toQuery opts)
151
true
true
0
9
62
79
41
38
null
null
vincenthz/cryptonite
Crypto/ECC/Edwards25519.hs
bsd-3-clause
-- | Negate a point. pointNegate :: Point -> Point pointNegate (Point a) = Point $ B.allocAndFreeze pointArraySize $ \out -> withByteArray a $ \pa -> ed25519_point_negate out pa
202
pointNegate :: Point -> Point pointNegate (Point a) = Point $ B.allocAndFreeze pointArraySize $ \out -> withByteArray a $ \pa -> ed25519_point_negate out pa
181
pointNegate (Point a) = Point $ B.allocAndFreeze pointArraySize $ \out -> withByteArray a $ \pa -> ed25519_point_negate out pa
151
true
true
0
9
53
60
30
30
null
null
bergey/metastic
src/Main.hs
bsd-2-clause
showArgs :: [String] -> IO () showArgs = showMode ShowConf
58
showArgs :: [String] -> IO () showArgs = showMode ShowConf
58
showArgs = showMode ShowConf
28
false
true
0
7
9
26
13
13
null
null
DougBurke/swish
tests/QNameTest.hs
lgpl-2.1
main :: IO () main = TF.defaultMain allTests
44
main :: IO () main = TF.defaultMain allTests
44
main = TF.defaultMain allTests
30
false
true
1
6
7
24
10
14
null
null
byorgey/Idris-dev
src/Core/Elaborate.hs
bsd-3-clause
fill :: Raw -> Elab' aux () fill t = processTactic' (Fill t)
60
fill :: Raw -> Elab' aux () fill t = processTactic' (Fill t)
60
fill t = processTactic' (Fill t)
32
false
true
0
8
12
38
17
21
null
null
minamiyama1994/T-shirt-creator
Handler/Add.hs
gpl-3.0
getAddR :: String -> Handler Value getAddR lang = do _ <- runDB $ insert $ Language lang return $ object [ "insert" .= lang ]
133
getAddR :: String -> Handler Value getAddR lang = do _ <- runDB $ insert $ Language lang return $ object [ "insert" .= lang ]
133
getAddR lang = do _ <- runDB $ insert $ Language lang return $ object [ "insert" .= lang ]
98
false
true
0
10
33
56
26
30
null
null
massysett/tsparse
TsParse.hs
bsd-3-clause
isNonSpaceNonControl :: Char -> Bool isNonSpaceNonControl c = c >= '!' && c <= '~'
82
isNonSpaceNonControl :: Char -> Bool isNonSpaceNonControl c = c >= '!' && c <= '~'
82
isNonSpaceNonControl c = c >= '!' && c <= '~'
45
false
true
0
7
14
30
15
15
null
null
jmct/IterativeCompiler
frontend/Strictness.hs
mit
disj :: Val -> Val -> Val disj arg1 arg2 = Ap (Fun "|") [arg1, arg2]
68
disj :: Val -> Val -> Val disj arg1 arg2 = Ap (Fun "|") [arg1, arg2]
68
disj arg1 arg2 = Ap (Fun "|") [arg1, arg2]
42
false
true
0
8
15
47
22
25
null
null
cdupont/eprocess
src/Control/Concurrent/Process.hs
bsd-3-clause
onInner :: (m a -> m b) -> ReceiverT r m a -> ReceiverT r m b onInner f (RT m) = RT $ mapReaderT f m
100
onInner :: (m a -> m b) -> ReceiverT r m a -> ReceiverT r m b onInner f (RT m) = RT $ mapReaderT f m
100
onInner f (RT m) = RT $ mapReaderT f m
38
false
true
0
8
26
66
31
35
null
null
Frefreak/Gideon
src/Terminal.hs
bsd-3-clause
cyanString :: String -> String cyanString = colorString Cyan
60
cyanString :: String -> String cyanString = colorString Cyan
60
cyanString = colorString Cyan
29
false
true
0
5
8
18
9
9
null
null
comonoidial/ALFIN
Alfin/Analysis.hs
mit
faAlt vs (ConPat c xs, b) = faBlock (foldr (uncurry insert) vs $ zip xs $ map (ConParam c) [0..]) b
101
faAlt vs (ConPat c xs, b) = faBlock (foldr (uncurry insert) vs $ zip xs $ map (ConParam c) [0..]) b
101
faAlt vs (ConPat c xs, b) = faBlock (foldr (uncurry insert) vs $ zip xs $ map (ConParam c) [0..]) b
101
false
false
0
11
22
68
32
36
null
null
ksaveljev/hake-2
src/Constants.hs
bsd-3-clause
-- gi.BoxEdicts() can return a list of either solid or trigger entities -- FIXME: eliminate AREA_ distinction? areaSolid = 1 :: Int
134
areaSolid = 1 :: Int
23
areaSolid = 1 :: Int
23
true
false
0
4
24
11
7
4
null
null
google-research/dex-lang
src/lib/CheapReduction.hs
bsd-3-clause
cheapReduce :: forall e' e m n . (EnvReader m, CheaplyReducibleE e e', NiceE e, NiceE e') => e n -> m n (Maybe (e' n), Maybe (ESet Type n)) cheapReduce e = liftCheapReducerM idSubst $ cheapReduceE e
223
cheapReduce :: forall e' e m n . (EnvReader m, CheaplyReducibleE e e', NiceE e, NiceE e') => e n -> m n (Maybe (e' n), Maybe (ESet Type n)) cheapReduce e = liftCheapReducerM idSubst $ cheapReduceE e
223
cheapReduce e = liftCheapReducerM idSubst $ cheapReduceE e
58
false
true
0
12
62
99
50
49
null
null
sheyll/b9-vm-image-builder
src/lib/B9/B9Config/SystemdNspawn.hs
mit
consoleK :: String consoleK = "console"
39
consoleK :: String consoleK = "console"
39
consoleK = "console"
20
false
true
0
4
5
11
6
5
null
null
romanb/amazonka
amazonka-swf/gen/Network/AWS/SWF/Types.hs
mpl-2.0
-- | The date when this type was registered. wtiCreationDate :: Lens' WorkflowTypeInfo UTCTime wtiCreationDate = lens _wtiCreationDate (\s a -> s { _wtiCreationDate = a }) . _Time
179
wtiCreationDate :: Lens' WorkflowTypeInfo UTCTime wtiCreationDate = lens _wtiCreationDate (\s a -> s { _wtiCreationDate = a }) . _Time
134
wtiCreationDate = lens _wtiCreationDate (\s a -> s { _wtiCreationDate = a }) . _Time
84
true
true
0
10
28
44
24
20
null
null
MagneticDuck/simpleirc
Network/SimpleIRC/Core.hs
bsd-3-clause
getPort :: MIrc -> IO Int getPort mIrc = do s <- readMVar mIrc return $ sPort s -- |Returns the User name
111
getPort :: MIrc -> IO Int getPort mIrc = do s <- readMVar mIrc return $ sPort s -- |Returns the User name
111
getPort mIrc = do s <- readMVar mIrc return $ sPort s -- |Returns the User name
85
false
true
0
8
28
42
19
23
null
null
randen/cabal
cabal-install/Distribution/Client/Install.hs
bsd-3-clause
processInstallPlan :: Verbosity -> InstallArgs -> InstallContext -> InstallPlan -> IO () processInstallPlan verbosity args@(_,_, _, _, _, _, _, _, _, _, installFlags, _) (installedPkgIndex, sourcePkgDb, userTargets, pkgSpecifiers, _) installPlan = do checkPrintPlan verbo...
895
processInstallPlan :: Verbosity -> InstallArgs -> InstallContext -> InstallPlan -> IO () processInstallPlan verbosity args@(_,_, _, _, _, _, _, _, _, _, installFlags, _) (installedPkgIndex, sourcePkgDb, userTargets, pkgSpecifiers, _) installPlan = do checkPrintPlan verbo...
895
processInstallPlan verbosity args@(_,_, _, _, _, _, _, _, _, _, installFlags, _) (installedPkgIndex, sourcePkgDb, userTargets, pkgSpecifiers, _) installPlan = do checkPrintPlan verbosity installedPkgIndex installPlan sourcePkgDb installFlags pkgSpecifiers unless (dryRun || nothingToInstall) $ do ...
768
false
true
1
11
181
195
102
93
null
null
stevezhee/shootout
src/Shoot.hs
bsd-3-clause
nodeM xs = Node <$> sequence xs
31
nodeM xs = Node <$> sequence xs
31
nodeM xs = Node <$> sequence xs
31
false
false
0
6
6
16
7
9
null
null
mankyKitty/leesp
src/Main.hs
mit
eval env badForm = throwError $ BadSpecialForm "Unrecognised special form" badForm
84
eval env badForm = throwError $ BadSpecialForm "Unrecognised special form" badForm
84
eval env badForm = throwError $ BadSpecialForm "Unrecognised special form" badForm
84
false
false
3
5
12
26
9
17
null
null
mightymoose/liquidhaskell
benchmarks/text-0.11.2.3/Data/Text/Read.hs
bsd-3-clause
char :: (Char -> Bool) -> Parser Char char p = P $ \t -> case T.uncons t of Just (c,t') | p c -> Right (c,t') _ -> Left "character does not match"
204
char :: (Char -> Bool) -> Parser Char char p = P $ \t -> case T.uncons t of Just (c,t') | p c -> Right (c,t') _ -> Left "character does not match"
204
char p = P $ \t -> case T.uncons t of Just (c,t') | p c -> Right (c,t') _ -> Left "character does not match"
166
false
true
0
13
91
88
43
45
null
null
fossilet/yaht
Ex3.hs
mit
fib 2 = 2
9
fib 2 = 2
9
fib 2 = 2
9
false
false
0
4
3
10
4
6
null
null
shlevy/ghc
compiler/typecheck/TcType.hs
bsd-3-clause
tcSplitPhiTy :: Type -> (ThetaType, Type) tcSplitPhiTy ty = split ty [] where split ty ts = case tcSplitPredFunTy_maybe ty of Just (pred, ty) -> split ty (pred:ts) Nothing -> (reverse ts, ty) -- | Split a sigma type into its parts.
274
tcSplitPhiTy :: Type -> (ThetaType, Type) tcSplitPhiTy ty = split ty [] where split ty ts = case tcSplitPredFunTy_maybe ty of Just (pred, ty) -> split ty (pred:ts) Nothing -> (reverse ts, ty) -- | Split a sigma type into its parts.
274
tcSplitPhiTy ty = split ty [] where split ty ts = case tcSplitPredFunTy_maybe ty of Just (pred, ty) -> split ty (pred:ts) Nothing -> (reverse ts, ty) -- | Split a sigma type into its parts.
232
false
true
0
10
84
94
48
46
null
null
formrre/soft-heap-haskell
soft-heap/src/Data/SoftHeap/SHNode.hs
bsd-3-clause
rank :: forall k e s. (Ord k) => Node s k e -> ST s (PossiblyInfinite Word) rank NullNode = return Infinite
107
rank :: forall k e s. (Ord k) => Node s k e -> ST s (PossiblyInfinite Word) rank NullNode = return Infinite
107
rank NullNode = return Infinite
31
false
true
0
11
22
60
29
31
null
null
acowley/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
gHC_GHCI = mkBaseModule (fsLit "GHC.GHCi")
49
gHC_GHCI = mkBaseModule (fsLit "GHC.GHCi")
49
gHC_GHCI = mkBaseModule (fsLit "GHC.GHCi")
49
false
false
0
7
11
15
7
8
null
null
petabricks/petabricks
scripts/oldtuner2/src/GP/Types.hs
mit
(TypeVariable _) `isTypeCompatible` _ = True
85
(TypeVariable _) `isTypeCompatible` _ = True
85
(TypeVariable _) `isTypeCompatible` _ = True
85
false
false
0
7
46
20
10
10
null
null
nevrenato/Hets_Fork
CommonLogic/AS_CommonLogic.hs
gpl-2.0
clExcludeS :: String clExcludeS = "cl-excludes"
47
clExcludeS :: String clExcludeS = "cl-excludes"
47
clExcludeS = "cl-excludes"
26
false
true
0
4
5
11
6
5
null
null
illis/hbook
test/VCardSpec.hs
bsd-3-clause
upperText :: Gen TL.Text upperText = do l <- choose(2,50) TL.pack <$> replicateM l capitals where capitals = elements ['A'..'Z']
137
upperText :: Gen TL.Text upperText = do l <- choose(2,50) TL.pack <$> replicateM l capitals where capitals = elements ['A'..'Z']
137
upperText = do l <- choose(2,50) TL.pack <$> replicateM l capitals where capitals = elements ['A'..'Z']
112
false
true
0
9
28
61
30
31
null
null
rueshyna/gogol
gogol-taskqueue/gen/Network/Google/TaskQueue/Types/Product.hs
mpl-2.0
-- | The kind of object returned, in this case set to task. ttKind :: Lens' Task Text ttKind = lens _ttKind (\ s a -> s{_ttKind = a})
133
ttKind :: Lens' Task Text ttKind = lens _ttKind (\ s a -> s{_ttKind = a})
73
ttKind = lens _ttKind (\ s a -> s{_ttKind = a})
47
true
true
0
9
28
40
22
18
null
null
nevrenato/Hets_Fork
GUI/HTkProverGUI.hs
gpl-2.0
populateAxiomsList :: ListBox String -> ProofState -> IO () populateAxiomsList lbAxs s = do lbAxs # value (toAxioms s) return ()
150
populateAxiomsList :: ListBox String -> ProofState -> IO () populateAxiomsList lbAxs s = do lbAxs # value (toAxioms s) return ()
150
populateAxiomsList lbAxs s = do lbAxs # value (toAxioms s) return ()
82
false
true
0
11
42
61
26
35
null
null
geigerzaehler/pladen
Pladen/App/Feed.hs
mit
entryEl :: Entry -> Element entryEl = Element (atomName "entry") Map.empty . children where children e = map NodeElement ( [ simpleEl "title" . entryTitle , simpleEl "id" . entryId , simpleEl "summary" . entrySummary , simpleEl "updated" . iso . entryUpdated ...
364
entryEl :: Entry -> Element entryEl = Element (atomName "entry") Map.empty . children where children e = map NodeElement ( [ simpleEl "title" . entryTitle , simpleEl "id" . entryId , simpleEl "summary" . entrySummary , simpleEl "updated" . iso . entryUpdated ...
364
entryEl = Element (atomName "entry") Map.empty . children where children e = map NodeElement ( [ simpleEl "title" . entryTitle , simpleEl "id" . entryId , simpleEl "summary" . entrySummary , simpleEl "updated" . iso . entryUpdated , linkEl . entryURL ...
336
false
true
1
11
121
119
55
64
null
null
AlexeyRaga/eta
compiler/ETA/TypeCheck/TcGenDeriv.hs
bsd-3-clause
maxtag_RDR tycon = mk_tc_deriv_name tycon mkMaxTagOcc
54
maxtag_RDR tycon = mk_tc_deriv_name tycon mkMaxTagOcc
54
maxtag_RDR tycon = mk_tc_deriv_name tycon mkMaxTagOcc
54
false
false
0
5
6
14
6
8
null
null
acowley/ghc
compiler/basicTypes/Literal.hs
bsd-3-clause
word2IntLit _ l = pprPanic "word2IntLit" (ppr l)
48
word2IntLit _ l = pprPanic "word2IntLit" (ppr l)
48
word2IntLit _ l = pprPanic "word2IntLit" (ppr l)
48
false
false
1
7
7
22
10
12
null
null
yiannist/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
htNicI82551 :: String htNicI82551 = "i82551"
44
htNicI82551 :: String htNicI82551 = "i82551"
44
htNicI82551 = "i82551"
22
false
true
0
4
5
11
6
5
null
null
hjwylde/werewolf
app/Game/Werewolf/Variant/NoRoleKnowledgeOrReveal/Command.hs
bsd-3-clause
playerShotText :: Player -> Text playerShotText player = [iFile|variant/no-role-knowledge-or-reveal/command/choose/player-shot.txt|]
132
playerShotText :: Player -> Text playerShotText player = [iFile|variant/no-role-knowledge-or-reveal/command/choose/player-shot.txt|]
132
playerShotText player = [iFile|variant/no-role-knowledge-or-reveal/command/choose/player-shot.txt|]
99
false
true
0
5
8
22
13
9
null
null
brendanhay/gogol
gogol-analytics/gen/Network/Google/Resource/Analytics/Management/ProFiles/Insert.hs
mpl-2.0
-- | Creates a value of 'ManagementProFilesInsert' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'mpfiWebPropertyId' -- -- * 'mpfiPayload' -- -- * 'mpfiAccountId' managementProFilesInsert :: Text -- ^ 'mpfiWebPropertyId' -> P...
642
managementProFilesInsert :: Text -- ^ 'mpfiWebPropertyId' -> ProFile -- ^ 'mpfiPayload' -> Text -- ^ 'mpfiAccountId' -> ManagementProFilesInsert managementProFilesInsert pMpfiWebPropertyId_ pMpfiPayload_ pMpfiAccountId_ = ManagementProFilesInsert' { _mpfiWebPropertyId = pMpfiWebPropertyId_ , _...
392
managementProFilesInsert pMpfiWebPropertyId_ pMpfiPayload_ pMpfiAccountId_ = ManagementProFilesInsert' { _mpfiWebPropertyId = pMpfiWebPropertyId_ , _mpfiPayload = pMpfiPayload_ , _mpfiAccountId = pMpfiAccountId_ }
231
true
true
0
9
112
71
42
29
null
null
etarasov/iptables-helpers
src/Iptables.hs
bsd-3-clause
sortIptables :: Iptables -> Iptables sortIptables (Iptables filter nat mangle raw) = Iptables (sortFilterTable filter) (sortNatTable nat) (sortMangleTable mangle) ...
331
sortIptables :: Iptables -> Iptables sortIptables (Iptables filter nat mangle raw) = Iptables (sortFilterTable filter) (sortNatTable nat) (sortMangleTable mangle) ...
331
sortIptables (Iptables filter nat mangle raw) = Iptables (sortFilterTable filter) (sortNatTable nat) (sortMangleTable mangle) raw
294
false
true
0
9
184
62
29
33
null
null
sboosali/haddock
haddock-api/src/Haddock/Backends/Xhtml/Layout.hs
bsd-2-clause
divDescription = sectionDiv "description"
46
divDescription = sectionDiv "description"
46
divDescription = sectionDiv "description"
46
false
false
1
5
8
12
4
8
null
null
mrb/codeclimate-hlint
src/CC/Engine.hs
mit
hsFiles :: [FilePath] -> IO [FilePath] hsFiles sources = do let (dirs, files) = partition isDirectory sources patterns = map (compile . (++ "**/*.hs")) dirs results <- concat . fst <$> globDir patterns "." return $ map clean $ filter isHaskell files ++ results where isDirectory = ("/" `isSu...
408
hsFiles :: [FilePath] -> IO [FilePath] hsFiles sources = do let (dirs, files) = partition isDirectory sources patterns = map (compile . (++ "**/*.hs")) dirs results <- concat . fst <$> globDir patterns "." return $ map clean $ filter isHaskell files ++ results where isDirectory = ("/" `isSu...
408
hsFiles sources = do let (dirs, files) = partition isDirectory sources patterns = map (compile . (++ "**/*.hs")) dirs results <- concat . fst <$> globDir patterns "." return $ map clean $ filter isHaskell files ++ results where isDirectory = ("/" `isSuffixOf`) isHaskell = (".hs" `isSuff...
369
false
true
1
13
102
166
86
80
null
null
eatobin/cis194
lesson1/src/HW01Tests.hs
bsd-3-clause
ex5Tests :: [Test] ex5Tests = [ Test "luhn test" testLuhn [4662110665499438, 645937, 1859] ]
116
ex5Tests :: [Test] ex5Tests = [ Test "luhn test" testLuhn [4662110665499438, 645937, 1859] ]
116
ex5Tests = [ Test "luhn test" testLuhn [4662110665499438, 645937, 1859] ]
97
false
true
0
8
37
40
20
20
null
null
beni55/temporary
System/IO/Temp.hs
bsd-3-clause
ignoringIOErrors :: MonadCatch m => m () -> m () ignoringIOErrors ioe = ioe `Exception.catch` (\e -> const (return ()) (e :: IOError))
134
ignoringIOErrors :: MonadCatch m => m () -> m () ignoringIOErrors ioe = ioe `Exception.catch` (\e -> const (return ()) (e :: IOError))
134
ignoringIOErrors ioe = ioe `Exception.catch` (\e -> const (return ()) (e :: IOError))
85
false
true
0
11
22
70
36
34
null
null
themoritz/cabal
cabal-install/Distribution/Client/FileMonitor.hs
bsd-3-clause
-- | Much like 'buildMonitorStateFileSet' but for the somewhat complicated case -- of a file glob. -- -- This gets used both by 'buildMonitorStateFileSet' when we're taking the -- file system snapshot, but also by 'probeGlobStatus' as part of checking -- the monitored (globed) files for changes when we find a whole new...
1,039
buildMonitorStateGlob :: Maybe MonitorTimestamp -- ^ start time of update -> FileHashCache -- ^ existing file hashes -> MonitorKindFile -> MonitorKindDir -> FilePath -- ^ the root directory -> FilePathGlob -- ^ the matching ...
706
buildMonitorStateGlob mstartTime hashcache kindfile kinddir relroot (FilePathGlob globroot globPath) = do root <- liftIO $ getFilePathRootDirectory globroot relroot MonitorStateGlob kindfile kinddir globroot <$> buildMonitorStateGlobRel mstartTime hashcache kindfile kinddir r...
336
true
true
0
11
285
118
61
57
null
null
thoughtpolice/binary-serialise-cbor
tests/ReferenceImpl.hs
bsd-3-clause
serialise :: Term -> LBS.ByteString serialise = LBS.pack . encodeTerm
69
serialise :: Term -> LBS.ByteString serialise = LBS.pack . encodeTerm
69
serialise = LBS.pack . encodeTerm
33
false
true
0
6
9
23
12
11
null
null
EldradUlt/probability-test
Tests.hs
bsd-3-clause
zeroSource :: GenIO -> Source IO Double zeroSource mwcGen = normalDoubleSource mwcGen 0
87
zeroSource :: GenIO -> Source IO Double zeroSource mwcGen = normalDoubleSource mwcGen 0
87
zeroSource mwcGen = normalDoubleSource mwcGen 0
47
false
true
0
7
12
32
14
18
null
null
d0kt0r0/estuary
client/src/Estuary/Widgets/View.hs
gpl-3.0
viewWidget er (SandClockView z) = zoneWidget z (Holding 60) maybeTimerDownState CountDown er sandClockWidget
108
viewWidget er (SandClockView z) = zoneWidget z (Holding 60) maybeTimerDownState CountDown er sandClockWidget
108
viewWidget er (SandClockView z) = zoneWidget z (Holding 60) maybeTimerDownState CountDown er sandClockWidget
108
false
false
0
7
12
38
17
21
null
null
erochest/whatisdh
Text/Index.hs
bsd-2-clause
countBigrams :: TrigramIndex -> Int countBigrams index = S.size $ S.unions [ set index fst2 , set index snd2 ] where fst2 (a, b, _) = (a, b) snd2 (_, a, b) = (a, b)
262
countBigrams :: TrigramIndex -> Int countBigrams index = S.size $ S.unions [ set index fst2 , set index snd2 ] where fst2 (a, b, _) = (a, b) snd2 (_, a, b) = (a, b)
262
countBigrams index = S.size $ S.unions [ set index fst2 , set index snd2 ] where fst2 (a, b, _) = (a, b) snd2 (_, a, b) = (a, b)
226
false
true
1
8
132
94
51
43
null
null
ribag/ganeti-experiments
src/Ganeti/Constants.hs
gpl-2.0
beVcpus :: String beVcpus = "vcpus"
35
beVcpus :: String beVcpus = "vcpus"
35
beVcpus = "vcpus"
17
false
true
0
4
5
11
6
5
null
null
urbanslug/ghc
compiler/main/DriverPhases.hs
bsd-3-clause
startPhase "hs" = Cpp HsSrcFile
39
startPhase "hs" = Cpp HsSrcFile
39
startPhase "hs" = Cpp HsSrcFile
39
false
false
1
5
12
15
5
10
null
null
vshatskyi/i3wm-config-haskell
app/Main.hs
bsd-3-clause
fileManager = [Class "Nautilus"]
32
fileManager = [Class "Nautilus"]
32
fileManager = [Class "Nautilus"]
32
false
false
0
6
3
12
6
6
null
null
daleooo/barrelfish
hake/HakeTypes.hs
mit
formatToken (Out a f) = f ++ " "
32
formatToken (Out a f) = f ++ " "
32
formatToken (Out a f) = f ++ " "
32
false
false
0
7
8
21
10
11
null
null
afcowie/pipes-http
tests/MockServer.hs
bsd-3-clause
serveRepeatedResponseHeaders :: Snap () serveRepeatedResponseHeaders = do modifyResponse $ addHeader "Set-Cookie" "stone=diamond" modifyResponse $ addHeader "Set-Cookie" "metal=tungsten"
194
serveRepeatedResponseHeaders :: Snap () serveRepeatedResponseHeaders = do modifyResponse $ addHeader "Set-Cookie" "stone=diamond" modifyResponse $ addHeader "Set-Cookie" "metal=tungsten"
194
serveRepeatedResponseHeaders = do modifyResponse $ addHeader "Set-Cookie" "stone=diamond" modifyResponse $ addHeader "Set-Cookie" "metal=tungsten"
154
false
true
0
8
24
40
18
22
null
null
ekmett/text
tests/Tests/Properties.hs
bsd-2-clause
tl_dropAround p = (L.dropWhile p . L.reverse . L.dropWhile p . L.reverse) `eqP` (unpackS . TL.dropAround p)
129
tl_dropAround p = (L.dropWhile p . L.reverse . L.dropWhile p . L.reverse) `eqP` (unpackS . TL.dropAround p)
129
tl_dropAround p = (L.dropWhile p . L.reverse . L.dropWhile p . L.reverse) `eqP` (unpackS . TL.dropAround p)
129
false
false
0
11
38
56
28
28
null
null
gbaz/cabal
Cabal/Distribution/Simple/Setup.hs
bsd-3-clause
showProfDetailLevelFlag :: Flag ProfDetailLevel -> [String] showProfDetailLevelFlag NoFlag = []
98
showProfDetailLevelFlag :: Flag ProfDetailLevel -> [String] showProfDetailLevelFlag NoFlag = []
98
showProfDetailLevelFlag NoFlag = []
38
false
true
0
6
12
26
13
13
null
null
qpliu/esolang
flower/hs/Parse.hs
gpl-3.0
resolveUndetermined :: (String -> Maybe (Int,Int)) -> Definition -> Either [ParseError] Definition resolveUndetermined arity (Definition position name inputs outputs statements) = case foldl resolve ([],map symbolName inputs,[]) statements of ([],_,statements) -> Right (Definition position name inputs outpu...
1,937
resolveUndetermined :: (String -> Maybe (Int,Int)) -> Definition -> Either [ParseError] Definition resolveUndetermined arity (Definition position name inputs outputs statements) = case foldl resolve ([],map symbolName inputs,[]) statements of ([],_,statements) -> Right (Definition position name inputs outpu...
1,937
resolveUndetermined arity (Definition position name inputs outputs statements) = case foldl resolve ([],map symbolName inputs,[]) statements of ([],_,statements) -> Right (Definition position name inputs outputs (reverse statements)) (errors,_,_) -> Left (reverse errors) where resolve (errors,...
1,838
false
true
0
13
480
636
336
300
null
null