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/MkCore.hs
bsd-3-clause
wrapFloat :: FloatBind -> CoreExpr -> CoreExpr wrapFloat (FloatLet defns) body = Let defns body
101
wrapFloat :: FloatBind -> CoreExpr -> CoreExpr wrapFloat (FloatLet defns) body = Let defns body
101
wrapFloat (FloatLet defns) body = Let defns body
54
false
true
0
7
20
35
17
18
null
null
olorin/nagios-perfdata
src/Data/Nagios/Perfdata/Metric.hs
bsd-3-clause
parseReturnCode :: Integral a => a -> Maybe ReturnState parseReturnCode 0 = Just OKState
88
parseReturnCode :: Integral a => a -> Maybe ReturnState parseReturnCode 0 = Just OKState
88
parseReturnCode 0 = Just OKState
32
false
true
0
7
13
31
14
17
null
null
plurSKI/euclidOrchard
src/SdlMaze.hs
bsd-3-clause
handleInput _ d = d
19
handleInput _ d = d
19
handleInput _ d = d
19
false
false
1
5
4
12
5
7
null
null
harrisi/on-being-better
list-expansion/Haskell/course/src/Course/ListZipper.hs
cc0-1.0
fromList :: List a -> MaybeListZipper a fromList = error "todo: Course.ListZipper#fromList"
97
fromList :: List a -> MaybeListZipper a fromList = error "todo: Course.ListZipper#fromList"
97
fromList = error "todo: Course.ListZipper#fromList"
53
false
true
0
7
17
30
12
18
null
null
bitemyapp/ghc-mod
Language/Haskell/GhcMod/Gap.hs
bsd-3-clause
setLogAction :: DynFlags -> (DynFlags -> Severity -> SrcSpan -> PprStyle -> SDoc -> IO ()) -> DynFlags setLogAction df f = #if __GLASGOW_HASKELL__ >= 706 df { log_action = f }
205
setLogAction :: DynFlags -> (DynFlags -> Severity -> SrcSpan -> PprStyle -> SDoc -> IO ()) -> DynFlags setLogAction df f = #if __GLASGOW_HASKELL__ >= 706 df { log_action = f }
205
setLogAction df f = #if __GLASGOW_HASKELL__ >= 706 df { log_action = f }
76
false
true
0
14
61
61
32
29
null
null
cbpark/scalar-portal
src/calcvar.hs
gpl-3.0
variables :: Monad m => Pipe [Particle] [Result] m () variables = forever $ do ps <- await let results = map calcVar ps yield $ map (Result . zip vars) results
171
variables :: Monad m => Pipe [Particle] [Result] m () variables = forever $ do ps <- await let results = map calcVar ps yield $ map (Result . zip vars) results
171
variables = forever $ do ps <- await let results = map calcVar ps yield $ map (Result . zip vars) results
117
false
true
0
12
43
82
39
43
null
null
oahziur/yige-pass
src/Add.hs
bsd-3-clause
getNewPassword :: IO String getNewPassword = do newPass <- genNewPassword defaultLen <$> newStdGen flushStr $ "Password (default: " ++ newPass ++ " ):" password <- getLine if null password then do setClipboard newPass putStrLn $ newPass ++ "\t\t - copied to clipboard" ...
400
getNewPassword :: IO String getNewPassword = do newPass <- genNewPassword defaultLen <$> newStdGen flushStr $ "Password (default: " ++ newPass ++ " ):" password <- getLine if null password then do setClipboard newPass putStrLn $ newPass ++ "\t\t - copied to clipboard" ...
400
getNewPassword = do newPass <- genNewPassword defaultLen <$> newStdGen flushStr $ "Password (default: " ++ newPass ++ " ):" password <- getLine if null password then do setClipboard newPass putStrLn $ newPass ++ "\t\t - copied to clipboard" return newPass ...
372
false
true
0
11
124
98
44
54
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/GTEQ_7.hs
mit
gtEsOrdering :: Ordering -> Ordering -> MyBool gtEsOrdering x y = fsEsOrdering (compareOrdering x y) LT
107
gtEsOrdering :: Ordering -> Ordering -> MyBool gtEsOrdering x y = fsEsOrdering (compareOrdering x y) LT
107
gtEsOrdering x y = fsEsOrdering (compareOrdering x y) LT
56
false
true
0
7
19
37
18
19
null
null
dec9ue/jhc_copygc
src/FrontEnd/Tc/Class.hs
gpl-2.0
match' t1 t2 = fail $ "match: " ++ show (t1,t2)
48
match' t1 t2 = fail $ "match: " ++ show (t1,t2)
48
match' t1 t2 = fail $ "match: " ++ show (t1,t2)
48
false
false
5
6
11
34
14
20
null
null
HaskellCNOrg/snap-web
src/Models/Utils.hs
bsd-3-clause
bsToS :: BS.ByteString -> String bsToS = T.unpack . T.decodeUtf8
65
bsToS :: BS.ByteString -> String bsToS = T.unpack . T.decodeUtf8
65
bsToS = T.unpack . T.decodeUtf8
31
false
true
0
6
10
25
13
12
null
null
stevely/AutoStorable
src/Foreign/AutoStorable/Types.hs
mit
split2 :: S2 a b -> T2 a b split2 = undefined
45
split2 :: S2 a b -> T2 a b split2 = undefined
45
split2 = undefined
18
false
true
0
6
11
25
12
13
null
null
snoyberg/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
-- AMP additions joinMName, alternativeClassName :: Name joinMName = varQual gHC_BASE (fsLit "join") joinMIdKey
130
joinMName, alternativeClassName :: Name joinMName = varQual gHC_BASE (fsLit "join") joinMIdKey
112
joinMName = varQual gHC_BASE (fsLit "join") joinMIdKey
72
true
true
0
7
32
27
15
12
null
null
bgold-cosmos/Tidal
src/Sound/Tidal/Params.hs
gpl-3.0
holdrecv :: Pattern Int -> ControlPattern holdrecv busid = pI "^hold" busid
75
holdrecv :: Pattern Int -> ControlPattern holdrecv busid = pI "^hold" busid
75
holdrecv busid = pI "^hold" busid
33
false
true
0
7
11
33
13
20
null
null
alexander-at-github/eta
compiler/ETA/TypeCheck/TcSimplify.hs
bsd-3-clause
promoteAndDefaultTyVar :: TcLevel -> TcTyVarSet -> TyVar -> TcS () -- See Note [Promote _and_ default when inferring] promoteAndDefaultTyVar tclvl gbl_tvs tv = do { tv1 <- if tv `elemVarSet` gbl_tvs then return tv else defaultTyVar tv ; promoteTyVar tclvl tv1 }
302
promoteAndDefaultTyVar :: TcLevel -> TcTyVarSet -> TyVar -> TcS () promoteAndDefaultTyVar tclvl gbl_tvs tv = do { tv1 <- if tv `elemVarSet` gbl_tvs then return tv else defaultTyVar tv ; promoteTyVar tclvl tv1 }
251
promoteAndDefaultTyVar tclvl gbl_tvs tv = do { tv1 <- if tv `elemVarSet` gbl_tvs then return tv else defaultTyVar tv ; promoteTyVar tclvl tv1 }
184
true
true
0
9
82
74
38
36
null
null
quchen/stg
test/Testsuite/Test/Machine/Evaluate/Programs.hs
bsd-3-clause
meanTestTemplate :: MVal.MarshalledValueTestSpec (NonEmptyList Integer) Integer meanTestTemplate = let mean :: [Integer] -> Integer mean xs = let (total, count) = foldl' go (0,0) xs go (!t, !c) x = (t+x, c+1) in total `div` count in MVal.MarshalledValueTestSpec ...
914
meanTestTemplate :: MVal.MarshalledValueTestSpec (NonEmptyList Integer) Integer meanTestTemplate = let mean :: [Integer] -> Integer mean xs = let (total, count) = foldl' go (0,0) xs go (!t, !c) x = (t+x, c+1) in total `div` count in MVal.MarshalledValueTestSpec ...
914
meanTestTemplate = let mean :: [Integer] -> Integer mean xs = let (total, count) = foldl' go (0,0) xs go (!t, !c) x = (t+x, c+1) in total `div` count in MVal.MarshalledValueTestSpec { MVal.testName = "Mena test template" , MVal.maxSteps = 1024 ...
834
false
true
1
15
335
271
148
123
null
null
gridaphobe/liquid-fixpoint
src/Language/Fixpoint/Types/Sorts.hs
bsd-3-clause
propSort = fTyconSort propFTyCon
32
propSort = fTyconSort propFTyCon
32
propSort = fTyconSort propFTyCon
32
false
false
0
5
3
9
4
5
null
null
TimLuq/sqrl-auth-client-hs
src/Web/Authenticate/SQRL/SecureStorage.hs
mit
ssDecrypt' :: Binary r => ByteString -> ScryptIterations -> LogN -> ByteString -> ByteString -> ByteString -> ByteString -> Text -> Maybe r ssDecrypt' ver iter logn iv salt aad dta pass = if toBytes tag /= ver then Nothing else case decodeOrFail $ LBS.fromStrict r of Left err -> error $ "ssDecrypt: tag matc...
671
ssDecrypt' :: Binary r => ByteString -> ScryptIterations -> LogN -> ByteString -> ByteString -> ByteString -> ByteString -> Text -> Maybe r ssDecrypt' ver iter logn iv salt aad dta pass = if toBytes tag /= ver then Nothing else case decodeOrFail $ LBS.fromStrict r of Left err -> error $ "ssDecrypt: tag matc...
671
ssDecrypt' ver iter logn iv salt aad dta pass = if toBytes tag /= ver then Nothing else case decodeOrFail $ LBS.fromStrict r of Left err -> error $ "ssDecrypt: tag matched but encrypted data is somehow corrupt (" ++ show err ++ ")." Right (_, _, r') -> Just r' where pssky = enScrypt iter logn salt...
531
false
true
1
15
148
193
94
99
null
null
jwiegley/ghc-release
compiler/llvmGen/Llvm/Types.hs
gpl-3.0
-- | Width in bits of an 'LlvmType', returns 0 if not applicable llvmWidthInBits :: DynFlags -> LlvmType -> Int llvmWidthInBits _ (LMInt n) = n
154
llvmWidthInBits :: DynFlags -> LlvmType -> Int llvmWidthInBits _ (LMInt n) = n
89
llvmWidthInBits _ (LMInt n) = n
42
true
true
0
10
36
37
17
20
null
null
UBMLtonGroup/timberc
src/Common.hs
bsd-3-clause
between Unknown b@(Between _ _) = b
35
between Unknown b@(Between _ _) = b
35
between Unknown b@(Between _ _) = b
35
false
false
0
8
6
22
11
11
null
null
enolan/cabal
cabal-install/Distribution/Client/List.hs
bsd-3-clause
latestWithPref pref pkgs = Just (maximumBy (comparing prefThenVersion) pkgs) where prefThenVersion pkg = let ver = packageVersion pkg in (withinRange ver pref, ver) -- | Rearrange installed and source packages into groups referring to the -- same package by name. In the result pairs, ...
372
latestWithPref pref pkgs = Just (maximumBy (comparing prefThenVersion) pkgs) where prefThenVersion pkg = let ver = packageVersion pkg in (withinRange ver pref, ver) -- | Rearrange installed and source packages into groups referring to the -- same package by name. In the result pairs, ...
372
latestWithPref pref pkgs = Just (maximumBy (comparing prefThenVersion) pkgs) where prefThenVersion pkg = let ver = packageVersion pkg in (withinRange ver pref, ver) -- | Rearrange installed and source packages into groups referring to the -- same package by name. In the result pairs, ...
372
false
false
2
9
89
76
34
42
null
null
abakst/liquidhaskell
src/Language/Haskell/Liquid/Parse.hs
bsd-3-clause
termBareTypeP :: Parser (BareType, Maybe [Expr]) termBareTypeP = try termTypeP <|> (, Nothing) <$> genBareTypeP
116
termBareTypeP :: Parser (BareType, Maybe [Expr]) termBareTypeP = try termTypeP <|> (, Nothing) <$> genBareTypeP
116
termBareTypeP = try termTypeP <|> (, Nothing) <$> genBareTypeP
67
false
true
3
8
19
45
24
21
null
null
sherwoodwang/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxSTC_ST_RETURN :: Int wxSTC_ST_RETURN = 11
43
wxSTC_ST_RETURN :: Int wxSTC_ST_RETURN = 11
43
wxSTC_ST_RETURN = 11
20
false
true
0
6
5
18
7
11
null
null
edofic/core.js
runtime/ghcprim/GHC-Base.hs
mit
breakpointCond :: Bool -> a -> a breakpointCond _ r = r
55
breakpointCond :: Bool -> a -> a breakpointCond _ r = r
55
breakpointCond _ r = r
22
false
true
0
6
11
24
12
12
null
null
jaredloomis/GLMatrix
GLMatrix.hs
gpl-3.0
orthoMatrix :: GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> Matrix4x4 orthoMatrix l r b t n f = let ai = 2/(r-l) bi = 2/(t-b) ci = -2/(f-n) di = -(r+l)/(r-l) ei = -(t+b)/(t-b) fi = -(f+n)/(f-n) in [[ai, 0, 0, 0], [0, bi, 0, 0], [0, 0...
351
orthoMatrix :: GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> GLfloat -> Matrix4x4 orthoMatrix l r b t n f = let ai = 2/(r-l) bi = 2/(t-b) ci = -2/(f-n) di = -(r+l)/(r-l) ei = -(t+b)/(t-b) fi = -(f+n)/(f-n) in [[ai, 0, 0, 0], [0, bi, 0, 0], [0, 0...
351
orthoMatrix l r b t n f = let ai = 2/(r-l) bi = 2/(t-b) ci = -2/(f-n) di = -(r+l)/(r-l) ei = -(t+b)/(t-b) fi = -(f+n)/(f-n) in [[ai, 0, 0, 0], [0, bi, 0, 0], [0, 0, ci, 0], [di, ei, fi, 1]]
256
false
true
0
12
129
239
136
103
null
null
spechub/Hets
OWL2/ParseMS.hs
gpl-2.0
lassFrame :: GA.PrefixMap -> CharParser st [Axiom] classFrame pm = do pkeyword classC i <- expUriP pm axs <- many $ classFrameBit pm i -- ignore Individuals: ... ! -- optional $ pkeyword individualsC >> sepByComma (individual pm) return $ Declaration [] (mkEntity Class i) : concat axs
310
classFrame :: GA.PrefixMap -> CharParser st [Axiom] classFrame pm = do pkeyword classC i <- expUriP pm axs <- many $ classFrameBit pm i -- ignore Individuals: ... ! -- optional $ pkeyword individualsC >> sepByComma (individual pm) return $ Declaration [] (mkEntity Class i) : concat axs
310
classFrame pm = do pkeyword classC i <- expUriP pm axs <- many $ classFrameBit pm i -- ignore Individuals: ... ! -- optional $ pkeyword individualsC >> sepByComma (individual pm) return $ Declaration [] (mkEntity Class i) : concat axs
258
false
true
0
11
72
91
42
49
null
null
da-x/buildsome
src/Buildsome/Db.hs
gpl-2.0
withLevelDb :: FilePath -> (LevelDB.DB -> IO a) -> IO a withLevelDb dbPath = LevelDB.withDB (BS8.unpack (dbPath </> schemaVersion)) options
141
withLevelDb :: FilePath -> (LevelDB.DB -> IO a) -> IO a withLevelDb dbPath = LevelDB.withDB (BS8.unpack (dbPath </> schemaVersion)) options
141
withLevelDb dbPath = LevelDB.withDB (BS8.unpack (dbPath </> schemaVersion)) options
85
false
true
0
9
21
59
29
30
null
null
Verites/verigraph
src/library/Rewriting/DPO/TypedGraph/GraphProcess.hs
apache-2.0
createdElements :: Relation -> Set RelationItem createdElements elementsRelation = let m = setToMonad (filterCreationRelation elementsRelation) c = relationImage m created = monadToSet c in created
214
createdElements :: Relation -> Set RelationItem createdElements elementsRelation = let m = setToMonad (filterCreationRelation elementsRelation) c = relationImage m created = monadToSet c in created
214
createdElements elementsRelation = let m = setToMonad (filterCreationRelation elementsRelation) c = relationImage m created = monadToSet c in created
166
false
true
0
11
41
62
28
34
null
null
forsyde/forsyde-atom
src/ForSyDe/Atom/Skel/Vector/Matrix.hs
bsd-3-clause
isNull :: Matrix a -> Bool isNull Null = True
45
isNull :: Matrix a -> Bool isNull Null = True
45
isNull Null = True
18
false
true
0
6
9
21
10
11
null
null
markflorisson/hpack
testrepo/bytestring-0.9.1.9/Data/ByteString/Unsafe.hs
bsd-3-clause
-- | A variety of 'drop' which omits the checks on @n@ so there is an -- obligation on the programmer to provide a proof that @0 <= n <= 'length' xs@. unsafeDrop :: Int -> ByteString -> ByteString unsafeDrop n (PS x s l) = assert (0 <= n && n <= l) $ PS x (s+n) (l-n)
268
unsafeDrop :: Int -> ByteString -> ByteString unsafeDrop n (PS x s l) = assert (0 <= n && n <= l) $ PS x (s+n) (l-n)
117
unsafeDrop n (PS x s l) = assert (0 <= n && n <= l) $ PS x (s+n) (l-n)
70
true
true
0
10
59
79
41
38
null
null
adolenc/AlexanderTheGreat
src/Data/Tangle.hs
mit
cap :: () -> KnotMonad (Bool,Bool) cap () = (-i * b) .* return (False,True) .+ (i * a) .* return (True,False)
109
cap :: () -> KnotMonad (Bool,Bool) cap () = (-i * b) .* return (False,True) .+ (i * a) .* return (True,False)
109
cap () = (-i * b) .* return (False,True) .+ (i * a) .* return (True,False)
74
false
true
1
8
21
83
43
40
null
null
mariefarrell/Hets
Static/XSimplePath.hs
gpl-2.0
applyChange (ChangeCr cr) (ChangeData csel attrSel) = case (csel, attrSel) of -- Case#1: full element removal (Remove, Nothing) -> return RemoveCr -- Case#2: attribute removal (Remove, Just atS) -> removeOrChangeAttr Nothing cr atS -- Case#3: addChanges, either attr-/ or element-insertion (Add pos addCs, _)...
675
applyChange (ChangeCr cr) (ChangeData csel attrSel) = case (csel, attrSel) of -- Case#1: full element removal (Remove, Nothing) -> return RemoveCr -- Case#2: attribute removal (Remove, Just atS) -> removeOrChangeAttr Nothing cr atS -- Case#3: addChanges, either attr-/ or element-insertion (Add pos addCs, _)...
675
applyChange (ChangeCr cr) (ChangeData csel attrSel) = case (csel, attrSel) of -- Case#1: full element removal (Remove, Nothing) -> return RemoveCr -- Case#2: attribute removal (Remove, Just atS) -> removeOrChangeAttr Nothing cr atS -- Case#3: addChanges, either attr-/ or element-insertion (Add pos addCs, _)...
675
false
false
6
8
128
189
95
94
null
null
emwap/feldspar-language
tests/SemanticsTest.hs
bsd-3-clause
tests = $(testGroupGenerator)
29
tests = $(testGroupGenerator)
29
tests = $(testGroupGenerator)
29
false
false
0
7
2
14
6
8
null
null
osa1/rho-torrent
test/Rho/MetainfoSpec.hs
bsd-3-clause
infoHashShow :: Test infoHashShow = TestCase $ do mi <- parseMIAssertion "test/test.torrent" assertEqual "InfoHash show instance is broken" "f89e0dfd9cfca852d97ad6afa44d8f73ce70b636" (show $ iHash $ mInfo mi)
261
infoHashShow :: Test infoHashShow = TestCase $ do mi <- parseMIAssertion "test/test.torrent" assertEqual "InfoHash show instance is broken" "f89e0dfd9cfca852d97ad6afa44d8f73ce70b636" (show $ iHash $ mInfo mi)
261
infoHashShow = TestCase $ do mi <- parseMIAssertion "test/test.torrent" assertEqual "InfoHash show instance is broken" "f89e0dfd9cfca852d97ad6afa44d8f73ce70b636" (show $ iHash $ mInfo mi)
240
false
true
0
11
77
49
23
26
null
null
mgrabmueller/harpy
Harpy/X86CodeGen.hs
bsd-3-clause
x86_prefix :: Word8 -> CodeGen s e () x86_prefix p = emit8 p
60
x86_prefix :: Word8 -> CodeGen s e () x86_prefix p = emit8 p
60
x86_prefix p = emit8 p
22
false
true
0
7
12
30
14
16
null
null
annenkov/contracts
Coq/Extraction/contracts-haskell/src/Contracts/PrettyPrinting.hs
mit
pOp (RLit r) [] = show r
25
ppOp (RLit r) [] = show r
25
ppOp (RLit r) [] = show r
25
false
false
1
7
7
24
10
14
null
null
MP2E/XMonadContrib
XMonad/Layout/BinarySpacePartition.hs
bsd-3-clause
-- | an empty BinarySpacePartition to use as a default for adding windows to. emptyBSP :: BinarySpacePartition a emptyBSP = BinarySpacePartition Nothing
152
emptyBSP :: BinarySpacePartition a emptyBSP = BinarySpacePartition Nothing
74
emptyBSP = BinarySpacePartition Nothing
39
true
true
1
5
21
21
9
12
null
null
tolysz/dsp
Numeric/Statistics/Moment.hs
gpl-2.0
skew :: (RealFloat a) => [a] -> a skew xs = Prelude.sum (map (\x -> ((x - mu) / sigma)^(3::Int)) xs) / n where mu = mean xs sigma = stddev xs n = fromIntegral $ length $ xs -- | Compute the kurtosis of a list -- -- @ Kurt(X) = ( 1\/N sum(i=1..N) ((x_i-mu)\/sigma)^4 ) - 3@
298
skew :: (RealFloat a) => [a] -> a skew xs = Prelude.sum (map (\x -> ((x - mu) / sigma)^(3::Int)) xs) / n where mu = mean xs sigma = stddev xs n = fromIntegral $ length $ xs -- | Compute the kurtosis of a list -- -- @ Kurt(X) = ( 1\/N sum(i=1..N) ((x_i-mu)\/sigma)^4 ) - 3@
298
skew xs = Prelude.sum (map (\x -> ((x - mu) / sigma)^(3::Int)) xs) / n where mu = mean xs sigma = stddev xs n = fromIntegral $ length $ xs -- | Compute the kurtosis of a list -- -- @ Kurt(X) = ( 1\/N sum(i=1..N) ((x_i-mu)\/sigma)^4 ) - 3@
264
false
true
0
15
84
113
62
51
null
null
sos22/himap
HeaderParse.hs
gpl-3.0
dotAtomText :: Parser String dotAtomText = let sep = (many1 $ alternatives $ map char ".:;,") in liftM (intercalate ".") $ do r <- many1Sep atom (stripCFWS sep) _ <- optional sep return r
259
dotAtomText :: Parser String dotAtomText = let sep = (many1 $ alternatives $ map char ".:;,") in liftM (intercalate ".") $ do r <- many1Sep atom (stripCFWS sep) _ <- optional sep return r
259
dotAtomText = let sep = (many1 $ alternatives $ map char ".:;,") in liftM (intercalate ".") $ do r <- many1Sep atom (stripCFWS sep) _ <- optional sep return r
230
false
true
0
12
105
94
41
53
null
null
ulricha/dsh
src/Database/DSH/VSL/Opt/Properties/Types.hs
bsd-3-clause
isConst :: (Int, ConstPayload) -> [(Int, ScalarVal)] -> [(Int, ScalarVal)] isConst (_, NonConstPL) vals = vals
112
isConst :: (Int, ConstPayload) -> [(Int, ScalarVal)] -> [(Int, ScalarVal)] isConst (_, NonConstPL) vals = vals
112
isConst (_, NonConstPL) vals = vals
37
false
true
0
10
17
60
33
27
null
null
romanb/amazonka
amazonka-elb/gen/Network/AWS/ELB/DescribeLoadBalancerPolicies.hs
mpl-2.0
-- | The names of the policies. dlbpPolicyNames :: Lens' DescribeLoadBalancerPolicies [Text] dlbpPolicyNames = lens _dlbpPolicyNames (\s a -> s { _dlbpPolicyNames = a }) . _List
177
dlbpPolicyNames :: Lens' DescribeLoadBalancerPolicies [Text] dlbpPolicyNames = lens _dlbpPolicyNames (\s a -> s { _dlbpPolicyNames = a }) . _List
145
dlbpPolicyNames = lens _dlbpPolicyNames (\s a -> s { _dlbpPolicyNames = a }) . _List
84
true
true
1
10
26
53
26
27
null
null
brianshourd/adventOfCode2016
test/Day7Spec.hs
mit
sampleInput' :: [String] sampleInput' = [ "aba[bab]xyz" , "xyx[xyx]xyx" , "aaa[kek]eke" , "zazbz[bzb]cdb" ]
127
sampleInput' :: [String] sampleInput' = [ "aba[bab]xyz" , "xyx[xyx]xyx" , "aaa[kek]eke" , "zazbz[bzb]cdb" ]
127
sampleInput' = [ "aba[bab]xyz" , "xyx[xyx]xyx" , "aaa[kek]eke" , "zazbz[bzb]cdb" ]
102
false
true
0
5
33
26
16
10
null
null
conal/generic-fft
src/Generic/FFT.hs
bsd-3-clause
i2pi :: C i2pi = 0 :+ 2*pi
26
i2pi :: C i2pi = 0 :+ 2*pi
26
i2pi = 0 :+ 2*pi
16
false
true
0
6
7
26
11
15
null
null
ankeshs/numerikell
tmp/Number.hs
bsd-3-clause
fibonacci :: Int -> Int fibonacci 0 = 1
40
fibonacci :: Int -> Int fibonacci 0 = 1
39
fibonacci 0 = 1
15
false
true
0
5
9
18
9
9
null
null
andrewthad/yesod
yesod-bin/GhcBuild.hs
mit
-- ghc --abi-hash doMkDependHSMode, doMakeMode, doInteractiveMode, doAbiHashMode :: Mode doMkDependHSMode = mkPostLoadMode DoMkDependHS
136
doMkDependHSMode, doMakeMode, doInteractiveMode, doAbiHashMode :: Mode doMkDependHSMode = mkPostLoadMode DoMkDependHS
117
doMkDependHSMode = mkPostLoadMode DoMkDependHS
46
true
true
0
5
13
21
14
7
null
null
headprogrammingczar/cabal
cabal-install/Distribution/Client/Sandbox/PackageEnvironment.hs
bsd-3-clause
-- | Given a path to a sandbox, return the corresponding InstallDirs record. sandboxInstallDirs :: FilePath -> InstallDirs (Flag PathTemplate) sandboxInstallDirs sandboxDir = mempty { prefix = toFlag (toPathTemplate sandboxDir) }
233
sandboxInstallDirs :: FilePath -> InstallDirs (Flag PathTemplate) sandboxInstallDirs sandboxDir = mempty { prefix = toFlag (toPathTemplate sandboxDir) }
156
sandboxInstallDirs sandboxDir = mempty { prefix = toFlag (toPathTemplate sandboxDir) }
90
true
true
0
9
34
45
23
22
null
null
CindyLinz/Haskell.js
trans/src/Desugar/LambdaCase.hs
mit
deLambdaCaseBracket (PatBracket l pat) = PatBracket (id l) (deLambdaCasePat pat)
80
deLambdaCaseBracket (PatBracket l pat) = PatBracket (id l) (deLambdaCasePat pat)
80
deLambdaCaseBracket (PatBracket l pat) = PatBracket (id l) (deLambdaCasePat pat)
80
false
false
0
7
9
34
16
18
null
null
ocramz/monad-bayes
src/Control/Monad/Bayes/Inference.hs
mit
-- | `smc` with post-processing like in 'importance''. smc' :: (Ord a, MonadDist m) => Int -> Int -> Sequential (Population m) a -> m [(a, CustomReal m)] smc' k n d = fmap (compact . map (second fromLogDomain)) $ runPopulation $ smc k n d
246
smc' :: (Ord a, MonadDist m) => Int -> Int -> Sequential (Population m) a -> m [(a, CustomReal m)] smc' k n d = fmap (compact . map (second fromLogDomain)) $ runPopulation $ smc k n d
191
smc' k n d = fmap (compact . map (second fromLogDomain)) $ runPopulation $ smc k n d
84
true
true
0
13
53
110
54
56
null
null
wilbowma/accelerate
Data/Array/Accelerate/Pretty/Traverse.hs
bsd-3-clause
labelForPrimFun (PrimBAnd _) = "PrimBAnd"
51
labelForPrimFun (PrimBAnd _) = "PrimBAnd"
51
labelForPrimFun (PrimBAnd _) = "PrimBAnd"
51
false
false
0
6
14
16
7
9
null
null
martin-kolinek/stack
src/Stack/Types/Resolver.hs
bsd-3-clause
-- | Parse the short representation of a 'SnapName'. parseSnapName :: MonadThrow m => Text -> m SnapName parseSnapName t0 = case lts <|> nightly of Nothing -> throwM $ ParseSnapNameException t0 Just sn -> return sn where lts = do t1 <- T.stripPrefix "lts-" t0 Right (x, t2) <- J...
608
parseSnapName :: MonadThrow m => Text -> m SnapName parseSnapName t0 = case lts <|> nightly of Nothing -> throwM $ ParseSnapNameException t0 Just sn -> return sn where lts = do t1 <- T.stripPrefix "lts-" t0 Right (x, t2) <- Just $ decimal t1 t3 <- T.stripPrefix "." t2 ...
555
parseSnapName t0 = case lts <|> nightly of Nothing -> throwM $ ParseSnapNameException t0 Just sn -> return sn where lts = do t1 <- T.stripPrefix "lts-" t0 Right (x, t2) <- Just $ decimal t1 t3 <- T.stripPrefix "." t2 Right (y, "") <- Just $ decimal t3 re...
503
true
true
1
12
183
196
90
106
null
null
DanielWaterworth/Idris-dev
src/Idris/Completion.hs
bsd-3-clause
completeWith :: [String] -> String -> [Completion] completeWith ns n = if uniqueExists then [simpleCompletion n] else map simpleCompletion prefixMatches where prefixMatches = filter (isPrefixOf n) ns uniqueExists = [n] == prefixMatches
289
completeWith :: [String] -> String -> [Completion] completeWith ns n = if uniqueExists then [simpleCompletion n] else map simpleCompletion prefixMatches where prefixMatches = filter (isPrefixOf n) ns uniqueExists = [n] == prefixMatches
289
completeWith ns n = if uniqueExists then [simpleCompletion n] else map simpleCompletion prefixMatches where prefixMatches = filter (isPrefixOf n) ns uniqueExists = [n] == prefixMatches
238
false
true
0
7
85
85
43
42
null
null
roberth/uu-helium
src/Helium/StaticAnalysis/Directives/TS_Apply.hs
gpl-3.0
m_Core_UserStatements_Cons :: T_Core_UserStatement -> T_Core_UserStatements -> T_Core_UserStatements sem_Core_UserStatements_Cons hd_ tl_ = (\ _lhsIcollectConstraints _lhsIcurrentPhase _lhsIcurrentPosition _lhsIfromAttribute ...
4,528
sem_Core_UserStatements_Cons :: T_Core_UserStatement -> T_Core_UserStatements -> T_Core_UserStatements sem_Core_UserStatements_Cons hd_ tl_ = (\ _lhsIcollectConstraints _lhsIcurrentPhase _lhsIcurrentPosition _lhsIfromAttribute ...
4,528
sem_Core_UserStatements_Cons hd_ tl_ = (\ _lhsIcollectConstraints _lhsIcurrentPhase _lhsIcurrentPosition _lhsIfromAttribute _lhsIinfoTuple _lhsImetaVariableTable _lhsImetavarConstraints _lhsIsubstitution -> (let _lhsOftv :: ([Int]) _lhsOcollect...
4,361
false
true
0
17
1,534
687
396
291
null
null
rueshyna/gogol
gogol-firebase-rules/gen/Network/Google/Resource/FirebaseRules/Projects/Rulesets/Get.hs
mpl-2.0
-- | Pretty-print response. prgPp :: Lens' ProjectsRulesetsGet Bool prgPp = lens _prgPp (\ s a -> s{_prgPp = a})
112
prgPp :: Lens' ProjectsRulesetsGet Bool prgPp = lens _prgPp (\ s a -> s{_prgPp = a})
84
prgPp = lens _prgPp (\ s a -> s{_prgPp = a})
44
true
true
1
9
19
43
22
21
null
null
google-research/dex-lang
src/lib/JIT.hs
bsd-3-clause
mul :: LLVMBuilder m => Operand -> Operand -> m Operand mul x y = emitInstr (typeOf x) $ L.Mul False False x y []
113
mul :: LLVMBuilder m => Operand -> Operand -> m Operand mul x y = emitInstr (typeOf x) $ L.Mul False False x y []
113
mul x y = emitInstr (typeOf x) $ L.Mul False False x y []
57
false
true
0
9
24
66
30
36
null
null
peterthiemann/cftools
src/Algo.hs
bsd-3-clause
reverseNT (NT lts n rts) = (NT rts n lts)
45
reverseNT (NT lts n rts) = (NT rts n lts)
45
reverseNT (NT lts n rts) = (NT rts n lts)
45
false
false
0
7
13
29
14
15
null
null
sjakobi/brick
programs/EditDemo.hs
bsd-3-clause
appEvent st _ = M.continue st
29
appEvent st _ = M.continue st
29
appEvent st _ = M.continue st
29
false
false
0
6
5
16
7
9
null
null
Melvar/Idris-dev
src/Idris/IBC.hs
bsd-3-clause
pTrans :: [(Name, (Term, Term))] -> Idris () pTrans ts = mapM_ (\ (n, t) -> addTrans n t) ts
92
pTrans :: [(Name, (Term, Term))] -> Idris () pTrans ts = mapM_ (\ (n, t) -> addTrans n t) ts
92
pTrans ts = mapM_ (\ (n, t) -> addTrans n t) ts
47
false
true
0
9
19
67
35
32
null
null
keera-studios/hsQt
Qtc/Enums/Core/QUrl.hs
bsd-2-clause
eStrictMode :: ParsingMode eStrictMode = ieParsingMode $ 1
60
eStrictMode :: ParsingMode eStrictMode = ieParsingMode $ 1
60
eStrictMode = ieParsingMode $ 1
33
false
true
0
6
9
18
8
10
null
null
olsner/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
trModuleTyConKey = mkPreludeDataConUnique 43
67
trModuleTyConKey = mkPreludeDataConUnique 43
67
trModuleTyConKey = mkPreludeDataConUnique 43
67
false
false
0
5
26
9
4
5
null
null
jsl/RunnyBabbot
src/RunnyBabbot/Configuration.hs
mit
credentials :: String -> IO (Either CPError OauthCredentials) credentials filepath = MTL.runErrorT $ do cp <- join $ liftIO $ readfile emptyCP filepath consumerKey <- get cp "oauth" "consumer_key" consumerSecret <...
819
credentials :: String -> IO (Either CPError OauthCredentials) credentials filepath = MTL.runErrorT $ do cp <- join $ liftIO $ readfile emptyCP filepath consumerKey <- get cp "oauth" "consumer_key" consumerSecret <...
819
credentials filepath = MTL.runErrorT $ do cp <- join $ liftIO $ readfile emptyCP filepath consumerKey <- get cp "oauth" "consumer_key" consumerSecret <- get cp "oauth" "consumer_secret" ac...
757
false
true
0
11
438
134
59
75
null
null
CRogers/stack
src/Stack/Fetch.hs
bsd-3-clause
withCabalLoader :: (MonadThrow m, MonadIO m, MonadReader env m, HasConfig env, MonadLogger m, HasHttpManager env, MonadBaseControl IO m, MonadCatch m) => EnvOverride -> ((PackageIdentifier -> IO ByteString) -> m a) -> m a withCabalLoader menv inner = do icaches <- getPackageCaches menv >>= liftIO . ...
2,192
withCabalLoader :: (MonadThrow m, MonadIO m, MonadReader env m, HasConfig env, MonadLogger m, HasHttpManager env, MonadBaseControl IO m, MonadCatch m) => EnvOverride -> ((PackageIdentifier -> IO ByteString) -> m a) -> m a withCabalLoader menv inner = do icaches <- getPackageCaches menv >>= liftIO . ...
2,192
withCabalLoader menv inner = do icaches <- getPackageCaches menv >>= liftIO . newIORef env <- ask -- Want to try updating the index once during a single run for missing -- package identifiers. We also want to ensure we only update once at a -- time updateRef <- liftIO $ newMVar True runInB...
1,954
false
true
0
28
959
495
236
259
null
null
JakeWheat/Chaos-2010
Games/Chaos2010/Database/Spell_details.hs
bsd-3-clause
spell_details :: Table Spell_details spell_details = baseTable "spell_details"
78
spell_details :: Table Spell_details spell_details = baseTable "spell_details"
78
spell_details = baseTable "spell_details"
41
false
true
0
5
7
17
8
9
null
null
Proclivis/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
-- | A mask to extract border style from the combination of flags wxBORDER_MASK :: Int wxBORDER_MASK = 0x1f200000
117
wxBORDER_MASK :: Int wxBORDER_MASK = 0x1f200000
51
wxBORDER_MASK = 0x1f200000
28
true
true
0
4
22
12
7
5
null
null
roberth/uu-helium
test/benchmarks/Parser.hs
gpl-3.0
leLex l n ('-':cs) = case cs of [] -> [(l, n, Lminus, "-")] ('-':cs2) -> leLexLComment l (n+2) cs2 ('>':cs3) -> (l, n, Larrow, "->") : leLex l (n+2) cs3 ('}':cs3) -> leFail l n "Misplaced -}" (_:_) -> (l, n, Lminus, "-") : leLex l (n+1) cs
298
leLex l n ('-':cs) = case cs of [] -> [(l, n, Lminus, "-")] ('-':cs2) -> leLexLComment l (n+2) cs2 ('>':cs3) -> (l, n, Larrow, "->") : leLex l (n+2) cs3 ('}':cs3) -> leFail l n "Misplaced -}" (_:_) -> (l, n, Lminus, "-") : leLex l (n+1) cs
298
leLex l n ('-':cs) = case cs of [] -> [(l, n, Lminus, "-")] ('-':cs2) -> leLexLComment l (n+2) cs2 ('>':cs3) -> (l, n, Larrow, "->") : leLex l (n+2) cs3 ('}':cs3) -> leFail l n "Misplaced -}" (_:_) -> (l, n, Lminus, "-") : leLex l (n+1) cs
298
false
false
0
11
107
183
98
85
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/Functions/F19.hs
bsd-3-clause
ptr_glPathParameteriNV :: FunPtr (GLuint -> GLenum -> GLint -> IO ()) ptr_glPathParameteriNV = unsafePerformIO $ getCommand "glPathParameteriNV"
144
ptr_glPathParameteriNV :: FunPtr (GLuint -> GLenum -> GLint -> IO ()) ptr_glPathParameteriNV = unsafePerformIO $ getCommand "glPathParameteriNV"
144
ptr_glPathParameteriNV = unsafePerformIO $ getCommand "glPathParameteriNV"
74
false
true
1
11
16
44
20
24
null
null
erikd/yesod
yesod-core/Yesod/Core/Handler.hs
mit
sendRawResponse :: (MonadHandler m, MonadBaseControl IO m) => (Source IO S8.ByteString -> Sink S8.ByteString IO () -> m ()) -> m a sendRawResponse raw = control $ \runInIO -> liftIO $ throwIO $ HCWai $ flip W.responseRaw fallback $ \src sink -> void $ runInIO $ raw (src' src) (CL...
705
sendRawResponse :: (MonadHandler m, MonadBaseControl IO m) => (Source IO S8.ByteString -> Sink S8.ByteString IO () -> m ()) -> m a sendRawResponse raw = control $ \runInIO -> liftIO $ throwIO $ HCWai $ flip W.responseRaw fallback $ \src sink -> void $ runInIO $ raw (src' src) (CL...
705
sendRawResponse raw = control $ \runInIO -> liftIO $ throwIO $ HCWai $ flip W.responseRaw fallback $ \src sink -> void $ runInIO $ raw (src' src) (CL.mapM_ sink) where fallback = W.responseLBS H.status500 [("Content-Type", "text/plain")] "sendRawResponse: backend does not support raw responses" ...
542
false
true
2
11
199
220
107
113
null
null
anwb/fp-one-on-one
wadler-essence-02-position.hs
mit
findin x ((y,b):e) = if x==y then unitP b else findin x e
63
findin x ((y,b):e) = if x==y then unitP b else findin x e
63
findin x ((y,b):e) = if x==y then unitP b else findin x e
63
false
false
0
8
18
44
23
21
null
null
aaronc/Idris-dev
src/IRTS/CodegenJavaScript.hs
bsd-3-clause
translateConstant (Fl f) = JSNum (JSFloat f)
62
translateConstant (Fl f) = JSNum (JSFloat f)
62
translateConstant (Fl f) = JSNum (JSFloat f)
62
false
false
0
7
24
25
11
14
null
null
ekmett/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxLANGUAGE_SPANISH_PERU :: Int wxLANGUAGE_SPANISH_PERU = 191
60
wxLANGUAGE_SPANISH_PERU :: Int wxLANGUAGE_SPANISH_PERU = 191
60
wxLANGUAGE_SPANISH_PERU = 191
29
false
true
0
6
5
18
7
11
null
null
sopvop/cabal
cabal-install/Distribution/Solver/Types/ComponentDeps.hs
bsd-3-clause
componentNameToComponent (CN.CTestName s) = ComponentTest s
61
componentNameToComponent (CN.CTestName s) = ComponentTest s
61
componentNameToComponent (CN.CTestName s) = ComponentTest s
61
false
false
0
7
7
21
9
12
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/Range.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/Range.compareNode Mozilla Range.compareNode documentation> compareNode_ :: (MonadDOM m, IsNode node) => Range -> node -> m () compareNode_ self node = liftDOM (void (self ^. jsf "compareNode" [toJSVal node]))
266
compareNode_ :: (MonadDOM m, IsNode node) => Range -> node -> m () compareNode_ self node = liftDOM (void (self ^. jsf "compareNode" [toJSVal node]))
151
compareNode_ self node = liftDOM (void (self ^. jsf "compareNode" [toJSVal node]))
84
true
true
0
12
33
72
36
36
null
null
seagreen/station
test/Test/Integration/Schema.hs
mit
mkLink :: ST.Link ST.VersionHash -> Value mkLink a = object [ "foo" .= a ]
74
mkLink :: ST.Link ST.VersionHash -> Value mkLink a = object [ "foo" .= a ]
74
mkLink a = object [ "foo" .= a ]
32
false
true
0
7
14
35
17
18
null
null
DweebsUnited/CodeMonkey
haskell/terrainShow/src/GLMatrix.hs
bsd-3-clause
scalingMatrix _ = identityMatrix
32
scalingMatrix _ = identityMatrix
32
scalingMatrix _ = identityMatrix
32
false
false
0
5
3
9
4
5
null
null
jfdm/hUML
src/MsgDiagram/Transform/UML.hs
bsd-3-clause
msgDiaFmtUML = "uml"
20
msgDiaFmtUML = "uml"
20
msgDiaFmtUML = "uml"
20
false
false
0
4
2
6
3
3
null
null
ezyang/ghc
testsuite/tests/codeGen/should_run/CmmSwitchTest64.hs
bsd-3-clause
af 7# = 45#
11
af 7# = 45#
11
af 7# = 45#
11
false
false
0
5
3
9
4
5
null
null
nikki-and-the-robots/nikki
src/Utils.hs
lgpl-3.0
swapOrdering GT = LT
20
swapOrdering GT = LT
20
swapOrdering GT = LT
20
false
false
1
5
3
13
4
9
null
null
gianlucagiorgolo/glue-tp
TP.hs
mit
sanitizeVars :: BinTree DecoratedSequent -> BinTree DecoratedSequent sanitizeVars t = fmap sanitize t where sanitize (gamma,f) = (map deepSub gamma,deepSub f) deepSub (DF i lt f) = (DF i (zub lt) f) zub (V i) = V $ fromJust $ lookup i m zub c@(C _) = c zub (Lambda x t) = Lambda (zub x) (zub t) zub (App f g)...
619
sanitizeVars :: BinTree DecoratedSequent -> BinTree DecoratedSequent sanitizeVars t = fmap sanitize t where sanitize (gamma,f) = (map deepSub gamma,deepSub f) deepSub (DF i lt f) = (DF i (zub lt) f) zub (V i) = V $ fromJust $ lookup i m zub c@(C _) = c zub (Lambda x t) = Lambda (zub x) (zub t) zub (App f g)...
619
sanitizeVars t = fmap sanitize t where sanitize (gamma,f) = (map deepSub gamma,deepSub f) deepSub (DF i lt f) = (DF i (zub lt) f) zub (V i) = V $ fromJust $ lookup i m zub c@(C _) = c zub (Lambda x t) = Lambda (zub x) (zub t) zub (App f g) = App (zub f) (zub g) zub (Eta x) = Eta (zub x) zub (m :*: k) = ...
550
false
true
0
13
148
377
187
190
null
null
vipo/TicTacToe
app/TicTacToe.hs
bsd-3-clause
oppositePlayer Player2 = Player1
32
oppositePlayer Player2 = Player1
32
oppositePlayer Player2 = Player1
32
false
false
0
5
3
9
4
5
null
null
ben-schulz/Idris-dev
src/Idris/Delaborate.hs
bsd-3-clause
delabTy :: IState -> Name -> PTerm delabTy i n = case lookupTy n (tt_ctxt i) of (ty:_) -> case lookupCtxt n (idris_implicits i) of (imps:_) -> delabTy' i imps ty False False True _ -> delabTy' i [] ty False False True [] -> error "delabTy: got ...
338
delabTy :: IState -> Name -> PTerm delabTy i n = case lookupTy n (tt_ctxt i) of (ty:_) -> case lookupCtxt n (idris_implicits i) of (imps:_) -> delabTy' i imps ty False False True _ -> delabTy' i [] ty False False True [] -> error "delabTy: got ...
338
delabTy i n = case lookupTy n (tt_ctxt i) of (ty:_) -> case lookupCtxt n (idris_implicits i) of (imps:_) -> delabTy' i imps ty False False True _ -> delabTy' i [] ty False False True [] -> error "delabTy: got non-existing name"
303
false
true
0
12
125
125
61
64
null
null
faylang/fay-jquery
src/JQuery.hs
bsd-3-clause
setHeightWith :: (Double -> Double -> Fay Double) -> JQuery -> Fay JQuery setHeightWith = ffi "%2['height'](%1)"
112
setHeightWith :: (Double -> Double -> Fay Double) -> JQuery -> Fay JQuery setHeightWith = ffi "%2['height'](%1)"
112
setHeightWith = ffi "%2['height'](%1)"
38
false
true
0
10
16
45
20
25
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/elem_6.hs
mit
or :: (List MyBool) -> MyBool; or = foldr pePe MyFalse
56
or :: (List MyBool) -> MyBool or = foldr pePe MyFalse
55
or = foldr pePe MyFalse
23
false
true
0
7
12
27
14
13
null
null
ChadMcKinney/Haskollider
dist/build/autogen/Paths_Haskollider.hs
gpl-2.0
libdir = "/home/octopian/.cabal/lib/x86_64-linux-ghc-7.6.3/Haskollider-0.0.1"
81
libdir = "/home/octopian/.cabal/lib/x86_64-linux-ghc-7.6.3/Haskollider-0.0.1"
81
libdir = "/home/octopian/.cabal/lib/x86_64-linux-ghc-7.6.3/Haskollider-0.0.1"
81
false
false
0
4
6
6
3
3
null
null
geophf/1HaskellADay
exercises/HAD/Y2020/M11/D25/Solution.hs
mit
morseCodify :: MorseTable -> String -> [[Morse]] morseCodify mt = mapMaybe (morse mt) . map toUpper
99
morseCodify :: MorseTable -> String -> [[Morse]] morseCodify mt = mapMaybe (morse mt) . map toUpper
99
morseCodify mt = mapMaybe (morse mt) . map toUpper
50
false
true
0
8
15
44
22
22
null
null
mstksg/auto-frp
src/Control/Auto/FRP/Core.hs
mit
overWire :: ( Auto (ReaderT Time m) a0 b0 -> Auto (ReaderT Time m) a1 b1) -> Wire m a0 b0 -> Wire m a1 b1 overWire f (Wire a) = Wire (f a)
147
overWire :: ( Auto (ReaderT Time m) a0 b0 -> Auto (ReaderT Time m) a1 b1) -> Wire m a0 b0 -> Wire m a1 b1 overWire f (Wire a) = Wire (f a)
147
overWire f (Wire a) = Wire (f a)
32
false
true
0
10
42
90
43
47
null
null
denibertovic/haskell
kubernetes/lib/Kubernetes/OpenAPI/ModelLens.hs
bsd-3-clause
-- * V1StatefulSetList -- | 'v1StatefulSetListApiVersion' Lens v1StatefulSetListApiVersionL :: Lens_' V1StatefulSetList (Maybe Text) v1StatefulSetListApiVersionL f V1StatefulSetList{..} = (\v1StatefulSetListApiVersion -> V1StatefulSetList { v1StatefulSetListApiVersion, ..} ) <$> f v1StatefulSetListApiVersion
310
v1StatefulSetListApiVersionL :: Lens_' V1StatefulSetList (Maybe Text) v1StatefulSetListApiVersionL f V1StatefulSetList{..} = (\v1StatefulSetListApiVersion -> V1StatefulSetList { v1StatefulSetListApiVersion, ..} ) <$> f v1StatefulSetListApiVersion
246
v1StatefulSetListApiVersionL f V1StatefulSetList{..} = (\v1StatefulSetListApiVersion -> V1StatefulSetList { v1StatefulSetListApiVersion, ..} ) <$> f v1StatefulSetListApiVersion
176
true
true
0
8
27
58
31
27
null
null
mbezjak/grailsproject
src/Grails/Parser/Common.hs
mit
parseFile :: Parser a -> FilePath -> EIO a parseFile p = ErrorT . fmap left2str . parseFromFile p where left2str (Left err) = Left (show err) left2str (Right a) = Right a
181
parseFile :: Parser a -> FilePath -> EIO a parseFile p = ErrorT . fmap left2str . parseFromFile p where left2str (Left err) = Left (show err) left2str (Right a) = Right a
181
parseFile p = ErrorT . fmap left2str . parseFromFile p where left2str (Left err) = Left (show err) left2str (Right a) = Right a
138
false
true
0
7
43
85
39
46
null
null
hamishmack/haskell-gi
cmdline/haskell-gi.hs
lgpl-2.1
process :: Options -> [Text] -> IO () process options names = do let extraPaths = optSearchPaths options configs <- traverse TIO.readFile (optOverridesFiles options) parseOverridesFile (concatMap T.lines configs) >>= \case Left errorMsg -> do hPutStr stderr "Error when parsing the config file(s):\n" ...
699
process :: Options -> [Text] -> IO () process options names = do let extraPaths = optSearchPaths options configs <- traverse TIO.readFile (optOverridesFiles options) parseOverridesFile (concatMap T.lines configs) >>= \case Left errorMsg -> do hPutStr stderr "Error when parsing the config file(s):\n" ...
699
process options names = do let extraPaths = optSearchPaths options configs <- traverse TIO.readFile (optOverridesFiles options) parseOverridesFile (concatMap T.lines configs) >>= \case Left errorMsg -> do hPutStr stderr "Error when parsing the config file(s):\n" hPutStr stderr (T.unpack errorMsg) ...
661
false
true
0
16
164
217
99
118
null
null
melted/idris-java
src/IRTS/Java/JTypes.hs
bsd-3-clause
sourceTypes (LStrIndex) = [stringType, integerType]
51
sourceTypes (LStrIndex) = [stringType, integerType]
51
sourceTypes (LStrIndex) = [stringType, integerType]
51
false
false
0
5
4
19
10
9
null
null
jacekszymanski/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxHF_OPENFILES :: Int wxHF_OPENFILES = 32
41
wxHF_OPENFILES :: Int wxHF_OPENFILES = 32
41
wxHF_OPENFILES = 32
19
false
true
0
4
5
11
6
5
null
null
jwiegley/ghc-release
utils/haddock/src/Haddock/GhcUtils.hs
gpl-3.0
sigNameNoLoc (PatSynSig n _ _ _ _) = [unLoc n]
49
sigNameNoLoc (PatSynSig n _ _ _ _) = [unLoc n]
49
sigNameNoLoc (PatSynSig n _ _ _ _) = [unLoc n]
49
false
false
0
7
12
29
14
15
null
null
sherwoodwang/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxFONTFAMILY_DECORATIVE :: Int wxFONTFAMILY_DECORATIVE = wxDECORATIVE
69
wxFONTFAMILY_DECORATIVE :: Int wxFONTFAMILY_DECORATIVE = wxDECORATIVE
69
wxFONTFAMILY_DECORATIVE = wxDECORATIVE
38
false
true
0
6
5
18
7
11
null
null
nicklawls/haskellbook
src/Semver.hs
bsd-3-clause
kind2 = do [a,b,c,d,e,f,g,h,i,j] <- some (fmap fromIntegral $ charToNum =<< digit) return $ PhoneNumber (a * 100 + b * 10 + c) (d * 100 + e * 10 + f) (g * 1000 + h * 100 + i * 10 + j)
187
kind2 = do [a,b,c,d,e,f,g,h,i,j] <- some (fmap fromIntegral $ charToNum =<< digit) return $ PhoneNumber (a * 100 + b * 10 + c) (d * 100 + e * 10 + f) (g * 1000 + h * 100 + i * 10 + j)
187
kind2 = do [a,b,c,d,e,f,g,h,i,j] <- some (fmap fromIntegral $ charToNum =<< digit) return $ PhoneNumber (a * 100 + b * 10 + c) (d * 100 + e * 10 + f) (g * 1000 + h * 100 + i * 10 + j)
187
false
false
1
16
49
143
74
69
null
null
ian-ross/ggp
tools/download-games.hs
bsd-3-clause
repo :: String -> String repo n = "http://games.ggp.org/" ++ n ++ "/"
69
repo :: String -> String repo n = "http://games.ggp.org/" ++ n ++ "/"
69
repo n = "http://games.ggp.org/" ++ n ++ "/"
44
false
true
0
6
12
26
13
13
null
null
alpmestan/spw
src/SProxy/Run.hs
bsd-3-clause
sproxyWeb :: FilePath -> Pool Connection -> ScottyT SproxyError IO () sproxyWeb staticDirectory pool = do -- let's log the requests middleware =<< requestLogger middleware (staticPolicy (hasPrefix "static" >-> addBase staticDirectory)) -- error page for uncaught exceptions defaultHandler handleEx ...
1,989
sproxyWeb :: FilePath -> Pool Connection -> ScottyT SproxyError IO () sproxyWeb staticDirectory pool = do -- let's log the requests middleware =<< requestLogger middleware (staticPolicy (hasPrefix "static" >-> addBase staticDirectory)) -- error page for uncaught exceptions defaultHandler handleEx ...
1,989
sproxyWeb staticDirectory pool = do -- let's log the requests middleware =<< requestLogger middleware (staticPolicy (hasPrefix "static" >-> addBase staticDirectory)) -- error page for uncaught exceptions defaultHandler handleEx get "/" $ homepage pool post "/search" $ searchUserH p...
1,919
false
true
0
12
411
316
139
177
null
null
xmonad/xmonad-contrib
XMonad/Prompt/Ssh.hs
bsd-3-clause
sshComplList :: IO [String] sshComplList = uniqSort <$> liftA2 (++) sshComplListLocal sshComplListGlobal
104
sshComplList :: IO [String] sshComplList = uniqSort <$> liftA2 (++) sshComplListLocal sshComplListGlobal
104
sshComplList = uniqSort <$> liftA2 (++) sshComplListLocal sshComplListGlobal
76
false
true
0
6
11
30
16
14
null
null
sboosali/commands-core
sources/Commands/LHS.hs
mit
bimapLHS :: (GUI -> GUI) -> (Int -> Int) -> (LHS -> LHS) bimapLHS fGUI fInt = \case LHS gui -> LHS (fGUI gui) LHSInt int -> LHSInt (fInt int) (l `LHSApp` ls) -> bimapLHS fGUI fInt l `LHSApp` fmap (bimapLHS fGUI fInt) ls
240
bimapLHS :: (GUI -> GUI) -> (Int -> Int) -> (LHS -> LHS) bimapLHS fGUI fInt = \case LHS gui -> LHS (fGUI gui) LHSInt int -> LHSInt (fInt int) (l `LHSApp` ls) -> bimapLHS fGUI fInt l `LHSApp` fmap (bimapLHS fGUI fInt) ls
239
bimapLHS fGUI fInt = \case LHS gui -> LHS (fGUI gui) LHSInt int -> LHSInt (fInt int) (l `LHSApp` ls) -> bimapLHS fGUI fInt l `LHSApp` fmap (bimapLHS fGUI fInt) ls
182
false
true
0
12
64
130
64
66
null
null
isido/functional-morphology-for-koine-greek
lib/Dictionary.hs
gpl-3.0
entryWithInfoP :: Dict a => (a -> (Str,Str)) -> Paradigm -> Entry entryWithInfoP f = entryWithInfoIP f []
106
entryWithInfoP :: Dict a => (a -> (Str,Str)) -> Paradigm -> Entry entryWithInfoP f = entryWithInfoIP f []
106
entryWithInfoP f = entryWithInfoIP f []
39
false
true
0
10
18
54
26
28
null
null
plaprade/haskoin
haskoin-core/src/Network/Haskoin/Test/Script.hs
unlicense
arbitraryMSParam :: Gen (Int, Int) arbitraryMSParam = do m <- choose (1,16) n <- choose (m,16) return (m, n) -- | Arbitrary ScriptOutput (Can by any valid type)
173
arbitraryMSParam :: Gen (Int, Int) arbitraryMSParam = do m <- choose (1,16) n <- choose (m,16) return (m, n) -- | Arbitrary ScriptOutput (Can by any valid type)
173
arbitraryMSParam = do m <- choose (1,16) n <- choose (m,16) return (m, n) -- | Arbitrary ScriptOutput (Can by any valid type)
138
false
true
0
10
40
71
35
36
null
null
alexander-at-github/eta
compiler/ETA/BasicTypes/VarEnv.hs
bsd-3-clause
varEnvElts = eltsUFM
26
varEnvElts = eltsUFM
26
varEnvElts = eltsUFM
26
false
false
1
5
8
10
3
7
null
null
keizo042/quic-prototype
Network/QUIC/Error.hs
bsd-3-clause
err2int ConnectionCancelled = 0x46
53
err2int ConnectionCancelled = 0x46
53
err2int ConnectionCancelled = 0x46
53
false
false
0
5
22
9
4
5
null
null
kim/amazonka
amazonka-codedeploy/gen/Network/AWS/CodeDeploy/UpdateApplication.hs
mpl-2.0
-- | The new name that you want to change the application to. uaNewApplicationName :: Lens' UpdateApplication (Maybe Text) uaNewApplicationName = lens _uaNewApplicationName (\s a -> s { _uaNewApplicationName = a })
218
uaNewApplicationName :: Lens' UpdateApplication (Maybe Text) uaNewApplicationName = lens _uaNewApplicationName (\s a -> s { _uaNewApplicationName = a })
156
uaNewApplicationName = lens _uaNewApplicationName (\s a -> s { _uaNewApplicationName = a })
95
true
true
0
9
35
47
25
22
null
null