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
nomeata/ghc
compiler/main/DriverPhases.hs
bsd-3-clause
isSourceFilename f = isSourceSuffix (drop 1 $ takeExtension f)
78
isSourceFilename f = isSourceSuffix (drop 1 $ takeExtension f)
78
isSourceFilename f = isSourceSuffix (drop 1 $ takeExtension f)
78
false
false
0
8
24
25
11
14
null
null
yav/smtLib
src/SMTLib1/AST.hs
mit
funDef :: Ident -> [Sort] -> Sort -> Command funDef x as b = CmdExtraFuns [ FunDecl { funName = x , funArgs = as , funRes = b , funAnnots = [] } ]
302
funDef :: Ident -> [Sort] -> Sort -> Command funDef x as b = CmdExtraFuns [ FunDecl { funName = x , funArgs = as , funRes = b , funAnnots = [] } ]
302
funDef x as b = CmdExtraFuns [ FunDecl { funName = x , funArgs = as , funRes = b , funAnnots = [] } ]
257
false
true
0
9
190
72
39
33
null
null
snoyberg/ghc
compiler/simplCore/OccurAnal.hs
bsd-3-clause
-- Ignore type variables altogether -- (a) occurrences inside type lambdas only not marked as InsideLam -- (b) type variables not in environment occAnal env (Lam x body) | isTyVar x = case occAnal env body of { (body_usage, body') -> (body_usage, Lam x body') }
276
occAnal env (Lam x body) | isTyVar x = case occAnal env body of { (body_usage, body') -> (body_usage, Lam x body') }
126
occAnal env (Lam x body) | isTyVar x = case occAnal env body of { (body_usage, body') -> (body_usage, Lam x body') }
126
true
false
0
10
60
65
34
31
null
null
MoixaEnergy/blaze-react
src/Text/Blaze/Internal.hs
mit
preEscapedString :: String -- ^ String to insert. -> Markup ev -- ^ Resulting HTML fragment. preEscapedString = Content . PreEscaped . String
161
preEscapedString :: String -- ^ String to insert. -> Markup ev preEscapedString = Content . PreEscaped . String
131
preEscapedString = Content . PreEscaped . String
48
true
true
0
6
42
28
15
13
null
null
collective/ECSpooler
backends/haskell/haskell_libs/SetKreise.hs
gpl-2.0
showSet (x:xs) str = showChar '{' ( shows x ( showl xs str)) where showl [] str = showChar '}' str showl (x:xs) str = showChar ',' (shows x (showl xs str))
177
showSet (x:xs) str = showChar '{' ( shows x ( showl xs str)) where showl [] str = showChar '}' str showl (x:xs) str = showChar ',' (shows x (showl xs str))
177
showSet (x:xs) str = showChar '{' ( shows x ( showl xs str)) where showl [] str = showChar '}' str showl (x:xs) str = showChar ',' (shows x (showl xs str))
177
false
false
0
11
53
96
47
49
null
null
snoyberg/ghc
testsuite/tests/programs/galois_raytrace/Eval.hs
bsd-3-clause
-- 2 arguments. doPrimOp (Int_Int_Int fn) _ (VInt i2:VInt i1:stk) = return ((VInt (fn i1 i2)) : stk)
103
doPrimOp (Int_Int_Int fn) _ (VInt i2:VInt i1:stk) = return ((VInt (fn i1 i2)) : stk)
86
doPrimOp (Int_Int_Int fn) _ (VInt i2:VInt i1:stk) = return ((VInt (fn i1 i2)) : stk)
86
true
false
1
11
20
65
30
35
null
null
phischu/fragnix
tests/packages/scotty/Network.Wai.Handler.Warp.WithApplication.hs
bsd-3-clause
openFreePort :: IO (Port, Socket) openFreePort = do s <- socket AF_INET Stream defaultProtocol localhost <- inet_addr "127.0.0.1" bind s (SockAddrInet aNY_PORT localhost) listen s 1 port <- socketPort s return (fromIntegral port, s) -- | Like 'openFreePort' but closes the socket before exiting.
308
openFreePort :: IO (Port, Socket) openFreePort = do s <- socket AF_INET Stream defaultProtocol localhost <- inet_addr "127.0.0.1" bind s (SockAddrInet aNY_PORT localhost) listen s 1 port <- socketPort s return (fromIntegral port, s) -- | Like 'openFreePort' but closes the socket before exiting.
308
openFreePort = do s <- socket AF_INET Stream defaultProtocol localhost <- inet_addr "127.0.0.1" bind s (SockAddrInet aNY_PORT localhost) listen s 1 port <- socketPort s return (fromIntegral port, s) -- | Like 'openFreePort' but closes the socket before exiting.
274
false
true
0
9
56
94
43
51
null
null
prikhi/hkredmine
src/Web/HTTP/Redmine.hs
gpl-3.0
getVersionsIssues :: Version -> IssueFilter -> Redmine [Issue] getVersionsIssues v f = getProjectsIssues (versionProjectId v) $ f ++ [ ("fixed_version_id", BC.pack . show $ versionId v) ]
201
getVersionsIssues :: Version -> IssueFilter -> Redmine [Issue] getVersionsIssues v f = getProjectsIssues (versionProjectId v) $ f ++ [ ("fixed_version_id", BC.pack . show $ versionId v) ]
201
getVersionsIssues v f = getProjectsIssues (versionProjectId v) $ f ++ [ ("fixed_version_id", BC.pack . show $ versionId v) ]
138
false
true
0
11
40
74
36
38
null
null
pgj/bead
src/Bead/Controller/Pages.hs
bsd-3-clause
isLogin (View (Login _)) = True
31
isLogin (View (Login _)) = True
31
isLogin (View (Login _)) = True
31
false
false
0
9
5
21
10
11
null
null
alexeyzab/cards-with-comrades
backend/src/Helpers/Fixtures.hs
gpl-3.0
makeAdmin :: Key User -> DB (Entity Admin) makeAdmin = createAdmin
66
makeAdmin :: Key User -> DB (Entity Admin) makeAdmin = createAdmin
66
makeAdmin = createAdmin
23
false
true
0
9
10
33
14
19
null
null
sopvop/cabal
cabal-install/tests/IntegrationTests2.hs
bsd-3-clause
executePlan :: PlanDetails -> IO (ElaboratedInstallPlan, BuildOutcomes) executePlan (distDirLayout, elaboratedPlan, elaboratedShared, pkgsBuildStatus, buildSettings) = fmap ((,) elaboratedPlan) $ rebuildTargets verbosity distDirLayout elaboratedPlan elaboratedShared pkgsBuildStatus -- Avoid trying to use act-as-setup mode: buildSettings { buildSettingNumJobs = 1 }
540
executePlan :: PlanDetails -> IO (ElaboratedInstallPlan, BuildOutcomes) executePlan (distDirLayout, elaboratedPlan, elaboratedShared, pkgsBuildStatus, buildSettings) = fmap ((,) elaboratedPlan) $ rebuildTargets verbosity distDirLayout elaboratedPlan elaboratedShared pkgsBuildStatus -- Avoid trying to use act-as-setup mode: buildSettings { buildSettingNumJobs = 1 }
540
executePlan (distDirLayout, elaboratedPlan, elaboratedShared, pkgsBuildStatus, buildSettings) = fmap ((,) elaboratedPlan) $ rebuildTargets verbosity distDirLayout elaboratedPlan elaboratedShared pkgsBuildStatus -- Avoid trying to use act-as-setup mode: buildSettings { buildSettingNumJobs = 1 }
468
false
true
0
9
210
80
44
36
null
null
mfpi/OpenGLRaw
src/Graphics/Rendering/OpenGL/Raw/ARB/TessellationShader.hs
bsd-3-clause
gl_TESS_EVALUATION_SHADER :: GLenum gl_TESS_EVALUATION_SHADER = 0x8E87
70
gl_TESS_EVALUATION_SHADER :: GLenum gl_TESS_EVALUATION_SHADER = 0x8E87
70
gl_TESS_EVALUATION_SHADER = 0x8E87
34
false
true
0
4
5
11
6
5
null
null
ellej/dawn
src/Dawn/Internal.hs
bsd-3-clause
-- Data.Bool bool :: a -> a -> Bool -> a bool f g b = if b then f else g
73
bool :: a -> a -> Bool -> a bool f g b = if b then f else g
59
bool f g b = if b then f else g
31
true
true
0
7
22
45
22
23
null
null
spockwangs/scheme.in.haskell
list4.2.hs
unlicense
eval (List [Atom "quote", val]) = val
37
eval (List [Atom "quote", val]) = val
37
eval (List [Atom "quote", val]) = val
37
false
false
0
8
6
25
12
13
null
null
sonyandy/fd
src/Control/Monad/FD/Internal.hs
bsd-3-clause
prunedToVal :: Dom -> Dom -> Bool prunedToVal dom1 dom2 = case (Dom.toList dom1, Dom.toList dom2) of ([], []) -> False (_, []) -> True ([_], [_]) -> False (_, [_]) -> True _ -> False
192
prunedToVal :: Dom -> Dom -> Bool prunedToVal dom1 dom2 = case (Dom.toList dom1, Dom.toList dom2) of ([], []) -> False (_, []) -> True ([_], [_]) -> False (_, [_]) -> True _ -> False
192
prunedToVal dom1 dom2 = case (Dom.toList dom1, Dom.toList dom2) of ([], []) -> False (_, []) -> True ([_], [_]) -> False (_, [_]) -> True _ -> False
158
false
true
8
8
45
109
62
47
null
null
spacekitteh/smcghc
libraries/base/GHC/MVar.hs
bsd-3-clause
tryReadMVar :: MVar a -> IO (Maybe a) tryReadMVar (MVar m) = IO $ \ s -> case tryReadMVar# m s of (# s', 0#, _ #) -> (# s', Nothing #) -- MVar is empty (# s', _, a #) -> (# s', Just a #) -- MVar is full -- |Check whether a given 'MVar' is empty. -- -- Notice that the boolean value returned is just a snapshot of -- the state of the MVar. By the time you get to react on its result, -- the MVar may have been filled (or emptied) - so be extremely -- careful when using this operation. Use 'tryTakeMVar' instead if possible.
559
tryReadMVar :: MVar a -> IO (Maybe a) tryReadMVar (MVar m) = IO $ \ s -> case tryReadMVar# m s of (# s', 0#, _ #) -> (# s', Nothing #) -- MVar is empty (# s', _, a #) -> (# s', Just a #) -- MVar is full -- |Check whether a given 'MVar' is empty. -- -- Notice that the boolean value returned is just a snapshot of -- the state of the MVar. By the time you get to react on its result, -- the MVar may have been filled (or emptied) - so be extremely -- careful when using this operation. Use 'tryTakeMVar' instead if possible.
559
tryReadMVar (MVar m) = IO $ \ s -> case tryReadMVar# m s of (# s', 0#, _ #) -> (# s', Nothing #) -- MVar is empty (# s', _, a #) -> (# s', Just a #) -- MVar is full -- |Check whether a given 'MVar' is empty. -- -- Notice that the boolean value returned is just a snapshot of -- the state of the MVar. By the time you get to react on its result, -- the MVar may have been filled (or emptied) - so be extremely -- careful when using this operation. Use 'tryTakeMVar' instead if possible.
521
false
true
0
11
147
103
57
46
null
null
rueshyna/gogol
gogol-compute/gen/Network/Google/Compute/Types/Product.hs
mpl-2.0
-- | [Output Only] The unique identifier for the resource. This identifier is -- defined by the server. flId :: Lens' FirewallList (Maybe Text) flId = lens _flId (\ s a -> s{_flId = a})
185
flId :: Lens' FirewallList (Maybe Text) flId = lens _flId (\ s a -> s{_flId = a})
81
flId = lens _flId (\ s a -> s{_flId = a})
41
true
true
2
9
34
56
26
30
null
null
GaloisInc/halvm-ghc
compiler/utils/IOEnv.hs
bsd-3-clause
failM :: IOEnv env a failM = IOEnv (\ _ -> throwIO IOEnvFailure)
64
failM :: IOEnv env a failM = IOEnv (\ _ -> throwIO IOEnvFailure)
64
failM = IOEnv (\ _ -> throwIO IOEnvFailure)
43
false
true
0
8
12
30
15
15
null
null
bacchanalia/KitchenSink
KitchenSink/Qualified.hs
gpl-3.0
-- |'VG.unzip' vg_unzip = VG.unzip
34
vg_unzip = VG.unzip
19
vg_unzip = VG.unzip
19
true
false
0
5
4
9
5
4
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/Functions/F19.hs
bsd-3-clause
ptr_glNormal3xOES :: FunPtr (GLfixed -> GLfixed -> GLfixed -> IO ()) ptr_glNormal3xOES = unsafePerformIO $ getCommand "glNormal3xOES"
133
ptr_glNormal3xOES :: FunPtr (GLfixed -> GLfixed -> GLfixed -> IO ()) ptr_glNormal3xOES = unsafePerformIO $ getCommand "glNormal3xOES"
133
ptr_glNormal3xOES = unsafePerformIO $ getCommand "glNormal3xOES"
64
false
true
1
11
16
44
20
24
null
null
niteria/haddock
haddock-api/src/Haddock/Interface/Rename.hs
bsd-2-clause
renameFamilyResultSig :: LFamilyResultSig Name -> RnM (LFamilyResultSig DocName) renameFamilyResultSig (L loc NoSig) = return (L loc NoSig)
143
renameFamilyResultSig :: LFamilyResultSig Name -> RnM (LFamilyResultSig DocName) renameFamilyResultSig (L loc NoSig) = return (L loc NoSig)
143
renameFamilyResultSig (L loc NoSig) = return (L loc NoSig)
62
false
true
0
8
20
49
23
26
null
null
andreasbock/hql
testsuite/DayCountTest.hs
gpl-2.0
ex1_d1 = read "2008-02-28" :: Date
34
ex1_d1 = read "2008-02-28" :: Date
34
ex1_d1 = read "2008-02-28" :: Date
34
false
false
0
5
5
12
6
6
null
null
forsyde/forsyde-atom
src/ForSyDe/Atom/Prob.hs
bsd-3-clause
(%.) :: (a -> b) -> Dist a -> Dist b f %. (Dist g) = Dist (map f . g)
78
(%.) :: (a -> b) -> Dist a -> Dist b f %. (Dist g) = Dist (map f . g)
78
f %. (Dist g) = Dist (map f . g)
41
false
true
0
10
29
62
30
32
null
null
csabahruska/quake3
game-engine/GameEngine/Loader/ShaderParser.hs
bsd-3-clause
-- do not consumes line breaks newlineSymbol :: String -> Parser String newlineSymbol = L.symbol newlineConsumer
113
newlineSymbol :: String -> Parser String newlineSymbol = L.symbol newlineConsumer
81
newlineSymbol = L.symbol newlineConsumer
40
true
true
0
6
16
24
12
12
null
null
ruiting/opencog
opencog/nlp/lojban/HaskellLib/src/OpenCog/Lojban/WordList.hs
agpl-3.0
loadWordLists :: String -> IO (M.Map String StringSet,StringSet,Iso String String,Int) loadWordLists src = do let ser = src ++ ".dat" dfe <- doesFileExist ser case dfe of True -> do bs <- BS.readFile ser (seed :: Int) <- randomIO let (Right (selmahos,gismu,bai)) = decode bs baiIso = mkSynonymIso bai . stripSpace return (fmap fromList selmahos,fromList gismu,baiIso,seed) False -> do gismu <- runX (readDocument [] src >>> getChildren >>> getValsi >>> getGismu) cmavo <- runX (readDocument [] src >>> getChildren >>> getValsi >>> getCmavo) bai <- runX (readDocument [] src >>> getChildren >>> getValsi >>> getBAI) (seed :: Int) <- randomIO let selmahos = M.fromListWith (++) $ fmap f cmavo f (s,c) = (takeWhile p s,[c]) p e = e `notElem` "1234567890*" baiMerged = fmap handleBAIprefix bai baiIso = mkSynonymIso baiMerged . stripSpace res = (fmap fromList selmahos,fromList gismu,baiIso,seed) bs = encode (selmahos,gismu,baiMerged) BS.writeFile ser bs return res
1,317
loadWordLists :: String -> IO (M.Map String StringSet,StringSet,Iso String String,Int) loadWordLists src = do let ser = src ++ ".dat" dfe <- doesFileExist ser case dfe of True -> do bs <- BS.readFile ser (seed :: Int) <- randomIO let (Right (selmahos,gismu,bai)) = decode bs baiIso = mkSynonymIso bai . stripSpace return (fmap fromList selmahos,fromList gismu,baiIso,seed) False -> do gismu <- runX (readDocument [] src >>> getChildren >>> getValsi >>> getGismu) cmavo <- runX (readDocument [] src >>> getChildren >>> getValsi >>> getCmavo) bai <- runX (readDocument [] src >>> getChildren >>> getValsi >>> getBAI) (seed :: Int) <- randomIO let selmahos = M.fromListWith (++) $ fmap f cmavo f (s,c) = (takeWhile p s,[c]) p e = e `notElem` "1234567890*" baiMerged = fmap handleBAIprefix bai baiIso = mkSynonymIso baiMerged . stripSpace res = (fmap fromList selmahos,fromList gismu,baiIso,seed) bs = encode (selmahos,gismu,baiMerged) BS.writeFile ser bs return res
1,317
loadWordLists src = do let ser = src ++ ".dat" dfe <- doesFileExist ser case dfe of True -> do bs <- BS.readFile ser (seed :: Int) <- randomIO let (Right (selmahos,gismu,bai)) = decode bs baiIso = mkSynonymIso bai . stripSpace return (fmap fromList selmahos,fromList gismu,baiIso,seed) False -> do gismu <- runX (readDocument [] src >>> getChildren >>> getValsi >>> getGismu) cmavo <- runX (readDocument [] src >>> getChildren >>> getValsi >>> getCmavo) bai <- runX (readDocument [] src >>> getChildren >>> getValsi >>> getBAI) (seed :: Int) <- randomIO let selmahos = M.fromListWith (++) $ fmap f cmavo f (s,c) = (takeWhile p s,[c]) p e = e `notElem` "1234567890*" baiMerged = fmap handleBAIprefix bai baiIso = mkSynonymIso baiMerged . stripSpace res = (fmap fromList selmahos,fromList gismu,baiIso,seed) bs = encode (selmahos,gismu,baiMerged) BS.writeFile ser bs return res
1,230
false
true
0
21
501
442
217
225
null
null
Mathnerd314/lamdu
src/Lamdu/CodeEdit/ExpressionEdit/HoleEdit.hs
gpl-3.0
vboxMBiasedAlign :: Maybe Box.Cursor -> Box.Alignment -> [Widget f] -> Widget f vboxMBiasedAlign mChildIndex align = maybe Box.toWidget Box.toWidgetBiased mChildIndex . Box.makeAlign align Box.vertical
207
vboxMBiasedAlign :: Maybe Box.Cursor -> Box.Alignment -> [Widget f] -> Widget f vboxMBiasedAlign mChildIndex align = maybe Box.toWidget Box.toWidgetBiased mChildIndex . Box.makeAlign align Box.vertical
207
vboxMBiasedAlign mChildIndex align = maybe Box.toWidget Box.toWidgetBiased mChildIndex . Box.makeAlign align Box.vertical
125
false
true
0
10
29
76
33
43
null
null
mimi1vx/shellcheck
ShellCheck/Analytics.hs
gpl-3.0
prop_checkUnpassedInFunctions8 = verifyNotTree checkUnpassedInFunctions "foo() { echo $((1)); }; foo;"
102
prop_checkUnpassedInFunctions8 = verifyNotTree checkUnpassedInFunctions "foo() { echo $((1)); }; foo;"
102
prop_checkUnpassedInFunctions8 = verifyNotTree checkUnpassedInFunctions "foo() { echo $((1)); }; foo;"
102
false
false
0
5
9
11
5
6
null
null
ThermalSpan/haskell-euler
src/BinarySearchTree.hs
bsd-3-clause
mergeL xs [] = xs
17
mergeL xs [] = xs
17
mergeL xs [] = xs
17
false
false
1
5
4
18
6
12
null
null
frontrowed/stratosphere
library-gen/Stratosphere/Resources/RDSDBSubnetGroup.hs
mit
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbsubnet-group.html#cfn-rds-dbsubnetgroup-dbsubnetgroupdescription rdsdbsugDBSubnetGroupDescription :: Lens' RDSDBSubnetGroup (Val Text) rdsdbsugDBSubnetGroupDescription = lens _rDSDBSubnetGroupDBSubnetGroupDescription (\s a -> s { _rDSDBSubnetGroupDBSubnetGroupDescription = a })
364
rdsdbsugDBSubnetGroupDescription :: Lens' RDSDBSubnetGroup (Val Text) rdsdbsugDBSubnetGroupDescription = lens _rDSDBSubnetGroupDBSubnetGroupDescription (\s a -> s { _rDSDBSubnetGroupDBSubnetGroupDescription = a })
213
rdsdbsugDBSubnetGroupDescription = lens _rDSDBSubnetGroupDBSubnetGroupDescription (\s a -> s { _rDSDBSubnetGroupDBSubnetGroupDescription = a })
143
true
true
0
9
21
46
25
21
null
null
dmjio/aeson
src/Data/Aeson/Parser/Time.hs
bsd-3-clause
-- | Parse a time of the form @HH:MM[:SS[.SSS]]@. timeOfDay :: Parser Local.TimeOfDay timeOfDay = T.timeOfDay
109
timeOfDay :: Parser Local.TimeOfDay timeOfDay = T.timeOfDay
59
timeOfDay = T.timeOfDay
23
true
true
0
6
15
19
10
9
null
null
patperry/hs-gsl-random
lib/GSL/Random/Dist.hs
bsd-3-clause
exponentialQ :: Double -> Double -> Double exponentialQ = liftDouble2 gsl_cdf_exponential_Q
91
exponentialQ :: Double -> Double -> Double exponentialQ = liftDouble2 gsl_cdf_exponential_Q
91
exponentialQ = liftDouble2 gsl_cdf_exponential_Q
48
false
true
0
6
10
22
11
11
null
null
ivan-m/monad-levels
Control/Monad/Levels/State.hs
mit
-- | A variant of 'modify' in which the computation is strict in the -- new state. modify' :: (HasState s m) => (s -> s) -> m () modify' f = state (\ s -> let s' = f s in s' `seq` ((), s'))
191
modify' :: (HasState s m) => (s -> s) -> m () modify' f = state (\ s -> let s' = f s in s' `seq` ((), s'))
106
modify' f = state (\ s -> let s' = f s in s' `seq` ((), s'))
60
true
true
0
12
47
87
45
42
null
null
romanb/amazonka
amazonka-ec2/gen/Network/AWS/EC2/Types.hs
mpl-2.0
-- | 'IcmpTypeCode' constructor. -- -- The fields accessible through corresponding lenses are: -- -- * 'itcCode' @::@ 'Maybe' 'Int' -- -- * 'itcType' @::@ 'Maybe' 'Int' -- icmpTypeCode :: IcmpTypeCode icmpTypeCode = IcmpTypeCode { _itcType = Nothing , _itcCode = Nothing }
284
icmpTypeCode :: IcmpTypeCode icmpTypeCode = IcmpTypeCode { _itcType = Nothing , _itcCode = Nothing }
112
icmpTypeCode = IcmpTypeCode { _itcType = Nothing , _itcCode = Nothing }
83
true
true
0
7
54
43
25
18
null
null
seagull-kamome/Data-Diff
Data/Diff.hs
bsd-3-clause
pathToHunk xs ys (Right cmn:path) = Right xs' : pathToHunk xs'' (drop cmn ys) path where (xs', xs'') = splitAt cmn xs -- |
129
pathToHunk xs ys (Right cmn:path) = Right xs' : pathToHunk xs'' (drop cmn ys) path where (xs', xs'') = splitAt cmn xs -- |
129
pathToHunk xs ys (Right cmn:path) = Right xs' : pathToHunk xs'' (drop cmn ys) path where (xs', xs'') = splitAt cmn xs -- |
129
false
false
0
8
30
65
32
33
null
null
cblp/hindent
src/HIndent/Pretty.hs
bsd-3-clause
stmt x = case x of Generator _ p e -> depend (do pretty p write " <- ") (pretty e) Qualifier _ e -> pretty e LetStmt _ binds -> depend (write "let ") (pretty binds) RecStmt{} -> error "FIXME: No implementation for RecStmt." -- | Make the right hand side dependent if it fits on one line, -- otherwise send it to the next line.
474
stmt x = case x of Generator _ p e -> depend (do pretty p write " <- ") (pretty e) Qualifier _ e -> pretty e LetStmt _ binds -> depend (write "let ") (pretty binds) RecStmt{} -> error "FIXME: No implementation for RecStmt." -- | Make the right hand side dependent if it fits on one line, -- otherwise send it to the next line.
474
stmt x = case x of Generator _ p e -> depend (do pretty p write " <- ") (pretty e) Qualifier _ e -> pretty e LetStmt _ binds -> depend (write "let ") (pretty binds) RecStmt{} -> error "FIXME: No implementation for RecStmt." -- | Make the right hand side dependent if it fits on one line, -- otherwise send it to the next line.
474
false
false
0
12
214
109
50
59
null
null
Hodapp87/ivory
ivory-stdlib/src/Ivory/Stdlib/String.hs
bsd-3-clause
stringArray :: String -> [Uint8] stringArray = map (fromIntegral . ord)
71
stringArray :: String -> [Uint8] stringArray = map (fromIntegral . ord)
71
stringArray = map (fromIntegral . ord)
38
false
true
0
7
10
28
15
13
null
null
nevrenato/Hets_Fork
Comorphisms/HasCASL2IsabelleHOL.hs
gpl-2.0
-- arguments of datatype's typeconstructor transTypeArg :: TypeArg -> Typ transTypeArg ta = TFree (showIsaTypeT (getTypeVar ta) baseSign) []
140
transTypeArg :: TypeArg -> Typ transTypeArg ta = TFree (showIsaTypeT (getTypeVar ta) baseSign) []
97
transTypeArg ta = TFree (showIsaTypeT (getTypeVar ta) baseSign) []
66
true
true
0
9
18
45
21
24
null
null
erikd/yesod
yesod-core/Yesod/Core/Handler.hs
mit
lookup' :: Eq a => a -> [(a, b)] -> [b] lookup' a = map snd . filter (\x -> a == fst x)
87
lookup' :: Eq a => a -> [(a, b)] -> [b] lookup' a = map snd . filter (\x -> a == fst x)
87
lookup' a = map snd . filter (\x -> a == fst x)
47
false
true
0
10
23
66
34
32
null
null
supki/pakej
bin/Main.hs
bsd-3-clause
getUsefulDirectoryContents :: FilePath -> IO [FilePath] getUsefulDirectoryContents dir = (map (\file -> dir </> file) . filter (`notElem` [".", ".."])) <$> getDirectoryContents dir
182
getUsefulDirectoryContents :: FilePath -> IO [FilePath] getUsefulDirectoryContents dir = (map (\file -> dir </> file) . filter (`notElem` [".", ".."])) <$> getDirectoryContents dir
182
getUsefulDirectoryContents dir = (map (\file -> dir </> file) . filter (`notElem` [".", ".."])) <$> getDirectoryContents dir
126
false
true
0
11
24
68
37
31
null
null
hakaru-dev/hint-exts
unit-tests/run-unit-tests.hs
bsd-3-clause
test_search_path :: TestCase test_search_path = TestCase "search_path" files $ do liftIO setup fails (loadModules [mod_1]) @@? "mod_1 should not be in path (1)" fails (loadModules [mod_2]) @@? "mod_2 should not be in path (1)" -- set [searchPath := [dir_1]] succeeds (loadModules [mod_1]) @@? "mod_1 should be in path (2)" fails (loadModules [mod_2]) @@? "mod_2 should not be in path (2)" -- set [searchPath := [dir_2]] fails (loadModules [mod_1]) @@? "mod_1 should not be in path (3)" succeeds (loadModules [mod_2]) @@? "mod_2 should be in path (3)" -- set [searchPath := [dir_1,dir_2]] succeeds (loadModules [mod_1]) @@? "mod_1 should be in path (4)" succeeds (loadModules [mod_2]) @@? "mod_2 should be in path (4)" where dir_1 = "search_path_test_dir_1" mod_1 = "M1" file_1 = dir_1 </> mod_1 <.> "hs" dir_2 = "search_path_test_dir_2" mod_2 = "M2" file_2 = dir_2 </> mod_2 <.> "hs" files = [file_1, file_2, dir_1, dir_2] setup = do createDirectory dir_1 createDirectory dir_2 writeFile file_1 $ unlines ["module " ++ mod_1, "where", "x :: Int", "x = 42"] writeFile file_2 $ unlines ["module " ++ mod_2, "where", "y :: Bool", "y = False"]
1,714
test_search_path :: TestCase test_search_path = TestCase "search_path" files $ do liftIO setup fails (loadModules [mod_1]) @@? "mod_1 should not be in path (1)" fails (loadModules [mod_2]) @@? "mod_2 should not be in path (1)" -- set [searchPath := [dir_1]] succeeds (loadModules [mod_1]) @@? "mod_1 should be in path (2)" fails (loadModules [mod_2]) @@? "mod_2 should not be in path (2)" -- set [searchPath := [dir_2]] fails (loadModules [mod_1]) @@? "mod_1 should not be in path (3)" succeeds (loadModules [mod_2]) @@? "mod_2 should be in path (3)" -- set [searchPath := [dir_1,dir_2]] succeeds (loadModules [mod_1]) @@? "mod_1 should be in path (4)" succeeds (loadModules [mod_2]) @@? "mod_2 should be in path (4)" where dir_1 = "search_path_test_dir_1" mod_1 = "M1" file_1 = dir_1 </> mod_1 <.> "hs" dir_2 = "search_path_test_dir_2" mod_2 = "M2" file_2 = dir_2 </> mod_2 <.> "hs" files = [file_1, file_2, dir_1, dir_2] setup = do createDirectory dir_1 createDirectory dir_2 writeFile file_1 $ unlines ["module " ++ mod_1, "where", "x :: Int", "x = 42"] writeFile file_2 $ unlines ["module " ++ mod_2, "where", "y :: Bool", "y = False"]
1,714
test_search_path = TestCase "search_path" files $ do liftIO setup fails (loadModules [mod_1]) @@? "mod_1 should not be in path (1)" fails (loadModules [mod_2]) @@? "mod_2 should not be in path (1)" -- set [searchPath := [dir_1]] succeeds (loadModules [mod_1]) @@? "mod_1 should be in path (2)" fails (loadModules [mod_2]) @@? "mod_2 should not be in path (2)" -- set [searchPath := [dir_2]] fails (loadModules [mod_1]) @@? "mod_1 should not be in path (3)" succeeds (loadModules [mod_2]) @@? "mod_2 should be in path (3)" -- set [searchPath := [dir_1,dir_2]] succeeds (loadModules [mod_1]) @@? "mod_1 should be in path (4)" succeeds (loadModules [mod_2]) @@? "mod_2 should be in path (4)" where dir_1 = "search_path_test_dir_1" mod_1 = "M1" file_1 = dir_1 </> mod_1 <.> "hs" dir_2 = "search_path_test_dir_2" mod_2 = "M2" file_2 = dir_2 </> mod_2 <.> "hs" files = [file_1, file_2, dir_1, dir_2] setup = do createDirectory dir_1 createDirectory dir_2 writeFile file_1 $ unlines ["module " ++ mod_1, "where", "x :: Int", "x = 42"] writeFile file_2 $ unlines ["module " ++ mod_2, "where", "y :: Bool", "y = False"]
1,685
false
true
12
12
755
407
189
218
null
null
lenary/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
{-! deriving instance NFData SyntaxInfo deriving instance Binary SyntaxInfo !-} defaultSyntax = Syn [] [] [] [] [] id False False Nothing 0 initDSL 0
150
defaultSyntax = Syn [] [] [] [] [] id False False Nothing 0 initDSL 0
69
defaultSyntax = Syn [] [] [] [] [] id False False Nothing 0 initDSL 0
69
true
false
1
6
25
48
21
27
null
null
asr/pdfname
test/Test.hs
mit
succeedTests ∷ IO TestTree succeedTests = do files ← findByExtension [".pdf"] "succeed" return $ testGroup "succeed" $ map tastyTest files
142
succeedTests ∷ IO TestTree succeedTests = do files ← findByExtension [".pdf"] "succeed" return $ testGroup "succeed" $ map tastyTest files
142
succeedTests = do files ← findByExtension [".pdf"] "succeed" return $ testGroup "succeed" $ map tastyTest files
115
false
true
0
10
23
54
23
31
null
null
sonyandy/fd
benchmarks/sudoku.hs
bsd-3-clause
chunk :: Int -> [a] -> [[a]] chunk _ [] = []
44
chunk :: Int -> [a] -> [[a]] chunk _ [] = []
44
chunk _ [] = []
15
false
true
0
8
11
37
20
17
null
null
Fermat/Gottlob
Language/Misc.hs
bsd-3-clause
sFib 1 = 1
10
sFib 1 = 1
10
sFib 1 = 1
10
false
false
0
5
3
9
4
5
null
null
AccelerateHS/accelerate-c
Data/Array/Accelerate/C/Acc.hs
bsd-3-clause
-- Store a C definition. -- define :: C.Definition -> CG () define cdef = state $ \s -> ((), s {cdefs = cdef : cdefs s})
120
define :: C.Definition -> CG () define cdef = state $ \s -> ((), s {cdefs = cdef : cdefs s})
92
define cdef = state $ \s -> ((), s {cdefs = cdef : cdefs s})
60
true
true
0
11
26
59
32
27
null
null
osa1/MANTI
src/REPL.hs
bsd-3-clause
edit :: Manti () edit = do tempDir <- liftIO getTemporaryDirectory (path, handle) <- liftIO $ openTempFile tempDir "temp.manti" rls <- liftM reverse $ gets rules liftIO $ do hPutStr handle (pprint rls) hFlush handle liftIO $ do void $ system $ "vim " ++ path hSeek handle AbsoluteSeek 0 put defaultMantiState loadFileFromHandle handle liftIO $ do hClose handle removeFile path
444
edit :: Manti () edit = do tempDir <- liftIO getTemporaryDirectory (path, handle) <- liftIO $ openTempFile tempDir "temp.manti" rls <- liftM reverse $ gets rules liftIO $ do hPutStr handle (pprint rls) hFlush handle liftIO $ do void $ system $ "vim " ++ path hSeek handle AbsoluteSeek 0 put defaultMantiState loadFileFromHandle handle liftIO $ do hClose handle removeFile path
444
edit = do tempDir <- liftIO getTemporaryDirectory (path, handle) <- liftIO $ openTempFile tempDir "temp.manti" rls <- liftM reverse $ gets rules liftIO $ do hPutStr handle (pprint rls) hFlush handle liftIO $ do void $ system $ "vim " ++ path hSeek handle AbsoluteSeek 0 put defaultMantiState loadFileFromHandle handle liftIO $ do hClose handle removeFile path
427
false
true
0
12
128
155
66
89
null
null
echatav/error-continuations
src/Control/Monad/Trans/EitherCont.hs
unlicense
lowerMonadError :: MonadError l m => EitherContT r l m r -> m r lowerMonadError ec = runEitherContT ec throwError return
120
lowerMonadError :: MonadError l m => EitherContT r l m r -> m r lowerMonadError ec = runEitherContT ec throwError return
120
lowerMonadError ec = runEitherContT ec throwError return
56
false
true
0
8
20
50
22
28
null
null
brendanhay/gogol
gogol-binaryauthorization/gen/Network/Google/BinaryAuthorization/Types/Product.hs
mpl-2.0
-- | The condition that is associated with this binding. If the condition -- evaluates to \`true\`, then this binding applies to the current request. -- If the condition evaluates to \`false\`, then this binding does not -- apply to the current request. However, a different role binding might -- grant the same role to one or more of the members in this binding. To -- learn which resources support conditions in their IAM policies, see the -- [IAM -- documentation](https:\/\/cloud.google.com\/iam\/help\/conditions\/resource-policies). bCondition :: Lens' Binding (Maybe Expr) bCondition = lens _bCondition (\ s a -> s{_bCondition = a})
641
bCondition :: Lens' Binding (Maybe Expr) bCondition = lens _bCondition (\ s a -> s{_bCondition = a})
102
bCondition = lens _bCondition (\ s a -> s{_bCondition = a})
61
true
true
0
9
99
55
32
23
null
null
caasi/spj-book-student-1992
src/Parser.hs
bsd-3-clause
clex lineNum (c : cs) | isDigit c = (lineNum, num_tok) : clex lineNum rest_cs where num_tok = c : takeWhile isDigit cs rest_cs = dropWhile isDigit cs
203
clex lineNum (c : cs) | isDigit c = (lineNum, num_tok) : clex lineNum rest_cs where num_tok = c : takeWhile isDigit cs rest_cs = dropWhile isDigit cs
203
clex lineNum (c : cs) | isDigit c = (lineNum, num_tok) : clex lineNum rest_cs where num_tok = c : takeWhile isDigit cs rest_cs = dropWhile isDigit cs
203
false
false
0
8
81
68
33
35
null
null
input-output-hk/pos-haskell-prototype
wallet/src/Cardano/Wallet/WalletLayer/Kernel/Transactions.hs
mit
respond :: RequestParams -> [a] -> Maybe Int -> (APIResponse [a]) respond RequestParams{..} ls mbTotalEntries = let totalEntries = fromMaybe 0 mbTotalEntries PaginationParams{..} = rpPaginationParams perPage@(PerPage pp) = ppPerPage currentPage = ppPage totalPages = max 1 $ ceiling (fromIntegral totalEntries / (fromIntegral pp :: Double)) metadata = PaginationMetadata { metaTotalPages = totalPages , metaPage = currentPage , metaPerPage = perPage , metaTotalEntries = totalEntries } in APIResponse { wrData = ls , wrStatus = SuccessStatus , wrMeta = Metadata metadata }
843
respond :: RequestParams -> [a] -> Maybe Int -> (APIResponse [a]) respond RequestParams{..} ls mbTotalEntries = let totalEntries = fromMaybe 0 mbTotalEntries PaginationParams{..} = rpPaginationParams perPage@(PerPage pp) = ppPerPage currentPage = ppPage totalPages = max 1 $ ceiling (fromIntegral totalEntries / (fromIntegral pp :: Double)) metadata = PaginationMetadata { metaTotalPages = totalPages , metaPage = currentPage , metaPerPage = perPage , metaTotalEntries = totalEntries } in APIResponse { wrData = ls , wrStatus = SuccessStatus , wrMeta = Metadata metadata }
843
respond RequestParams{..} ls mbTotalEntries = let totalEntries = fromMaybe 0 mbTotalEntries PaginationParams{..} = rpPaginationParams perPage@(PerPage pp) = ppPerPage currentPage = ppPage totalPages = max 1 $ ceiling (fromIntegral totalEntries / (fromIntegral pp :: Double)) metadata = PaginationMetadata { metaTotalPages = totalPages , metaPage = currentPage , metaPerPage = perPage , metaTotalEntries = totalEntries } in APIResponse { wrData = ls , wrStatus = SuccessStatus , wrMeta = Metadata metadata }
777
false
true
0
14
351
187
101
86
null
null
mimi1vx/shellcheck
ShellCheck/Analytics.hs
gpl-3.0
prop_checkBashisms25= verify checkBashisms "cat < /dev/tcp/host/123"
68
prop_checkBashisms25= verify checkBashisms "cat < /dev/tcp/host/123"
68
prop_checkBashisms25= verify checkBashisms "cat < /dev/tcp/host/123"
68
false
false
1
5
5
16
5
11
null
null
gittywithexcitement/hindent
src/HIndent/Styles/Gibiansky.hs
bsd-3-clause
decls (FunBind _ matches) = flip onSeparateLines' matches $ \match -> do printComments Before match (writeName, pat, rhs, mbinds) <- case match of Match _ name pat rhs mbinds -> return (pretty name, pat, rhs, mbinds) InfixMatch _ left name pat rhs mbinds -> do pretty left space let writeName = case name of Symbol _ name' -> string name' Ident _ name' -> do write "`" string name' write "`" return (writeName, pat, rhs, mbinds) writeName space funBody pat rhs mbinds printComments After match
947
decls (FunBind _ matches) = flip onSeparateLines' matches $ \match -> do printComments Before match (writeName, pat, rhs, mbinds) <- case match of Match _ name pat rhs mbinds -> return (pretty name, pat, rhs, mbinds) InfixMatch _ left name pat rhs mbinds -> do pretty left space let writeName = case name of Symbol _ name' -> string name' Ident _ name' -> do write "`" string name' write "`" return (writeName, pat, rhs, mbinds) writeName space funBody pat rhs mbinds printComments After match
947
decls (FunBind _ matches) = flip onSeparateLines' matches $ \match -> do printComments Before match (writeName, pat, rhs, mbinds) <- case match of Match _ name pat rhs mbinds -> return (pretty name, pat, rhs, mbinds) InfixMatch _ left name pat rhs mbinds -> do pretty left space let writeName = case name of Symbol _ name' -> string name' Ident _ name' -> do write "`" string name' write "`" return (writeName, pat, rhs, mbinds) writeName space funBody pat rhs mbinds printComments After match
947
false
false
0
23
538
223
103
120
null
null
davdar/mpretty
OldPretty.hs
bsd-3-clause
tellText :: (FormatMonad m) => String -> Int -> m () tellText s slen = do tellCons $ TextTD s modify (+ slen)
113
tellText :: (FormatMonad m) => String -> Int -> m () tellText s slen = do tellCons $ TextTD s modify (+ slen)
113
tellText s slen = do tellCons $ TextTD s modify (+ slen)
60
false
true
0
9
26
58
28
30
null
null
mettekou/ghc
compiler/basicTypes/Id.hs
bsd-3-clause
modifyInlinePragma :: Id -> (InlinePragma -> InlinePragma) -> Id modifyInlinePragma id fn = modifyIdInfo (\info -> info `setInlinePragInfo` (fn (inlinePragInfo info))) id
170
modifyInlinePragma :: Id -> (InlinePragma -> InlinePragma) -> Id modifyInlinePragma id fn = modifyIdInfo (\info -> info `setInlinePragInfo` (fn (inlinePragInfo info))) id
170
modifyInlinePragma id fn = modifyIdInfo (\info -> info `setInlinePragInfo` (fn (inlinePragInfo info))) id
105
false
true
0
12
21
62
33
29
null
null
forked-upstream-packages-for-ghcjs/ghc
compiler/prelude/TysWiredIn.hs
bsd-3-clause
typeSymbolKindConName = mkWiredInTyConName UserSyntax gHC_TYPELITS (fsLit "Symbol") typeSymbolKindConNameKey typeSymbolKindCon
126
typeSymbolKindConName = mkWiredInTyConName UserSyntax gHC_TYPELITS (fsLit "Symbol") typeSymbolKindConNameKey typeSymbolKindCon
126
typeSymbolKindConName = mkWiredInTyConName UserSyntax gHC_TYPELITS (fsLit "Symbol") typeSymbolKindConNameKey typeSymbolKindCon
126
false
false
1
7
8
26
11
15
null
null
mbakke/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
esActionDetach :: String esActionDetach = "detach"
50
esActionDetach :: String esActionDetach = "detach"
50
esActionDetach = "detach"
25
false
true
0
4
5
11
6
5
null
null
sseefried/shady-gen
src/Shady/Language/GLSL.hs
agpl-3.0
p <-- e = Assign (B p e)
24
p <-- e = Assign (B p e)
24
p <-- e = Assign (B p e)
24
false
false
1
7
7
25
11
14
null
null
Oblosys/webviews
src/exec/WebForms/Main.hs
mit
mkMainView form = mkWebView $ \vid (MainView _) -> do { formView <- mkFormView form ; return $ MainView formView }
127
mkMainView form = mkWebView $ \vid (MainView _) -> do { formView <- mkFormView form ; return $ MainView formView }
127
mkMainView form = mkWebView $ \vid (MainView _) -> do { formView <- mkFormView form ; return $ MainView formView }
127
false
false
0
10
33
49
24
25
null
null
charlescrain/tholos
test/Server/Spec.hs
bsd-3-clause
-- import Tholos.Crypto main :: IO () main = hspec spec
66
main :: IO () main = hspec spec
31
main = hspec spec
17
true
true
0
7
21
26
11
15
null
null
Gabriel439/lens
src/Control/Lens/Plated.hs
bsd-3-clause
------------------------------------------------------------------------------- -- Generics ------------------------------------------------------------------------------- -- | Implement 'plate' operation for a type using its 'Generic' instance. gplate :: (Generic a, GPlated a (Rep a)) => Traversal' a a gplate f x = GHC.Generics.to <$> gplate' f (GHC.Generics.from x)
370
gplate :: (Generic a, GPlated a (Rep a)) => Traversal' a a gplate f x = GHC.Generics.to <$> gplate' f (GHC.Generics.from x)
123
gplate f x = GHC.Generics.to <$> gplate' f (GHC.Generics.from x)
64
true
true
0
9
38
73
38
35
null
null
anchor/vaultaire
lib/Vaultaire/Daemon.hs
bsd-3-clause
-- | Measure the timelapse for a daemon operation and -- send the result to the profiler -- profileTime :: TeleMsgType -> Origin -> Daemon r -> Daemon r profileTime t g act = do (_, prof) <- ask profTime prof t g act
228
profileTime :: TeleMsgType -> Origin -> Daemon r -> Daemon r profileTime t g act = do (_, prof) <- ask profTime prof t g act
134
profileTime t g act = do (_, prof) <- ask profTime prof t g act
73
true
true
0
9
55
68
33
35
null
null
tamaralipowski/courseography
hs/WebParsing/ParsingHelp.hs
gpl-3.0
makeEntry (Just []) _ = Nothing
31
makeEntry (Just []) _ = Nothing
31
makeEntry (Just []) _ = Nothing
31
false
false
0
7
5
21
9
12
null
null
tonyfloatersu/solution-haskell-craft-of-FP
Chapter14_2.hs
mit
-- An error-raising division function errDiv :: Integer -> Integer -> Maybe Integer errDiv n m | (m /= 0) = Just (n `div` m) | otherwise = Nothing
157
errDiv :: Integer -> Integer -> Maybe Integer errDiv n m | (m /= 0) = Just (n `div` m) | otherwise = Nothing
118
errDiv n m | (m /= 0) = Just (n `div` m) | otherwise = Nothing
72
true
true
0
9
39
69
33
36
null
null
uuhan/Idris-dev
src/Idris/REPL.hs
bsd-3-clause
runIdeModeCommand h id orig fn modes (IdeMode.TermNormalise bnd tm) = do ctxt <- getContext ist <- getIState let tm' = normaliseAll ctxt [] tm ptm = annotate (AnnTerm bnd tm') (pprintPTerm (ppOptionIst ist) bnd [] (idris_infixes ist) (delab ist tm')) msg = (IdeMode.SymbolAtom "ok", displaySpans . renderPretty 0.9 80 . fmap (fancifyAnnots ist True) $ ptm) runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
621
runIdeModeCommand h id orig fn modes (IdeMode.TermNormalise bnd tm) = do ctxt <- getContext ist <- getIState let tm' = normaliseAll ctxt [] tm ptm = annotate (AnnTerm bnd tm') (pprintPTerm (ppOptionIst ist) bnd [] (idris_infixes ist) (delab ist tm')) msg = (IdeMode.SymbolAtom "ok", displaySpans . renderPretty 0.9 80 . fmap (fancifyAnnots ist True) $ ptm) runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
621
runIdeModeCommand h id orig fn modes (IdeMode.TermNormalise bnd tm) = do ctxt <- getContext ist <- getIState let tm' = normaliseAll ctxt [] tm ptm = annotate (AnnTerm bnd tm') (pprintPTerm (ppOptionIst ist) bnd [] (idris_infixes ist) (delab ist tm')) msg = (IdeMode.SymbolAtom "ok", displaySpans . renderPretty 0.9 80 . fmap (fancifyAnnots ist True) $ ptm) runIO . hPutStrLn h $ IdeMode.convSExp "return" msg id
621
false
false
0
15
274
182
87
95
null
null
cauterize-tools/cauterize
src/Cauterize/Hash.hs
bsd-3-clause
hashToHex :: Hash -> T.Text hashToHex (Hash bs) = T.concat $ map showByte (B.unpack bs) where showByte b = case showHex b "" of [x,y] -> T.pack [x, y] [x] -> T.pack ['0', x] _ -> error "hashToHex: This should be impossible."
290
hashToHex :: Hash -> T.Text hashToHex (Hash bs) = T.concat $ map showByte (B.unpack bs) where showByte b = case showHex b "" of [x,y] -> T.pack [x, y] [x] -> T.pack ['0', x] _ -> error "hashToHex: This should be impossible."
290
hashToHex (Hash bs) = T.concat $ map showByte (B.unpack bs) where showByte b = case showHex b "" of [x,y] -> T.pack [x, y] [x] -> T.pack ['0', x] _ -> error "hashToHex: This should be impossible."
262
false
true
0
9
107
117
59
58
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/SVGAnimationElement.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement.targetElement Mozilla SVGAnimationElement.targetElement documentation> getTargetElement :: (MonadDOM m, IsSVGAnimationElement self) => self -> m SVGElement getTargetElement self = liftDOM (((toSVGAnimationElement self) ^. js "targetElement") >>= fromJSValUnchecked)
375
getTargetElement :: (MonadDOM m, IsSVGAnimationElement self) => self -> m SVGElement getTargetElement self = liftDOM (((toSVGAnimationElement self) ^. js "targetElement") >>= fromJSValUnchecked)
228
getTargetElement self = liftDOM (((toSVGAnimationElement self) ^. js "targetElement") >>= fromJSValUnchecked)
126
true
true
0
11
62
63
32
31
null
null
aparent/jcc
src/ParseJanus.hs
gpl-3.0
declarations :: Parser [(String,Integer)] declarations = many1 decl <* semi where decl = try ( (,) <$> (identifier <* reservedOp "=") <*> integer) <|> (,) <$> identifier <*> pure 0
237
declarations :: Parser [(String,Integer)] declarations = many1 decl <* semi where decl = try ( (,) <$> (identifier <* reservedOp "=") <*> integer) <|> (,) <$> identifier <*> pure 0
237
declarations = many1 decl <* semi where decl = try ( (,) <$> (identifier <* reservedOp "=") <*> integer) <|> (,) <$> identifier <*> pure 0
195
false
true
3
11
86
86
45
41
null
null
Arguggi/heed
heed-lib/src/Heed/Utils.hs
bsd-3-clause
-- | Default port for server (assumes TLS so 443) defPort :: Port defPort = 443
79
defPort :: Port defPort = 443
29
defPort = 443
13
true
true
0
4
15
12
7
5
null
null
hailstorm-hs/hailstorm
src/Hailstorm/InputSource.hs
apache-2.0
indexToPartition :: InputSource s => s -> Int -> IO (Partition) indexToPartition s i = allPartitions s >>= return . (!! i)
122
indexToPartition :: InputSource s => s -> Int -> IO (Partition) indexToPartition s i = allPartitions s >>= return . (!! i)
122
indexToPartition s i = allPartitions s >>= return . (!! i)
58
false
true
0
9
21
52
26
26
null
null
jimcrayne/lmdb-bindings
Database/LMDB.hs
agpl-3.0
_del_bounded :: (Binary k, Eq k) => MapName -> Maybe Int -> k -> Maybe MDB_val -> [MDB_DbFlag] -> DBParams -> MDB_txn -> IO (Either LMDB_Error ()) _del_bounded dbname mdbi k mbval flags DBParams { dbTbls = tbls } txn = do -- dbi <- performAtomicIO dbivar $ mdb_dbi_open txn (Just $ dbname) flags maybe (return $ Left $ dbError "unstore/remove" "TODO: implement non-static tables") (\dbi -> op txn (tbls ! dbi)) mdbi where op txn dbi = do _ <- withMDB_ (encodeStrict k) $ \key -> do mdb_del txn dbi key mbval return $ Right ()
619
_del_bounded :: (Binary k, Eq k) => MapName -> Maybe Int -> k -> Maybe MDB_val -> [MDB_DbFlag] -> DBParams -> MDB_txn -> IO (Either LMDB_Error ()) _del_bounded dbname mdbi k mbval flags DBParams { dbTbls = tbls } txn = do -- dbi <- performAtomicIO dbivar $ mdb_dbi_open txn (Just $ dbname) flags maybe (return $ Left $ dbError "unstore/remove" "TODO: implement non-static tables") (\dbi -> op txn (tbls ! dbi)) mdbi where op txn dbi = do _ <- withMDB_ (encodeStrict k) $ \key -> do mdb_del txn dbi key mbval return $ Right ()
619
_del_bounded dbname mdbi k mbval flags DBParams { dbTbls = tbls } txn = do -- dbi <- performAtomicIO dbivar $ mdb_dbi_open txn (Just $ dbname) flags maybe (return $ Left $ dbError "unstore/remove" "TODO: implement non-static tables") (\dbi -> op txn (tbls ! dbi)) mdbi where op txn dbi = do _ <- withMDB_ (encodeStrict k) $ \key -> do mdb_del txn dbi key mbval return $ Right ()
456
false
true
0
16
190
208
102
106
null
null
ssaavedra/liquidhaskell
src/Language/Haskell/Liquid/Bare/SymSort.hs
bsd-3-clause
addSymSortRef' _ _ _ p (RProp s (RVar v r)) | isDummy v = RProp xs t where t = ofRSort (pvType p) `strengthen` r xs = spliceArgs "addSymSortRef 1" s p
169
addSymSortRef' _ _ _ p (RProp s (RVar v r)) | isDummy v = RProp xs t where t = ofRSort (pvType p) `strengthen` r xs = spliceArgs "addSymSortRef 1" s p
169
addSymSortRef' _ _ _ p (RProp s (RVar v r)) | isDummy v = RProp xs t where t = ofRSort (pvType p) `strengthen` r xs = spliceArgs "addSymSortRef 1" s p
169
false
false
3
9
50
88
38
50
null
null
juodaspaulius/clafer
src/Language/Clafer/Optimizer/Optimizer.hs
mit
findUnusedAbs :: [IClafer] -> [String] -> [IClafer] findUnusedAbs maybeUsed [] = maybeUsed
90
findUnusedAbs :: [IClafer] -> [String] -> [IClafer] findUnusedAbs maybeUsed [] = maybeUsed
90
findUnusedAbs maybeUsed [] = maybeUsed
38
false
true
0
7
11
35
19
16
null
null
lennart/tidal-midi
Sound/Tidal/Tetra.hs
gpl-3.0
dsub1 = doublePattern 45
24
dsub1 = doublePattern 45
24
dsub1 = doublePattern 45
24
false
false
0
5
3
9
4
5
null
null
nikita-volkov/focus
library/Focus.hs
mit
adjust :: Monad m => (a -> a) -> Focus a m () adjust fn = unitCases Leave (Set . fn)
84
adjust :: Monad m => (a -> a) -> Focus a m () adjust fn = unitCases Leave (Set . fn)
84
adjust fn = unitCases Leave (Set . fn)
38
false
true
0
8
20
53
26
27
null
null
brianshourd/adventOfCode2016
src/Day11.hs
mit
expandSearchZone :: (Location a) => SearchZone a -> SearchZone a expandSearchZone (SearchZone v c) = SearchZone v' c' where v' = Set.union v c' c' = (Set.fold (Set.union . adjacentLocations) Set.empty c) \\ v -- |We will represent a floor number with an 'Int', but we use a type alias for -- clarity
310
expandSearchZone :: (Location a) => SearchZone a -> SearchZone a expandSearchZone (SearchZone v c) = SearchZone v' c' where v' = Set.union v c' c' = (Set.fold (Set.union . adjacentLocations) Set.empty c) \\ v -- |We will represent a floor number with an 'Int', but we use a type alias for -- clarity
310
expandSearchZone (SearchZone v c) = SearchZone v' c' where v' = Set.union v c' c' = (Set.fold (Set.union . adjacentLocations) Set.empty c) \\ v -- |We will represent a floor number with an 'Int', but we use a type alias for -- clarity
245
false
true
2
10
63
107
49
58
null
null
Martoon-00/toy-compiler
test/Test/Execution.hs
bsd-3-clause
singleOutput :: InOut -> Value singleOutput ([] , [x]) = x
58
singleOutput :: InOut -> Value singleOutput ([] , [x]) = x
58
singleOutput ([] , [x]) = x
27
false
true
0
7
10
29
16
13
null
null
LeventErkok/hArduino
System/Hardware/Arduino/Parts/LCD.hs
bsd-3-clause
maskBit LCD_CURSORON = 1
35
maskBit LCD_CURSORON = 1
35
maskBit LCD_CURSORON = 1
35
false
false
0
5
14
9
4
5
null
null
rfranek/duckling
Duckling/Numeral/GA/Rules.hs
bsd-3-clause
ruleNumeralsPrefixWithNegativeOrMinus :: Rule ruleNumeralsPrefixWithNegativeOrMinus = Rule { name = "numbers prefix with -, negative or minus" , pattern = [ regex "-|m(\x00ed|i)neas(\\sa)?\\s?" , dimension Numeral ] , prod = \tokens -> case tokens of (_: Token Numeral (NumeralData {TNumeral.value = v}): _) -> double $ v * (-1) _ -> Nothing }
389
ruleNumeralsPrefixWithNegativeOrMinus :: Rule ruleNumeralsPrefixWithNegativeOrMinus = Rule { name = "numbers prefix with -, negative or minus" , pattern = [ regex "-|m(\x00ed|i)neas(\\sa)?\\s?" , dimension Numeral ] , prod = \tokens -> case tokens of (_: Token Numeral (NumeralData {TNumeral.value = v}): _) -> double $ v * (-1) _ -> Nothing }
389
ruleNumeralsPrefixWithNegativeOrMinus = Rule { name = "numbers prefix with -, negative or minus" , pattern = [ regex "-|m(\x00ed|i)neas(\\sa)?\\s?" , dimension Numeral ] , prod = \tokens -> case tokens of (_: Token Numeral (NumeralData {TNumeral.value = v}): _) -> double $ v * (-1) _ -> Nothing }
343
false
true
0
19
97
111
60
51
null
null
jdubrule/bond
compiler/src/Language/Bond/Codegen/Util.hs
mit
-- | Separates elements of a list with new lines, ending with a new line. -- Starts new lines at the specified indentation level. newlineSepEnd = sepEndBy . newLine
164
newlineSepEnd = sepEndBy . newLine
34
newlineSepEnd = sepEndBy . newLine
34
true
false
0
5
28
12
7
5
null
null
kumasento/accelerate
Data/Array/Accelerate/Trafo/Base.hs
bsd-3-clause
prjExp (SuccIdx ix) (PushExp env _) = prjExp ix env
51
prjExp (SuccIdx ix) (PushExp env _) = prjExp ix env
51
prjExp (SuccIdx ix) (PushExp env _) = prjExp ix env
51
false
false
1
7
9
32
14
18
null
null
hanshoglund/sox2
src/Sound/Sox2.hs
bsd-3-clause
-- compand attack1,decay1{,attack2,decay2} compand :: Audio -> Sox Audio compand = error "No compand"
101
compand :: Audio -> Sox Audio compand = error "No compand"
58
compand = error "No compand"
28
true
true
0
6
13
22
11
11
null
null
mmarx/milkman
src/Milkman/Context.hs
gpl-3.0
-- |Check whether a given object/attribute pair is incident in the -- upward arrow relation isUpArrow :: Context -> Object -> Attribute -> Bool isUpArrow c@(Context _ _ i) g m | incident i g m = False | otherwise = let [na, _] = listOfShape $ R.extent i in all (incident i g) [ n | n <- Attribute <$> [0..(na - 1)] , let m' = S.fromList $ extent c m n' = S.fromList $ extent c n in m' `S.isProperSubsetOf` n' ]
628
isUpArrow :: Context -> Object -> Attribute -> Bool isUpArrow c@(Context _ _ i) g m | incident i g m = False | otherwise = let [na, _] = listOfShape $ R.extent i in all (incident i g) [ n | n <- Attribute <$> [0..(na - 1)] , let m' = S.fromList $ extent c m n' = S.fromList $ extent c n in m' `S.isProperSubsetOf` n' ]
536
isUpArrow c@(Context _ _ i) g m | incident i g m = False | otherwise = let [na, _] = listOfShape $ R.extent i in all (incident i g) [ n | n <- Attribute <$> [0..(na - 1)] , let m' = S.fromList $ extent c m n' = S.fromList $ extent c n in m' `S.isProperSubsetOf` n' ]
484
true
true
1
16
302
192
94
98
null
null
sol/pandoc
src/Text/Pandoc/Readers/HTML.hs
gpl-2.0
-- | Convert HTML-formatted string to 'Pandoc' document. readHtml :: ParserState -- ^ Parser state -> String -- ^ String to parse (assumes @'\n'@ line endings) -> Pandoc readHtml st inp = Pandoc meta blocks where blocks = readWith parseBody st rest tags = canonicalizeTags $ parseTagsOptions parseOptions{ optTagPosition = True } inp hasHeader = any (~== TagOpen "head" []) tags (meta, rest) = if hasHeader then parseHeader tags else (Meta [] [] [], tags)
583
readHtml :: ParserState -- ^ Parser state -> String -- ^ String to parse (assumes @'\n'@ line endings) -> Pandoc readHtml st inp = Pandoc meta blocks where blocks = readWith parseBody st rest tags = canonicalizeTags $ parseTagsOptions parseOptions{ optTagPosition = True } inp hasHeader = any (~== TagOpen "head" []) tags (meta, rest) = if hasHeader then parseHeader tags else (Meta [] [] [], tags)
526
readHtml st inp = Pandoc meta blocks where blocks = readWith parseBody st rest tags = canonicalizeTags $ parseTagsOptions parseOptions{ optTagPosition = True } inp hasHeader = any (~== TagOpen "head" []) tags (meta, rest) = if hasHeader then parseHeader tags else (Meta [] [] [], tags)
386
true
true
3
10
202
133
70
63
null
null
ekmett/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxDF_PRIVATE :: Int wxDF_PRIVATE = 20
41
wxDF_PRIVATE :: Int wxDF_PRIVATE = 20
41
wxDF_PRIVATE = 20
21
false
true
0
6
9
18
7
11
null
null
ku-fpg/sunroof-compiler
Language/Sunroof/JavaScript.hs
bsd-3-clause
showRhs (DotRhs e1 e2) = showIdx e1 e2
38
showRhs (DotRhs e1 e2) = showIdx e1 e2
38
showRhs (DotRhs e1 e2) = showIdx e1 e2
38
false
false
0
7
7
22
10
12
null
null
prowdsponsor/mangopay
yesod-mangopay/app/Handler/User.hs
bsd-3-clause
userPost :: HtmlForm a -> (a -> AccessToken -> MangoPayT Handler a) -> Handler (Maybe a, Widget, Enctype) userPost form store = do ((result, _), _) <- runFormPost $ form Nothing muser<-case result of FormSuccess u -> do catchMP (do user<-runYesodMPTToken $ store u setMessageI MsgUserDone return (Just user) ) (\e->do setMessage $ toHtml $ show e return (Just u) ) _ -> do setMessageI MsgErrorData return Nothing (widget, enctype) <- generateFormPost $ form muser return (muser,widget,enctype) -- | form for natural user
796
userPost :: HtmlForm a -> (a -> AccessToken -> MangoPayT Handler a) -> Handler (Maybe a, Widget, Enctype) userPost form store = do ((result, _), _) <- runFormPost $ form Nothing muser<-case result of FormSuccess u -> do catchMP (do user<-runYesodMPTToken $ store u setMessageI MsgUserDone return (Just user) ) (\e->do setMessage $ toHtml $ show e return (Just u) ) _ -> do setMessageI MsgErrorData return Nothing (widget, enctype) <- generateFormPost $ form muser return (muser,widget,enctype) -- | form for natural user
796
userPost form store = do ((result, _), _) <- runFormPost $ form Nothing muser<-case result of FormSuccess u -> do catchMP (do user<-runYesodMPTToken $ store u setMessageI MsgUserDone return (Just user) ) (\e->do setMessage $ toHtml $ show e return (Just u) ) _ -> do setMessageI MsgErrorData return Nothing (widget, enctype) <- generateFormPost $ form muser return (muser,widget,enctype) -- | form for natural user
656
false
true
0
20
358
235
112
123
null
null
curiousily/haskell-99problems
1.hs
mit
myLast :: [a] -> a myLast [x] = x
33
myLast :: [a] -> a myLast [x] = x
33
myLast [x] = x
14
false
true
0
6
8
24
13
11
null
null
monostable/haskell-kicad-data
tests/SExpr.hs
mit
-- so we don't create infinitely large s-expressions we keep reducing the size -- as we go deeper and return atoms when the size is 0 arbitrarySExp :: Int -> Gen SExpr arbitrarySExp n | n > 0 = oneof [ arbitraryAtom , liftM (List pos) $ resize (n `div` 2) arbitrary ]
291
arbitrarySExp :: Int -> Gen SExpr arbitrarySExp n | n > 0 = oneof [ arbitraryAtom , liftM (List pos) $ resize (n `div` 2) arbitrary ]
157
arbitrarySExp n | n > 0 = oneof [ arbitraryAtom , liftM (List pos) $ resize (n `div` 2) arbitrary ]
123
true
true
0
11
76
69
35
34
null
null
Athas/banko
barc/Barc/Unroller.hs
bsd-2-clause
setContext :: Context -> UnrollM () setContext ctx = UnrollM $ const $ Right (ctx, ())
86
setContext :: Context -> UnrollM () setContext ctx = UnrollM $ const $ Right (ctx, ())
86
setContext ctx = UnrollM $ const $ Right (ctx, ())
50
false
true
0
8
15
42
21
21
null
null
rgrempel/frelm.org
vendor/elm-format/parser/src/Parse/Helpers.hs
mit
commentedKeyword :: String -> IParser a -> IParser (KeywordCommented a) commentedKeyword word parser = do pre <- try (whitespace <* reserved word) post <- whitespace value <- parser return $ KeywordCommented pre post value -- ODD COMBINATORS
261
commentedKeyword :: String -> IParser a -> IParser (KeywordCommented a) commentedKeyword word parser = do pre <- try (whitespace <* reserved word) post <- whitespace value <- parser return $ KeywordCommented pre post value -- ODD COMBINATORS
261
commentedKeyword word parser = do pre <- try (whitespace <* reserved word) post <- whitespace value <- parser return $ KeywordCommented pre post value -- ODD COMBINATORS
189
false
true
0
11
56
85
39
46
null
null
toothbrush/dotfs
System/DotFS/Core/ExpressionEvaluator.hs
bsd-3-clause
evalBi s (BiOp And e1 e2) = doBool s (&&) e1 e2
49
evalBi s (BiOp And e1 e2) = doBool s (&&) e1 e2
49
evalBi s (BiOp And e1 e2) = doBool s (&&) e1 e2
49
false
false
0
7
13
32
16
16
null
null
GaloisInc/halvm-ghc
compiler/hsSyn/HsUtils.hs
bsd-3-clause
mkMatchGroup :: Origin -> [LMatch RdrName (Located (body RdrName))] -> MatchGroup RdrName (Located (body RdrName)) mkMatchGroup origin matches = MG { mg_alts = mkLocatedList matches , mg_arg_tys = [] , mg_res_ty = placeHolderType , mg_origin = origin }
364
mkMatchGroup :: Origin -> [LMatch RdrName (Located (body RdrName))] -> MatchGroup RdrName (Located (body RdrName)) mkMatchGroup origin matches = MG { mg_alts = mkLocatedList matches , mg_arg_tys = [] , mg_res_ty = placeHolderType , mg_origin = origin }
364
mkMatchGroup origin matches = MG { mg_alts = mkLocatedList matches , mg_arg_tys = [] , mg_res_ty = placeHolderType , mg_origin = origin }
236
false
true
0
13
149
97
50
47
null
null
tel/serv
serv-wai/src/Serv/Wai/Error.hs
bsd-3-clause
ignorable _ = False
19
ignorable _ = False
19
ignorable _ = False
19
false
false
0
5
3
9
4
5
null
null
eightyeight/hscuid
lib/Web/Cuid/Internal/Formatting.hs
bsd-3-clause
numberToDigit :: Integral a => a -> Char numberToDigit n_ | n < 0 = error "numberToDigit: input is negative" | n < 10 = toEnum (n + 48) | n < 36 = toEnum (n + 97 - 10) | otherwise = error "numberToDigit: input is too large" where n = fromIntegral n_ -- | Returns the textual representation of the given integer in the given base. -- -- > formatInBase 10 999 = "999" -- > formatInBase 16 999 = "3e7" -- > formatInBase 36 999 = "rr"
461
numberToDigit :: Integral a => a -> Char numberToDigit n_ | n < 0 = error "numberToDigit: input is negative" | n < 10 = toEnum (n + 48) | n < 36 = toEnum (n + 97 - 10) | otherwise = error "numberToDigit: input is too large" where n = fromIntegral n_ -- | Returns the textual representation of the given integer in the given base. -- -- > formatInBase 10 999 = "999" -- > formatInBase 16 999 = "3e7" -- > formatInBase 36 999 = "rr"
461
numberToDigit n_ | n < 0 = error "numberToDigit: input is negative" | n < 10 = toEnum (n + 48) | n < 36 = toEnum (n + 97 - 10) | otherwise = error "numberToDigit: input is too large" where n = fromIntegral n_ -- | Returns the textual representation of the given integer in the given base. -- -- > formatInBase 10 999 = "999" -- > formatInBase 16 999 = "3e7" -- > formatInBase 36 999 = "rr"
420
false
true
1
8
120
131
60
71
null
null
athanclark/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
getPArity _ = 0
15
getPArity _ = 0
15
getPArity _ = 0
15
false
false
0
4
3
10
4
6
null
null
bgamari/haskell-platform
hptool/src/ReleaseFiles.hs
bsd-3-clause
distIsFor :: OS -> DistType -> Bool distIsFor os (DistBinary os' _) = os == os'
79
distIsFor :: OS -> DistType -> Bool distIsFor os (DistBinary os' _) = os == os'
79
distIsFor os (DistBinary os' _) = os == os'
43
false
true
1
10
15
45
20
25
null
null
brendanhay/gogol
gogol-poly/gen/Network/Google/Poly/Types/Product.hs
mpl-2.0
-- | Creates a value of 'ListUserAssetsResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'luarNextPageToken' -- -- * 'luarTotalSize' -- -- * 'luarUserAssets' listUserAssetsResponse :: ListUserAssetsResponse listUserAssetsResponse = ListUserAssetsResponse' { _luarNextPageToken = Nothing , _luarTotalSize = Nothing , _luarUserAssets = Nothing }
458
listUserAssetsResponse :: ListUserAssetsResponse listUserAssetsResponse = ListUserAssetsResponse' { _luarNextPageToken = Nothing , _luarTotalSize = Nothing , _luarUserAssets = Nothing }
207
listUserAssetsResponse = ListUserAssetsResponse' { _luarNextPageToken = Nothing , _luarTotalSize = Nothing , _luarUserAssets = Nothing }
154
true
true
0
7
82
50
30
20
null
null
uuhan/Idris-dev
src/Idris/Reflection.hs
bsd-3-clause
intToReflectedNat :: Int -> Raw intToReflectedNat i = if i <= 0 then Var (natN "Z") else RApp (Var (natN "S")) (intToReflectedNat (i - 1)) where natN :: String -> Name natN n = sNS (sUN n) ["Nat", "Prelude"]
265
intToReflectedNat :: Int -> Raw intToReflectedNat i = if i <= 0 then Var (natN "Z") else RApp (Var (natN "S")) (intToReflectedNat (i - 1)) where natN :: String -> Name natN n = sNS (sUN n) ["Nat", "Prelude"]
265
intToReflectedNat i = if i <= 0 then Var (natN "Z") else RApp (Var (natN "S")) (intToReflectedNat (i - 1)) where natN :: String -> Name natN n = sNS (sUN n) ["Nat", "Prelude"]
233
false
true
2
10
96
106
54
52
null
null
raichoo/Idris-dev
src/Idris/Reflection.hs
bsd-3-clause
reflectErr (UnifyScope n n' t ctxt) = raw_apply (Var $ reflErrName "UnifyScope") [ reflectName n , reflectName n' , reflect t , reflectCtxt ctxt ]
208
reflectErr (UnifyScope n n' t ctxt) = raw_apply (Var $ reflErrName "UnifyScope") [ reflectName n , reflectName n' , reflect t , reflectCtxt ctxt ]
208
reflectErr (UnifyScope n n' t ctxt) = raw_apply (Var $ reflErrName "UnifyScope") [ reflectName n , reflectName n' , reflect t , reflectCtxt ctxt ]
208
false
false
0
8
86
60
29
31
null
null
tjakway/ghcjvm
compiler/prelude/PrelNames.hs
bsd-3-clause
functorClassKey = mkPreludeClassUnique 10
49
functorClassKey = mkPreludeClassUnique 10
49
functorClassKey = mkPreludeClassUnique 10
49
false
false
0
5
11
9
4
5
null
null