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
vikraman/ghc
compiler/prelude/THNames.hs
bsd-3-clause
-- data PatSynArgs = ... prefixPatSynName, infixPatSynName, recordPatSynName :: Name prefixPatSynName = libFun (fsLit "prefixPatSyn") prefixPatSynIdKey
151
prefixPatSynName, infixPatSynName, recordPatSynName :: Name prefixPatSynName = libFun (fsLit "prefixPatSyn") prefixPatSynIdKey
126
prefixPatSynName = libFun (fsLit "prefixPatSyn") prefixPatSynIdKey
66
true
true
0
7
15
27
16
11
null
null
coolhacks/scripts-hacks
examples/shellcheck-master/ShellCheck/Analytics.hs
mit
checkBackticks _ (T_Backticked id list) | not (null list) = style id 2006 "Use $(..) instead of legacy `..`."
113
checkBackticks _ (T_Backticked id list) | not (null list) = style id 2006 "Use $(..) instead of legacy `..`."
113
checkBackticks _ (T_Backticked id list) | not (null list) = style id 2006 "Use $(..) instead of legacy `..`."
113
false
false
0
10
22
41
18
23
null
null
Tener/HaNS
src/Hans/Layer.hs
bsd-3-clause
loopLayer :: i -> IO msg -> (msg -> Layer i ()) -> IO () loopLayer i0 msg k = loop (LayerState 0 i0) where loop i = do a <- msg now <- getPOSIXTime let res = runLayer (i {lsNow = now }) (k a) X.evaluate res `X.catch` \ se -> print (se :: X.SomeException) >> return res case res of Error ...
399
loopLayer :: i -> IO msg -> (msg -> Layer i ()) -> IO () loopLayer i0 msg k = loop (LayerState 0 i0) where loop i = do a <- msg now <- getPOSIXTime let res = runLayer (i {lsNow = now }) (k a) X.evaluate res `X.catch` \ se -> print (se :: X.SomeException) >> return res case res of Error ...
399
loopLayer i0 msg k = loop (LayerState 0 i0) where loop i = do a <- msg now <- getPOSIXTime let res = runLayer (i {lsNow = now }) (k a) X.evaluate res `X.catch` \ se -> print (se :: X.SomeException) >> return res case res of Error m -> runAction m >> loop i Result i' () m -> ...
342
false
true
0
13
124
209
99
110
null
null
DougBurke/swish
src/Swish/GraphMem.hs
lgpl-2.1
-- | Return Boolean graph equality graphEq :: (Label lb) => GraphMem lb -> GraphMem lb -> Bool graphEq g1 g2 = fst ( matchGraphMem g1 g2 )
140
graphEq :: (Label lb) => GraphMem lb -> GraphMem lb -> Bool graphEq g1 g2 = fst ( matchGraphMem g1 g2 )
103
graphEq g1 g2 = fst ( matchGraphMem g1 g2 )
43
true
true
0
8
29
51
25
26
null
null
Jonplussed/purescript-webgl-raw
generator/IDL/Cleaner.hs
gpl-2.0
-- public functions declsToIdl :: [Decl] -> IDL declsToIdl = cleanup . foldr partition emptyIdl
96
declsToIdl :: [Decl] -> IDL declsToIdl = cleanup . foldr partition emptyIdl
75
declsToIdl = cleanup . foldr partition emptyIdl
47
true
true
1
7
15
35
16
19
null
null
ezyang/ghc
compiler/basicTypes/Name.hs
bsd-3-clause
nameIsHomePackage :: Module -> Name -> Bool -- True if the Name is defined in module of this package nameIsHomePackage this_mod = \nm -> case n_sort nm of External nm_mod -> moduleUnitId nm_mod == this_pkg WiredIn nm_mod _ _ -> moduleUnitId nm_mod == this_pkg Internal -> T...
400
nameIsHomePackage :: Module -> Name -> Bool nameIsHomePackage this_mod = \nm -> case n_sort nm of External nm_mod -> moduleUnitId nm_mod == this_pkg WiredIn nm_mod _ _ -> moduleUnitId nm_mod == this_pkg Internal -> True System -> False where this_pkg ...
343
nameIsHomePackage this_mod = \nm -> case n_sort nm of External nm_mod -> moduleUnitId nm_mod == this_pkg WiredIn nm_mod _ _ -> moduleUnitId nm_mod == this_pkg Internal -> True System -> False where this_pkg = moduleUnitId this_mod
299
true
true
1
10
123
102
46
56
null
null
thsutton/fca
src/Main.hs
bsd-3-clause
-- | Parser 'Options' from command-line arguments. optionsP :: Parser Options optionsP = Options <$> pure False <*> pure True <*> formatP <*> outputP <*> inputP where verboseP = switch $ long "verbose" <> short 'v' ...
1,338
optionsP :: Parser Options optionsP = Options <$> pure False <*> pure True <*> formatP <*> outputP <*> inputP where verboseP = switch $ long "verbose" <> short 'v' <> help "Produce verbose output." headerP ...
1,287
optionsP = Options <$> pure False <*> pure True <*> formatP <*> outputP <*> inputP where verboseP = switch $ long "verbose" <> short 'v' <> help "Produce verbose output." headerP = switch $ long ...
1,260
true
true
55
7
496
365
152
213
null
null
duplode/threepenny-gui
src/Graphics/UI/Threepenny/SVG/Attributes.hs
bsd-3-clause
zoomAndPan = strAttr "zoomAndPan"
52
zoomAndPan = strAttr "zoomAndPan"
52
zoomAndPan = strAttr "zoomAndPan"
52
false
false
1
5
22
12
4
8
null
null
antalsz/hs-to-coq
examples/ghc/gen-files/Lexer.hs
mit
alex_action_108 = tok_primint negative 3 4 octal
49
alex_action_108 = tok_primint negative 3 4 octal
49
alex_action_108 = tok_primint negative 3 4 octal
49
false
false
0
5
7
15
7
8
null
null
wskplho/stack
src/Stack/Build/Execute.hs
bsd-3-clause
toActions :: M env m => (m () -> IO ()) -> ExecuteEnv -> (Maybe Task, Maybe Task) -- build and final -> [Action] toActions runInBase ee (mbuild, mfinal) = abuild ++ afinal where abuild = case mbuild of Nothing -> [] Just task@Task {..} ->...
1,941
toActions :: M env m => (m () -> IO ()) -> ExecuteEnv -> (Maybe Task, Maybe Task) -- build and final -> [Action] toActions runInBase ee (mbuild, mfinal) = abuild ++ afinal where abuild = case mbuild of Nothing -> [] Just task@Task {..} ->...
1,941
toActions runInBase ee (mbuild, mfinal) = abuild ++ afinal where abuild = case mbuild of Nothing -> [] Just task@Task {..} -> [ Action { actionId = ActionId taskProvides ATBuild , actionDeps = (Set....
1,788
false
true
8
18
807
457
244
213
null
null
kubkon/gnuplot
src/Graphics/Gnuplot/Private/FrameOption.hs
bsd-3-clause
styleHistogram :: T; styleHistogram = Cons "style histogram" ""
65
styleHistogram :: T styleHistogram = Cons "style histogram" ""
64
styleHistogram = Cons "style histogram" ""
43
false
true
0
5
10
17
9
8
null
null
facebookincubator/duckling
Duckling/Time/PT/Rules.hs
bsd-3-clause
ruleMonthDOM :: Rule ruleMonthDOM = Rule { name = "<named-month> <day-of-month>" , pattern = [ Predicate isAMonth , Predicate isDOMInteger ] , prod = \case (Token Time td:token:_) -> Token Time <$> intersectDOM td token _ -> Nothing }
266
ruleMonthDOM :: Rule ruleMonthDOM = Rule { name = "<named-month> <day-of-month>" , pattern = [ Predicate isAMonth , Predicate isDOMInteger ] , prod = \case (Token Time td:token:_) -> Token Time <$> intersectDOM td token _ -> Nothing }
266
ruleMonthDOM = Rule { name = "<named-month> <day-of-month>" , pattern = [ Predicate isAMonth , Predicate isDOMInteger ] , prod = \case (Token Time td:token:_) -> Token Time <$> intersectDOM td token _ -> Nothing }
245
false
true
0
13
70
95
47
48
null
null
Deewiant/haschoo
Haschoo/Evaluator/Standard/IO.hs
bsd-3-clause
scmCloseInputPort, scmCloseOutputPort :: [ScmValue] -> IO (ErrOr ScmValue) scmCloseInputPort [ScmInput h] = hClose h >> return (Right ScmVoid)
144
scmCloseInputPort, scmCloseOutputPort :: [ScmValue] -> IO (ErrOr ScmValue) scmCloseInputPort [ScmInput h] = hClose h >> return (Right ScmVoid)
144
scmCloseInputPort [ScmInput h] = hClose h >> return (Right ScmVoid)
69
false
true
0
8
19
54
27
27
null
null
silkapp/xmlhtml
src/Text/XmlHtml/Cursor.hs
bsd-3-clause
------------------------------------------------------------------------------ -- | Removes the current 'Node', and moves the Cursor to its left sibling, -- if any. removeGoLeft :: Cursor -> Maybe Cursor removeGoLeft (Cursor _ (l:ls) rs ps) = Just (Cursor l ls rs ps)
267
removeGoLeft :: Cursor -> Maybe Cursor removeGoLeft (Cursor _ (l:ls) rs ps) = Just (Cursor l ls rs ps)
102
removeGoLeft (Cursor _ (l:ls) rs ps) = Just (Cursor l ls rs ps)
63
true
true
0
9
36
58
30
28
null
null
NickAger/LearningHaskell
Programming in Haskell - Graham Hutton/Chapter11 - unbeatable tic-tac-toe.hsproj/Main.hs
mit
moves :: Grid -> Player -> [Grid] moves g p | won g = [] | full g = [] | otherwise = concat [move g i p | i <- [0..((size^2)-1)]]
135
moves :: Grid -> Player -> [Grid] moves g p | won g = [] | full g = [] | otherwise = concat [move g i p | i <- [0..((size^2)-1)]]
135
moves g p | won g = [] | full g = [] | otherwise = concat [move g i p | i <- [0..((size^2)-1)]]
101
false
true
2
13
37
97
49
48
null
null
potatosalad/cis194
src/Cis194/Week5/StackVM.hs
bsd-3-clause
execute _ (Mul:_) = errUnderflow "Mul"
64
execute _ (Mul:_) = errUnderflow "Mul"
64
execute _ (Mul:_) = errUnderflow "Mul"
64
false
false
0
7
31
21
10
11
null
null
gcampax/ghc
compiler/main/DriverPipeline.hs
bsd-3-clause
mkExtraObjToLinkIntoBinary :: DynFlags -> IO FilePath mkExtraObjToLinkIntoBinary dflags = do when (gopt Opt_NoHsMain dflags && haveRtsOptsFlags dflags) $ do log_action dflags dflags SevInfo noSrcSpan defaultUserStyle (text "Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main." $$ ...
1,501
mkExtraObjToLinkIntoBinary :: DynFlags -> IO FilePath mkExtraObjToLinkIntoBinary dflags = do when (gopt Opt_NoHsMain dflags && haveRtsOptsFlags dflags) $ do log_action dflags dflags SevInfo noSrcSpan defaultUserStyle (text "Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main." $$ ...
1,501
mkExtraObjToLinkIntoBinary dflags = do when (gopt Opt_NoHsMain dflags && haveRtsOptsFlags dflags) $ do log_action dflags dflags SevInfo noSrcSpan defaultUserStyle (text "Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main." $$ text " Call hs_init_ghc() from your main() f...
1,447
false
true
2
14
368
264
127
137
null
null
olsner/sedition
Sed.hs
mit
maybeGetLine :: Int -> StateT (SedState p) IO (Maybe S) maybeGetLine i = do maybeLine <- liftIO . fileMaybeGetLine =<< fromJust <$> getFile i case maybeLine of Just l | 0 <- i -> incrementLineNumber >> return (Just l) _ -> return maybeLine
257
maybeGetLine :: Int -> StateT (SedState p) IO (Maybe S) maybeGetLine i = do maybeLine <- liftIO . fileMaybeGetLine =<< fromJust <$> getFile i case maybeLine of Just l | 0 <- i -> incrementLineNumber >> return (Just l) _ -> return maybeLine
257
maybeGetLine i = do maybeLine <- liftIO . fileMaybeGetLine =<< fromJust <$> getFile i case maybeLine of Just l | 0 <- i -> incrementLineNumber >> return (Just l) _ -> return maybeLine
201
false
true
0
14
60
107
49
58
null
null
sdiehl/ghc
compiler/nativeGen/BlockLayout.hs
bsd-3-clause
noDups :: [BlockChain] -> Bool noDups chains = let chainBlocks = concatMap chainToBlocks chains :: [BlockId] (_blocks, dups) = removeDups compare chainBlocks in if null dups then True else pprTrace "Duplicates:" (ppr (map toList dups) $$ text "chains" <+> ppr chains ) False
298
noDups :: [BlockChain] -> Bool noDups chains = let chainBlocks = concatMap chainToBlocks chains :: [BlockId] (_blocks, dups) = removeDups compare chainBlocks in if null dups then True else pprTrace "Duplicates:" (ppr (map toList dups) $$ text "chains" <+> ppr chains ) False
298
noDups chains = let chainBlocks = concatMap chainToBlocks chains :: [BlockId] (_blocks, dups) = removeDups compare chainBlocks in if null dups then True else pprTrace "Duplicates:" (ppr (map toList dups) $$ text "chains" <+> ppr chains ) False
267
false
true
0
11
66
112
54
58
null
null
danchoi/transparent
Templating.hs
mit
templateBindBase :: String -> Value -> IOSArrow XmlTree XmlTree templateBindBase tag context = ( --txt $< (getAttrValue tag >>> arr (templateEvalToString context) ) replaceChildren ( (getAttrValue tag >>> arr (templateEvalToString context) ) >>> xread ) >>> removeAttr tag ) `when` has...
332
templateBindBase :: String -> Value -> IOSArrow XmlTree XmlTree templateBindBase tag context = ( --txt $< (getAttrValue tag >>> arr (templateEvalToString context) ) replaceChildren ( (getAttrValue tag >>> arr (templateEvalToString context) ) >>> xread ) >>> removeAttr tag ) `when` has...
332
templateBindBase tag context = ( --txt $< (getAttrValue tag >>> arr (templateEvalToString context) ) replaceChildren ( (getAttrValue tag >>> arr (templateEvalToString context) ) >>> xread ) >>> removeAttr tag ) `when` hasTmplAttr tag
268
false
true
0
14
76
86
41
45
null
null
KevinCotrone/numeric-tools
Numeric/Tools/Integration.hs
bsd-3-clause
-- Refinement of guess using trapeziod algorithms nextTrapezoid :: Double -- Lower integration limit -> Double -- Upper integration limit -> Int -- Number of additional points -> (Double -> Double) -- Function to integrate ->...
898
nextTrapezoid :: Double -- Lower integration limit -> Double -- Upper integration limit -> Int -- Number of additional points -> (Double -> Double) -- Function to integrate -> Double -- Approximation ...
848
nextTrapezoid !a !b !n f !q = 0.5 * (q + sep * s) where sep = (b - a) / fromIntegral n -- Separation between points x0 = a + 0.5 * sep -- Starting point s = U.sum $ U.map f $ U.iterateN n (+sep) x0 -- Sum of all points -- Check for convergence. Convergenc...
517
true
true
11
15
316
169
86
83
null
null
rootzlevel/yasam
Main.hs
bsd-3-clause
getProperty :: Client -> ObjectPath -> InterfaceName -> String -> Script Variant getProperty conn path iface property = call' conn path propIFace "Get" [toVariant iface, toVariant property] >>= fromVariantM
210
getProperty :: Client -> ObjectPath -> InterfaceName -> String -> Script Variant getProperty conn path iface property = call' conn path propIFace "Get" [toVariant iface, toVariant property] >>= fromVariantM
210
getProperty conn path iface property = call' conn path propIFace "Get" [toVariant iface, toVariant property] >>= fromVariantM
129
false
true
2
9
32
69
33
36
null
null
khibino/haskell-hdbc-tool.201303
src/Database/HDBC/Persistable.hs
bsd-3-clause
persistableRecord :: ([SqlValue] -> a) -> (a -> [SqlValue]) -> Int -> PersistableRecord a persistableRecord = PersistableRecord
127
persistableRecord :: ([SqlValue] -> a) -> (a -> [SqlValue]) -> Int -> PersistableRecord a persistableRecord = PersistableRecord
127
persistableRecord = PersistableRecord
37
false
true
0
9
16
46
25
21
null
null
bravit/Idris-dev
src/Idris/Core/Evaluate.hs
bsd-3-clause
isFnName :: Name -> Context -> Bool isFnName n ctxt = case lookupDefExact n ctxt of Just (Function _ _) -> True Just (Operator _ _ _) -> True Just (CaseOp _ _ _ _ _ _) -> True _ -> False
261
isFnName :: Name -> Context -> Bool isFnName n ctxt = case lookupDefExact n ctxt of Just (Function _ _) -> True Just (Operator _ _ _) -> True Just (CaseOp _ _ _ _ _ _) -> True _ -> False
261
isFnName n ctxt = case lookupDefExact n ctxt of Just (Function _ _) -> True Just (Operator _ _ _) -> True Just (CaseOp _ _ _ _ _ _) -> True _ -> False
225
false
true
5
6
116
100
49
51
null
null
hguenther/smtlib2
extras/composite/Language/SMTLib2/Composite/Domains.hs
gpl-3.0
addInf _ NegInfinity _ = Just NegInfinity
41
addInf _ NegInfinity _ = Just NegInfinity
41
addInf _ NegInfinity _ = Just NegInfinity
41
false
false
1
5
6
17
7
10
null
null
egaburov/funstuff
Haskell/autodiff/diff1.hs
apache-2.0
deriv (Const c) = Const 0
25
deriv (Const c) = Const 0
25
deriv (Const c) = Const 0
25
false
false
0
7
5
18
8
10
null
null
rayl/gedcom-tools
Main.hs
bsd-3-clause
rORDI = chk "ORDI"
18
rORDI = chk "ORDI"
18
rORDI = chk "ORDI"
18
false
false
1
5
3
13
4
9
null
null
ku-fpg/html-kure
Text/HTML/KURE.hs
bsd-3-clause
extractR' :: (Monad m, Injection a Node) => Rewrite c m Node -> Rewrite c m a extractR' = extractR
98
extractR' :: (Monad m, Injection a Node) => Rewrite c m Node -> Rewrite c m a extractR' = extractR
98
extractR' = extractR
20
false
true
0
8
19
52
24
28
null
null
GaloisInc/mistral
src/Mistral/TypeCheck/AST.hs
bsd-3-clause
closedCon :: Type -- :: Index closedCon = TCon (mkGlobal ["Prelude"] "Closed")
79
closedCon :: Type closedCon = TCon (mkGlobal ["Prelude"] "Closed")
67
closedCon = TCon (mkGlobal ["Prelude"] "Closed")
49
true
true
0
8
12
26
14
12
null
null
fmapfmapfmap/amazonka
amazonka-iam/test/Test/AWS/Gen/IAM.hs
mpl-2.0
testCreateSAMLProvider :: CreateSAMLProvider -> TestTree testCreateSAMLProvider = req "CreateSAMLProvider" "fixture/CreateSAMLProvider.yaml"
148
testCreateSAMLProvider :: CreateSAMLProvider -> TestTree testCreateSAMLProvider = req "CreateSAMLProvider" "fixture/CreateSAMLProvider.yaml"
148
testCreateSAMLProvider = req "CreateSAMLProvider" "fixture/CreateSAMLProvider.yaml"
91
false
true
0
5
17
20
10
10
null
null
lancelotsix/hs-tls
core/Network/TLS/State.hs
bsd-3-clause
finishHandshakeTypeMaterial HandshakeType_HelloRequest = False
65
finishHandshakeTypeMaterial HandshakeType_HelloRequest = False
65
finishHandshakeTypeMaterial HandshakeType_HelloRequest = False
65
false
false
0
5
6
9
4
5
null
null
mpickering/ghc-exactprint
src/Language/Haskell/GHC/ExactPrint/Utils.hs
bsd-3-clause
-- | Makes a comment which originates from a specific keyword. mkKWComment :: GHC.AnnKeywordId -> GHC.SrcSpan -> Comment mkKWComment kw ss = Comment (keywordToString $ G kw) ss (Just kw)
186
mkKWComment :: GHC.AnnKeywordId -> GHC.SrcSpan -> Comment mkKWComment kw ss = Comment (keywordToString $ G kw) ss (Just kw)
123
mkKWComment kw ss = Comment (keywordToString $ G kw) ss (Just kw)
65
true
true
0
8
29
52
26
26
null
null
tjunier/mlgsc
src/mlgsc_xval.hs
mit
main :: IO () main = do params <- execParser parseOptionsInfo let smallProb = optSmallProb params let scaleFactor = optScaleFactor params treeString <- readFile $ treeFName params fastAInput <- LTIO.readFile $ alnFName params let (fastaRecs, tree) = fastaRecsAndTree ...
834
main :: IO () main = do params <- execParser parseOptionsInfo let smallProb = optSmallProb params let scaleFactor = optScaleFactor params treeString <- readFile $ treeFName params fastAInput <- LTIO.readFile $ alnFName params let (fastaRecs, tree) = fastaRecsAndTree ...
834
main = do params <- execParser parseOptionsInfo let smallProb = optSmallProb params let scaleFactor = optScaleFactor params treeString <- readFile $ treeFName params fastAInput <- LTIO.readFile $ alnFName params let (fastaRecs, tree) = fastaRecsAndTree (optIDtree...
820
false
true
0
15
247
254
113
141
null
null
kmels/hledger
hledger-lib/Hledger/Data/Dates.hs
gpl-3.0
earliest d Nothing = d
22
earliest d Nothing = d
22
earliest d Nothing = d
22
false
false
0
4
4
13
5
8
null
null
brendanhay/gogol
gogol-spanner/gen/Network/Google/Resource/Spanner/Projects/Instances/Backups/Operations/Get.hs
mpl-2.0
-- | V1 error format. pibogXgafv :: Lens' ProjectsInstancesBackupsOperationsGet (Maybe Xgafv) pibogXgafv = lens _pibogXgafv (\ s a -> s{_pibogXgafv = a})
155
pibogXgafv :: Lens' ProjectsInstancesBackupsOperationsGet (Maybe Xgafv) pibogXgafv = lens _pibogXgafv (\ s a -> s{_pibogXgafv = a})
133
pibogXgafv = lens _pibogXgafv (\ s a -> s{_pibogXgafv = a})
61
true
true
0
9
23
48
25
23
null
null
JoseD92/EasyGL
test/test.hs
bsd-3-clause
sina :: Floating a => a -> a sina = sin . toAngle
50
sina :: Floating a => a -> a sina = sin . toAngle
49
sina = sin . toAngle
20
false
true
0
6
13
26
13
13
null
null
marcellussiegburg/autotool
collection/src/Lambda/Derive2.hs
gpl-2.0
step :: Bool -> Lambda -> Step -> Reporter Lambda step drawing t s = do inform $ vcat [ text "*****************************************************" , text "Aktueller Term ist" , nest 4 $ toDoc t ] when drawing $ peng t inform $ vcat [ text "Aktueller Schritt ist", nest 4...
571
step :: Bool -> Lambda -> Step -> Reporter Lambda step drawing t s = do inform $ vcat [ text "*****************************************************" , text "Aktueller Term ist" , nest 4 $ toDoc t ] when drawing $ peng t inform $ vcat [ text "Aktueller Schritt ist", nest 4...
571
step drawing t s = do inform $ vcat [ text "*****************************************************" , text "Aktueller Term ist" , nest 4 $ toDoc t ] when drawing $ peng t inform $ vcat [ text "Aktueller Schritt ist", nest 4 $ toDoc s ] inform $ vcat [ text "Teilterm a...
521
false
true
0
15
181
231
102
129
null
null
rudymatela/llcheck
src/Test/LeanCheck/Tiers.hs
bsd-3-clause
-- | Discard elements _not_ matching a predicate. -- -- > discardT odd [[1],[2,3],[4]] = [[],[2],[4]] discardT :: (a -> Bool) -> [[a]] -> [[a]] discardT p = filterT (not . p)
178
discardT :: (a -> Bool) -> [[a]] -> [[a]] discardT p = filterT (not . p)
74
discardT p = filterT (not . p)
32
true
true
0
10
35
60
32
28
null
null
ivan-m/keyless-entry
bench/KeylessBenchmark.hs
bsd-3-clause
sampleSKIL = wKeyless szdSKIL
29
sampleSKIL = wKeyless szdSKIL
29
sampleSKIL = wKeyless szdSKIL
29
false
false
0
5
3
9
4
5
null
null
karun012/scraper
src/LinkedInMain.hs
unlicense
getUrl :: [String] -> LinkedInUrl getUrl = maybe "" id . headMay
64
getUrl :: [String] -> LinkedInUrl getUrl = maybe "" id . headMay
64
getUrl = maybe "" id . headMay
30
false
true
1
7
11
36
15
21
null
null
brendanhay/gogol
gogol-compute/gen/Network/Google/Resource/Compute/FirewallPolicies/CloneRules.hs
mpl-2.0
-- | The firewall policy from which to copy rules. fpcrSourceFirewallPolicy :: Lens' FirewallPoliciesCloneRules (Maybe Text) fpcrSourceFirewallPolicy = lens _fpcrSourceFirewallPolicy (\ s a -> s{_fpcrSourceFirewallPolicy = a})
234
fpcrSourceFirewallPolicy :: Lens' FirewallPoliciesCloneRules (Maybe Text) fpcrSourceFirewallPolicy = lens _fpcrSourceFirewallPolicy (\ s a -> s{_fpcrSourceFirewallPolicy = a})
183
fpcrSourceFirewallPolicy = lens _fpcrSourceFirewallPolicy (\ s a -> s{_fpcrSourceFirewallPolicy = a})
109
true
true
1
9
34
51
25
26
null
null
unisonweb/platform
parser-typechecker/src/Unison/Codebase/Editor/Output.hs
mit
pushPull :: a -> a -> PushPull -> a pushPull push pull p = case p of Push -> push Pull -> pull
98
pushPull :: a -> a -> PushPull -> a pushPull push pull p = case p of Push -> push Pull -> pull
98
pushPull push pull p = case p of Push -> push Pull -> pull
62
false
true
0
7
26
46
23
23
null
null
lpeterse/koka
src/Static/FixityResolve.hs
apache-2.0
resolveExpr :: UserExpr -> FixM UserExpr resolveExpr expr = case expr of Lam binds expr rng -> do binds' <- mapM resolveBinderMaybe binds expr' <- resolveExpr expr return (Lam binds' expr' rng) Let defs expr range -> do defs' <- ...
1,689
resolveExpr :: UserExpr -> FixM UserExpr resolveExpr expr = case expr of Lam binds expr rng -> do binds' <- mapM resolveBinderMaybe binds expr' <- resolveExpr expr return (Lam binds' expr' rng) Let defs expr range -> do defs' <- ...
1,689
resolveExpr expr = case expr of Lam binds expr rng -> do binds' <- mapM resolveBinderMaybe binds expr' <- resolveExpr expr return (Lam binds' expr' rng) Let defs expr range -> do defs' <- resolveDefGroup defs ...
1,648
false
true
0
16
885
452
196
256
null
null
atsukotakahashi/wi
src/library/Yi/File.hs
gpl-2.0
viWrite :: YiM () viWrite = do withCurrentBuffer (gets file) >>= \case Nothing -> errorEditor "no file name associate with buffer" Just f -> do bufInfo <- withCurrentBuffer bufInfoB let s = bufInfoFileName bufInfo fwriteE let message = (showT f <>) (if f == s ...
482
viWrite :: YiM () viWrite = do withCurrentBuffer (gets file) >>= \case Nothing -> errorEditor "no file name associate with buffer" Just f -> do bufInfo <- withCurrentBuffer bufInfoB let s = bufInfoFileName bufInfo fwriteE let message = (showT f <>) (if f == s ...
482
viWrite = do withCurrentBuffer (gets file) >>= \case Nothing -> errorEditor "no file name associate with buffer" Just f -> do bufInfo <- withCurrentBuffer bufInfoB let s = bufInfoFileName bufInfo fwriteE let message = (showT f <>) (if f == s then " written...
464
false
true
0
21
169
129
60
69
null
null
nushio3/ghc
compiler/prelude/PrelNames.hs
bsd-3-clause
noSelTyConName = tcQual gHC_GENERICS (fsLit "NoSelector") noSelTyConKey
71
noSelTyConName = tcQual gHC_GENERICS (fsLit "NoSelector") noSelTyConKey
71
noSelTyConName = tcQual gHC_GENERICS (fsLit "NoSelector") noSelTyConKey
71
false
false
1
7
6
22
9
13
null
null
romildo/hprettybox
src/Text/PrettyPrint/Box.hs
bsd-3-clause
connect :: Box -> [Box] -> Box connect box [] = box
51
connect :: Box -> [Box] -> Box connect box [] = box
51
connect box [] = box
20
false
true
0
7
11
29
15
14
null
null
sbidin/sdl2-gfx
src/SDL/ImageFilter.hs
mit
binarizeUsingThreshold :: Word8 -> Vector Word8 -> Vector Word8 binarizeUsingThreshold = binaryByte SDL.Raw.ImageFilter.binarizeUsingThreshold
142
binarizeUsingThreshold :: Word8 -> Vector Word8 -> Vector Word8 binarizeUsingThreshold = binaryByte SDL.Raw.ImageFilter.binarizeUsingThreshold
142
binarizeUsingThreshold = binaryByte SDL.Raw.ImageFilter.binarizeUsingThreshold
78
false
true
0
7
12
32
16
16
null
null
ksaveljev/hake-2
src/Game/GameSpawn.hs
bsd-3-clause
spInfoPlayerStart :: EntThink spInfoPlayerStart = GenericEntThink "SP_info_player_start" $ \edictReference -> do PlayerClient.spInfoPlayerStart edictReference return True
180
spInfoPlayerStart :: EntThink spInfoPlayerStart = GenericEntThink "SP_info_player_start" $ \edictReference -> do PlayerClient.spInfoPlayerStart edictReference return True
180
spInfoPlayerStart = GenericEntThink "SP_info_player_start" $ \edictReference -> do PlayerClient.spInfoPlayerStart edictReference return True
150
false
true
0
10
24
37
17
20
null
null
nikivazou/verified_string_matching
src/Data/List/RList.hs
bsd-3-clause
drop i (C x xs) | i == 0 = C x xs | otherwise = drop (i-1) xs
73
drop i (C x xs) | i == 0 = C x xs | otherwise = drop (i-1) xs
73
drop i (C x xs) | i == 0 = C x xs | otherwise = drop (i-1) xs
73
false
false
0
8
30
57
26
31
null
null
emilaxelsson/compass
tests/GeneralTests.hs
bsd-3-clause
prop_usedVars = forAll genOpen $ \(t :: Term TestSig) -> Set.isSubsetOf (freeVars t) (usedVars t)
97
prop_usedVars = forAll genOpen $ \(t :: Term TestSig) -> Set.isSubsetOf (freeVars t) (usedVars t)
97
prop_usedVars = forAll genOpen $ \(t :: Term TestSig) -> Set.isSubsetOf (freeVars t) (usedVars t)
97
false
false
0
9
14
47
23
24
null
null
rueshyna/gogol
gogol-analytics/gen/Network/Google/Analytics/Types/Product.hs
mpl-2.0
-- | Name of the custom dimension. cddName :: Lens' CustomDimension (Maybe Text) cddName = lens _cddName (\ s a -> s{_cddName = a})
131
cddName :: Lens' CustomDimension (Maybe Text) cddName = lens _cddName (\ s a -> s{_cddName = a})
96
cddName = lens _cddName (\ s a -> s{_cddName = a})
50
true
true
0
9
23
46
25
21
null
null
paf31/typescript-docs
src/Language/TypeScript/Docs/Html.hs
mit
intersperseM_ :: (Functor m, Monad m) => m b -> [m a] -> m () intersperseM_ sep = fmap (const ()) . intersperseM sep
116
intersperseM_ :: (Functor m, Monad m) => m b -> [m a] -> m () intersperseM_ sep = fmap (const ()) . intersperseM sep
116
intersperseM_ sep = fmap (const ()) . intersperseM sep
54
false
true
0
9
23
69
33
36
null
null
orbitgray/ProjectEuler
haskell/010.hs
lgpl-3.0
prime_sum_below :: Int -> Int prime_sum_below max = foldl (+) 0 (takeWhile (<max) primes)
89
prime_sum_below :: Int -> Int prime_sum_below max = foldl (+) 0 (takeWhile (<max) primes)
89
prime_sum_below max = foldl (+) 0 (takeWhile (<max) primes)
59
false
true
0
8
13
39
21
18
null
null
sixears/fluffy
src/Fluffy/Data/List.hs
mit
findEnds _ [] = Nothing
24
findEnds _ [] = Nothing
24
findEnds _ [] = Nothing
24
false
false
0
6
5
13
6
7
null
null
rueshyna/gogol
gogol-debugger/gen/Network/Google/Debugger/Types/Product.hs
mpl-2.0
-- | The stack at breakpoint time. bStackFrames :: Lens' Breakpoint [StackFrame] bStackFrames = lens _bStackFrames (\ s a -> s{_bStackFrames = a}) . _Default . _Coerce
181
bStackFrames :: Lens' Breakpoint [StackFrame] bStackFrames = lens _bStackFrames (\ s a -> s{_bStackFrames = a}) . _Default . _Coerce
146
bStackFrames = lens _bStackFrames (\ s a -> s{_bStackFrames = a}) . _Default . _Coerce
100
true
true
3
9
40
58
28
30
null
null
Saulzar/reflex
test/Reflex/Bench/Focused.hs
bsd-3-clause
iterM f n a = iterM f (n - 1) =<< f a
37
iterM f n a = iterM f (n - 1) =<< f a
37
iterM f n a = iterM f (n - 1) =<< f a
37
false
false
0
8
12
32
15
17
null
null
snoyberg/hackage-server
Distribution/Server/Features/Core/Backup.hs
bsd-3-clause
pkgPath :: PackageId -> String -> [String] pkgPath pkgId file = ["package", display pkgId, file]
96
pkgPath :: PackageId -> String -> [String] pkgPath pkgId file = ["package", display pkgId, file]
96
pkgPath pkgId file = ["package", display pkgId, file]
53
false
true
0
7
14
44
22
22
null
null
hengchu/CoreLang
CoreLang/TInst.hs
mit
showNode (NInd ind) = (iStr "NInd ") `iAppend` (iFWNum 3 ind)
61
showNode (NInd ind) = (iStr "NInd ") `iAppend` (iFWNum 3 ind)
61
showNode (NInd ind) = (iStr "NInd ") `iAppend` (iFWNum 3 ind)
61
false
false
0
8
10
40
19
21
null
null
ayberkt/TAPL
src/Typed/Semantics.hs
bsd-3-clause
termSubst j s (TmAbs x τ t) = TmAbs x τ $ termSubst (succ j) (termShift 1 s) t
80
termSubst j s (TmAbs x τ t) = TmAbs x τ $ termSubst (succ j) (termShift 1 s) t
80
termSubst j s (TmAbs x τ t) = TmAbs x τ $ termSubst (succ j) (termShift 1 s) t
80
false
false
0
8
20
53
25
28
null
null
karamellpelle/grid
designer/source/Linear.hs
gpl-3.0
mat4Identity :: Mat4 mat4Identity = Mat4 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
104
mat4Identity :: Mat4 mat4Identity = Mat4 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
104
mat4Identity = Mat4 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
83
false
true
0
5
53
44
22
22
null
null
graninas/ICFPC2007
Endo/Middleware/Parsing/Common.hs
gpl-3.0
eol :: GenParser Char st String eol = try (string "\n\r") <|> try (string "\r\n") <|> try (string "\n") <|> try (string "\r") <?> "eol"
135
eol :: GenParser Char st String eol = try (string "\n\r") <|> try (string "\r\n") <|> try (string "\n") <|> try (string "\r") <?> "eol"
135
eol = try (string "\n\r") <|> try (string "\r\n") <|> try (string "\n") <|> try (string "\r") <?> "eol"
103
false
true
1
11
24
75
33
42
null
null
uduki/hsQt
Qtc/ClassTypes/Gui.hs
bsd-2-clause
qDataWidgetMapperListFromPtrList :: [Ptr (TQDataWidgetMapper a)] -> IO [QDataWidgetMapper a] qDataWidgetMapperListFromPtrList p = objectListFromPtrList qtc_QDataWidgetMapper_getFinalizer p
190
qDataWidgetMapperListFromPtrList :: [Ptr (TQDataWidgetMapper a)] -> IO [QDataWidgetMapper a] qDataWidgetMapperListFromPtrList p = objectListFromPtrList qtc_QDataWidgetMapper_getFinalizer p
190
qDataWidgetMapperListFromPtrList p = objectListFromPtrList qtc_QDataWidgetMapper_getFinalizer p
97
false
true
0
9
16
44
21
23
null
null
geophf/1HaskellADay
exercises/HAD/Y2020/M11/D20/Exercise.hs
mit
airpower2KML :: AirPower -> KML airpower2KML = undefined
56
airpower2KML :: AirPower -> KML airpower2KML = undefined
56
airpower2KML = undefined
24
false
true
0
5
7
15
8
7
null
null
oldmanmike/ghc
compiler/cmm/PprC.hs
bsd-3-clause
machRepPtrCType :: CmmType -> SDoc machRepPtrCType r = sdocWithDynFlags $ \dflags -> if isCmmWordType dflags r then text "P_" else machRepCType r <> char '*'
190
machRepPtrCType :: CmmType -> SDoc machRepPtrCType r = sdocWithDynFlags $ \dflags -> if isCmmWordType dflags r then text "P_" else machRepCType r <> char '*'
190
machRepPtrCType r = sdocWithDynFlags $ \dflags -> if isCmmWordType dflags r then text "P_" else machRepCType r <> char '*'
155
false
true
0
9
57
53
26
27
null
null
OS2World/DEV-UTIL-HUGS
libraries/Graphics/UI/GLUT/Callbacks/Registration.hs
bsd-3-clause
isGlobal :: CallbackType -> Bool isGlobal MenuStatusCB = True
61
isGlobal :: CallbackType -> Bool isGlobal MenuStatusCB = True
61
isGlobal MenuStatusCB = True
28
false
true
0
5
8
18
9
9
null
null
VictorDenisov/openjdb
Main.hs
gpl-2.0
parseList :: CharParser st Command parseList = string "list" >> return ListCommand
82
parseList :: CharParser st Command parseList = string "list" >> return ListCommand
82
parseList = string "list" >> return ListCommand
47
false
true
0
6
11
26
12
14
null
null
mettekou/ghc
compiler/cmm/CmmUtils.hs
bsd-3-clause
cmmLabelOffW :: DynFlags -> CLabel -> WordOff -> CmmLit cmmLabelOffW dflags lbl wd_off = cmmLabelOffB lbl (wordsToBytes dflags wd_off)
134
cmmLabelOffW :: DynFlags -> CLabel -> WordOff -> CmmLit cmmLabelOffW dflags lbl wd_off = cmmLabelOffB lbl (wordsToBytes dflags wd_off)
134
cmmLabelOffW dflags lbl wd_off = cmmLabelOffB lbl (wordsToBytes dflags wd_off)
78
false
true
0
7
18
48
22
26
null
null
VinylRecords/Vinyl
Data/Vinyl/Class/Method.hs
mit
recNegate :: RecAll f rs Num => Rec f rs -> Rec f rs recNegate RNil = RNil
74
recNegate :: RecAll f rs Num => Rec f rs -> Rec f rs recNegate RNil = RNil
74
recNegate RNil = RNil
21
false
true
0
8
17
44
19
25
null
null
yairchu/ad
src/Numeric/AD/Mode/Reverse.hs
bsd-3-clause
-- | 'jacobianWith g f' calculates the Jacobian of a non-scalar-to-non-scalar function @f@ with reverse AD lazily in @m@ passes for @m@ outputs. -- -- Instead of returning the Jacobian matrix, the elements of the matrix are combined with the input using the @g@. -- -- @ -- 'jacobian' = 'jacobianWith' (\_ dx -> dx) -- '...
610
jacobianWith :: (Traversable f, Functor g, Num a) => (a -> a -> b) -> (forall s. Mode s => f (AD s a) -> g (AD s a)) -> f a -> g (f b) jacobianWith g f as = unbindWith g vs . partialArray bds <$> f vs where (vs, bds) = bind as
231
jacobianWith g f as = unbindWith g vs . partialArray bds <$> f vs where (vs, bds) = bind as
96
true
true
0
14
129
159
82
77
null
null
EEviston/distro_api
src/UseHaskellAPI.hs
bsd-3-clause
-- mongo 27061 dir2_replica_port2 = "7002" :: String
52
dir2_replica_port2 = "7002" :: String
37
dir2_replica_port2 = "7002" :: String
37
true
false
0
4
7
10
6
4
null
null
google-research/dex-lang
src/lib/Util.hs
bsd-3-clause
asStateT :: Monad m => (s -> m (a, s)) -> StateT s m a asStateT f = do s <- get (ans, s') <- lift $ f s put s' return ans
129
asStateT :: Monad m => (s -> m (a, s)) -> StateT s m a asStateT f = do s <- get (ans, s') <- lift $ f s put s' return ans
129
asStateT f = do s <- get (ans, s') <- lift $ f s put s' return ans
74
false
true
0
10
40
87
41
46
null
null
d0kt0r0/estuary
client/src/Estuary/Languages/LaCalle.hs
gpl-3.0
commaSep = P.commaSep tokenParser
33
commaSep = P.commaSep tokenParser
33
commaSep = P.commaSep tokenParser
33
false
false
0
6
3
11
5
6
null
null
cwlmyjm/haskell
FUN/Lab9solution.hs
mpl-2.0
moveCursor Right ( xs, c, y:ys) = (c:xs, y , ys)
51
moveCursor Right ( xs, c, y:ys) = (c:xs, y , ys)
51
moveCursor Right ( xs, c, y:ys) = (c:xs, y , ys)
51
false
false
0
6
13
39
21
18
null
null
apirogov/x11remote
Main.hs
mit
embeddedStatic :: [(FilePath, BS.ByteString)] embeddedStatic = $(embedDir "static")
83
embeddedStatic :: [(FilePath, BS.ByteString)] embeddedStatic = $(embedDir "static")
83
embeddedStatic = $(embedDir "static")
37
false
true
0
7
7
29
16
13
null
null
gcampax/ghc
compiler/typecheck/TcClassDcl.hs
bsd-3-clause
tcMkDeclCtxt :: TyClDecl Name -> SDoc tcMkDeclCtxt decl = hsep [ptext (sLit "In the"), pprTyClDeclFlavour decl, ptext (sLit "declaration for"), quotes (ppr (tcdName decl))]
194
tcMkDeclCtxt :: TyClDecl Name -> SDoc tcMkDeclCtxt decl = hsep [ptext (sLit "In the"), pprTyClDeclFlavour decl, ptext (sLit "declaration for"), quotes (ppr (tcdName decl))]
194
tcMkDeclCtxt decl = hsep [ptext (sLit "In the"), pprTyClDeclFlavour decl, ptext (sLit "declaration for"), quotes (ppr (tcdName decl))]
156
false
true
0
11
45
72
35
37
null
null
urbanslug/ghc
testsuite/tests/deSugar/should_compile/T3263-1.hs
bsd-3-clause
t2 = nonNullM
13
t2 = nonNullM
13
t2 = nonNullM
13
false
false
0
4
2
6
3
3
null
null
lpeterse/koka
src/Common/NamePrim.hs
apache-2.0
nameTpArray = preludeName "array"
37
nameTpArray = preludeName "array"
37
nameTpArray = preludeName "array"
37
false
false
0
5
7
9
4
5
null
null
mpickering/hlint
src/HSE/Util.hs
bsd-3-clause
isSpliceDecl SpliceDecl{} = True
32
isSpliceDecl SpliceDecl{} = True
32
isSpliceDecl SpliceDecl{} = True
32
false
false
0
5
3
14
6
8
null
null
gittywithexcitement/hindent
src/HIndent/Styles/Gibiansky.hs
bsd-3-clause
-- | Format contexts with spaces and commas between class constraints. context :: Extend Context context (CxTuple _ asserts) = parens $ inter (comma >> space) $ map pretty asserts
181
context :: Extend Context context (CxTuple _ asserts) = parens $ inter (comma >> space) $ map pretty asserts
110
context (CxTuple _ asserts) = parens $ inter (comma >> space) $ map pretty asserts
84
true
true
0
9
31
49
24
25
null
null
gleachkr/Carnap
Carnap/src/Carnap/Calculi/NaturalDeduction/Syntax.hs
gpl-3.0
--one step of getting the deduction tree where a certian line resides locale m l@(Leaf n _) = if n == m then Just l else Nothing
128
locale m l@(Leaf n _) = if n == m then Just l else Nothing
58
locale m l@(Leaf n _) = if n == m then Just l else Nothing
58
true
false
0
8
26
38
20
18
null
null
uduki/hsQt
demos/Glome/imageviewer.hs
bsd-2-clause
saveAs :: QAction () -> ImgVec -> MyQMainWindow -> IO () saveAs sv iv mw = do cp <- qDirCurrentPath () fileName <- qFileDialogGetSaveFileName (mw, "Save File As", cp) if (fileName /= "") then do civ <- getIVimg iv save civ fileName setEnabled sv False else return ()
320
saveAs :: QAction () -> ImgVec -> MyQMainWindow -> IO () saveAs sv iv mw = do cp <- qDirCurrentPath () fileName <- qFileDialogGetSaveFileName (mw, "Save File As", cp) if (fileName /= "") then do civ <- getIVimg iv save civ fileName setEnabled sv False else return ()
320
saveAs sv iv mw = do cp <- qDirCurrentPath () fileName <- qFileDialogGetSaveFileName (mw, "Save File As", cp) if (fileName /= "") then do civ <- getIVimg iv save civ fileName setEnabled sv False else return ()
263
false
true
0
11
101
120
56
64
null
null
msosnicki/algorithms
app/week4/Problem3.hs
bsd-3-clause
toString = intercalate " " . map show
37
toString = intercalate " " . map show
37
toString = intercalate " " . map show
37
false
false
1
6
7
19
7
12
null
null
hecrj/haskell-format
test/specs/lambda/input.hs
bsd-3-clause
test :: Int -> Int -> Int -> Int test = \a b c -> 1
51
test :: Int -> Int -> Int -> Int test = \a b c -> 1
51
test = \a b c -> 1
18
false
true
0
9
15
39
18
21
null
null
pbrisbin/lemonstand
Settings.hs
bsd-2-clause
widgetFile = Yesod.Default.Util.widgetFileReload
48
widgetFile = Yesod.Default.Util.widgetFileReload
48
widgetFile = Yesod.Default.Util.widgetFileReload
48
false
false
0
5
2
10
6
4
null
null
mitchellwrosen/haskell-erlang-bridge
src/Erlang/Distribution/Node.hs
lgpl-3.0
withNode :: forall r. NodeName -- ^ Local node's name. -> OutCookie -- ^ Cookie for outgoing communication to remote node. -> InCookie -- ^ Cookie expected to be used for incoming communication from remote node. -> Version -- ^ Distribution version. Has...
3,091
withNode :: forall r. NodeName -- ^ Local node's name. -> OutCookie -- ^ Cookie for outgoing communication to remote node. -> InCookie -- ^ Cookie expected to be used for incoming communication from remote node. -> Version -- ^ Distribution version. Has...
3,091
withNode node_name (OutCookie out_cookie) (InCookie in_cookie) ver remote_host remote_port action = TCP.connect remote_host remote_port (handshake . fst) where handshake :: Socket -> IO r handshake sock = send_name (HandshakeName ver flags node_name) where send_name :: HandshakeName -> IO r ...
2,518
false
true
2
16
994
541
266
275
null
null
mightymoose/liquidhaskell
benchmarks/bytestring-0.9.2.1/Data/ByteString/Fusion.T.hs
bsd-3-clause
{- RULES "FPS lazy loop/loop fusion!" forall em1 em2 start1 start2 arr. loopL em2 start2 (loopArr (loopL em1 start1 arr)) = loopSndAcc (loopL (em1 `fuseEFL` em2) (start1 :*: start2) arr) #-} {- Alternate experimental formulation of loopU which partitions it into an allocating wrapper and an imperitive arra...
848
loopUp :: AccEFL acc -> acc -> ByteString -> PairS acc ByteString loopUp f a arr = loopWrapper (doUpLoop f a) arr
113
loopUp f a arr = loopWrapper (doUpLoop f a) arr
47
true
true
0
8
158
54
27
27
null
null
bobatkey/Forvie
benchmarks/parse-foveran/Parsing.hs
bsd-3-clause
rejectAmbiguity (AmbiguityDetected x y) = AmbiguityDetected x y
63
rejectAmbiguity (AmbiguityDetected x y) = AmbiguityDetected x y
63
rejectAmbiguity (AmbiguityDetected x y) = AmbiguityDetected x y
63
false
false
0
6
7
23
10
13
null
null
nevrenato/Hets_Fork
DFOL/Sign.hs
gpl-2.0
-- get the return type of a symbol with the given type getReturnType :: NAME -> Sign -> Maybe TYPE getReturnType n sig = case typM of Nothing -> Nothing Just typ -> Just $ getReturnTypeH typ where typM = getSymbolType n sig
299
getReturnType :: NAME -> Sign -> Maybe TYPE getReturnType n sig = case typM of Nothing -> Nothing Just typ -> Just $ getReturnTypeH typ where typM = getSymbolType n sig
244
getReturnType n sig = case typM of Nothing -> Nothing Just typ -> Just $ getReturnTypeH typ where typM = getSymbolType n sig
200
true
true
0
9
118
71
33
38
null
null
ndmitchell/tagsoup
src/Text/HTML/TagSoup/Specification.hs
bsd-3-clause
bogusComment1 S{..} = pos $ case hd of '>' -> CommentEnd & dat tl _ | eof -> CommentEnd & dat s _ -> hd & bogusComment1 tl -- 8.2.4.17 Markup declaration open state
178
bogusComment1 S{..} = pos $ case hd of '>' -> CommentEnd & dat tl _ | eof -> CommentEnd & dat s _ -> hd & bogusComment1 tl -- 8.2.4.17 Markup declaration open state
178
bogusComment1 S{..} = pos $ case hd of '>' -> CommentEnd & dat tl _ | eof -> CommentEnd & dat s _ -> hd & bogusComment1 tl -- 8.2.4.17 Markup declaration open state
178
false
false
0
11
47
69
32
37
null
null
psibi/cabal2nix
src/Distribution/Nixpkgs/Haskell/FromCabal/License.hs
bsd-3-clause
fromCabalLicense (GPL (Just (Version [3] []))) = Known "stdenv.lib.licenses.gpl3"
90
fromCabalLicense (GPL (Just (Version [3] []))) = Known "stdenv.lib.licenses.gpl3"
90
fromCabalLicense (GPL (Just (Version [3] []))) = Known "stdenv.lib.licenses.gpl3"
90
false
false
0
12
17
37
18
19
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/WebGLRenderingContextBase.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContextBase.bufferData Mozilla WebGLRenderingContextBase.bufferData documentation> bufferData :: (MonadDOM m, IsWebGLRenderingContextBase self, IsBufferDataSource data') => self -> GLenum -> Maybe data' -> GLenum -...
511
bufferData :: (MonadDOM m, IsWebGLRenderingContextBase self, IsBufferDataSource data') => self -> GLenum -> Maybe data' -> GLenum -> m () bufferData self target data' usage = liftDOM (void ((toWebGLRenderingContextBase self) ^. jsf "bufferData" [toJSVal t...
358
bufferData self target data' usage = liftDOM (void ((toWebGLRenderingContextBase self) ^. jsf "bufferData" [toJSVal target, toJSVal data', toJSVal usage]))
184
true
true
0
12
110
116
56
60
null
null
mariefarrell/Hets
Propositional/Sign.hs
gpl-2.0
isLegalSignature :: Sign -> Bool isLegalSignature _ = True
58
isLegalSignature :: Sign -> Bool isLegalSignature _ = True
58
isLegalSignature _ = True
25
false
true
0
5
8
18
9
9
null
null
rueshyna/gogol
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/SendCapture.hs
mpl-2.0
-- | Multipart request metadata. pjdscPayload :: Lens' ProjectsJobsDebugSendCapture SendDebugCaptureRequest pjdscPayload = lens _pjdscPayload (\ s a -> s{_pjdscPayload = a})
175
pjdscPayload :: Lens' ProjectsJobsDebugSendCapture SendDebugCaptureRequest pjdscPayload = lens _pjdscPayload (\ s a -> s{_pjdscPayload = a})
142
pjdscPayload = lens _pjdscPayload (\ s a -> s{_pjdscPayload = a})
67
true
true
0
9
22
42
22
20
null
null
nevrenato/Hets_Fork
RDF/ATC_RDF.hs
gpl-2.0
_tcAnnotationValueTc :: TyCon _tcAnnotationValueTc = mkTyCon "OWL2.AS.AnnotationValue"
86
_tcAnnotationValueTc :: TyCon _tcAnnotationValueTc = mkTyCon "OWL2.AS.AnnotationValue"
86
_tcAnnotationValueTc = mkTyCon "OWL2.AS.AnnotationValue"
56
false
true
0
5
6
14
7
7
null
null
begriffs/graph-rtce
src/Pages/Index.hs
mit
render = do head $ script "" ! src "js/app.js" body $ do h1 "Beam me up, Scotty!" a "Add node" ! id "add"
130
render = do head $ script "" ! src "js/app.js" body $ do h1 "Beam me up, Scotty!" a "Add node" ! id "add"
130
render = do head $ script "" ! src "js/app.js" body $ do h1 "Beam me up, Scotty!" a "Add node" ! id "add"
130
false
false
0
11
48
49
20
29
null
null
nushio3/ghc
compiler/basicTypes/RdrName.hs
bsd-3-clause
insertGRE new_g (old_g : old_gs) | gre_name new_g == gre_name old_g = new_g `plusGRE` old_g : old_gs | otherwise = old_g : insertGRE new_g old_gs
177
insertGRE new_g (old_g : old_gs) | gre_name new_g == gre_name old_g = new_g `plusGRE` old_g : old_gs | otherwise = old_g : insertGRE new_g old_gs
177
insertGRE new_g (old_g : old_gs) | gre_name new_g == gre_name old_g = new_g `plusGRE` old_g : old_gs | otherwise = old_g : insertGRE new_g old_gs
177
false
false
0
9
56
64
30
34
null
null
effectfully/prefolds
src/Data/Strict/Drive.hs
bsd-3-clause
more :: MonoMonad m => a -> m a more = mpure
44
more :: MonoMonad m => a -> m a more = mpure
44
more = mpure
12
false
true
0
7
11
25
12
13
null
null
carlohamalainen/ghc-mod
Language/Haskell/GhcMod/Cradle.hs
bsd-3-clause
cabalSuffixLength :: Int cabalSuffixLength = length cabalSuffix
63
cabalSuffixLength :: Int cabalSuffixLength = length cabalSuffix
63
cabalSuffixLength = length cabalSuffix
38
false
true
0
5
6
14
7
7
null
null
green-haskell/ghc
compiler/nativeGen/X86/CodeGen.hs
bsd-3-clause
genSwitch :: DynFlags -> CmmExpr -> [Maybe BlockId] -> NatM InstrBlock genSwitch dflags expr ids | gopt Opt_PIC dflags = do (reg,e_code) <- getSomeReg expr lbl <- getNewLabelNat dflags <- getDynFlags dynRef <- cmmMakeDynamicReference dflags DataReference lbl (tableReg,t_code...
2,816
genSwitch :: DynFlags -> CmmExpr -> [Maybe BlockId] -> NatM InstrBlock genSwitch dflags expr ids | gopt Opt_PIC dflags = do (reg,e_code) <- getSomeReg expr lbl <- getNewLabelNat dflags <- getDynFlags dynRef <- cmmMakeDynamicReference dflags DataReference lbl (tableReg,t_code)...
2,815
genSwitch dflags expr ids | gopt Opt_PIC dflags = do (reg,e_code) <- getSomeReg expr lbl <- getNewLabelNat dflags <- getDynFlags dynRef <- cmmMakeDynamicReference dflags DataReference lbl (tableReg,t_code) <- getSomeReg $ dynRef let op = OpAddr (AddrBaseIndex (EABaseR...
2,744
false
true
0
21
1,312
538
273
265
null
null
romanb/amazonka
amazonka-iam/gen/Network/AWS/IAM/GetPolicy.hs
mpl-2.0
gpPolicyArn :: Lens' GetPolicy Text gpPolicyArn = lens _gpPolicyArn (\s a -> s { _gpPolicyArn = a })
100
gpPolicyArn :: Lens' GetPolicy Text gpPolicyArn = lens _gpPolicyArn (\s a -> s { _gpPolicyArn = a })
100
gpPolicyArn = lens _gpPolicyArn (\s a -> s { _gpPolicyArn = a })
64
false
true
0
9
17
39
21
18
null
null