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
robinbb/hs-text-xhtml
Text/XHtml/Frameset/Attributes.hs
apache-2.0
marginheight :: Int -> HtmlAttr marginheight = intAttr "marginheight"
88
marginheight :: Int -> HtmlAttr marginheight = intAttr "marginheight"
88
marginheight = intAttr "marginheight"
46
false
true
0
5
27
18
9
9
null
null
tomjaguarpaw/postgresql-simple
src/Database/PostgreSQL/Simple/TypeInfo/Static.hs
bsd-3-clause
circleOid :: Oid circleOid = Oid 718
36
circleOid :: Oid circleOid = Oid 718
36
circleOid = Oid 718
19
false
true
0
5
6
14
7
7
null
null
zmoazeni/csscss-haskell
spec/Text/CSS/Shorthand/ListStyleSpec.hs
mit
lsPosition = parseSingle getListStylePosition
45
lsPosition = parseSingle getListStylePosition
45
lsPosition = parseSingle getListStylePosition
45
false
false
1
5
3
13
4
9
null
null
matt-snider/dict.cc
src/DictCC/DictCC.hs
mit
isLanguageHeader :: Tag Text -> Bool isLanguageHeader = (~=== "<td class=td2 dir=ltr>")
87
isLanguageHeader :: Tag Text -> Bool isLanguageHeader = (~=== "<td class=td2 dir=ltr>")
87
isLanguageHeader = (~=== "<td class=td2 dir=ltr>")
50
false
true
0
6
11
22
12
10
null
null
achirkin/qua-view
src/Model/GeoJSON/Coordinates/Wgs84.hs
mit
_e4 :: Double _e4 = _e2 * _e2
29
_e4 :: Double _e4 = _e2 * _e2
29
_e4 = _e2 * _e2
15
false
true
0
5
7
15
8
7
null
null
paolino/book-a-visit
client/UI/Transactions.hs
bsd-3-clause
transaction me@(ETaker u) (TAbsent i x@(Serving p)) = (ServingColor, chatter i x me u ChatServing)
98
transaction me@(ETaker u) (TAbsent i x@(Serving p)) = (ServingColor, chatter i x me u ChatServing)
98
transaction me@(ETaker u) (TAbsent i x@(Serving p)) = (ServingColor, chatter i x me u ChatServing)
98
false
false
0
10
14
54
28
26
null
null
rueshyna/gogol
gogol-admin-datatransfer/gen/Network/Google/DataTransfer/Types/Product.hs
mpl-2.0
-- | ETag of the resource. dtEtag :: Lens' DataTransfer (Maybe Text) dtEtag = lens _dtEtag (\ s a -> s{_dtEtag = a})
116
dtEtag :: Lens' DataTransfer (Maybe Text) dtEtag = lens _dtEtag (\ s a -> s{_dtEtag = a})
89
dtEtag = lens _dtEtag (\ s a -> s{_dtEtag = a})
47
true
true
0
9
22
46
25
21
null
null
mpickering/HaRe
old/testing/renaming/ConstructorIn1_AstOut.hs
bsd-3-clause
buildtree :: Ord a => [a] -> MyBTree a buildtree [] = Empty
61
buildtree :: Ord a => [a] -> MyBTree a buildtree [] = Empty
59
buildtree [] = Empty
20
false
true
0
9
14
38
17
21
null
null
bfops/Chess
src/Game/Gameplay.hs
mit
symmetry :: [(Delta, Delta)] -> [(Delta, Delta)] symmetry = concatMap $ \d -> [d, swap d]
89
symmetry :: [(Delta, Delta)] -> [(Delta, Delta)] symmetry = concatMap $ \d -> [d, swap d]
89
symmetry = concatMap $ \d -> [d, swap d]
40
false
true
2
9
15
59
31
28
null
null
ctford/Idris-Elba-dev
src/Idris/Core/Elaborate.hs
bsd-3-clause
setNextName :: Elab' aux () setNextName = do env <- get_env ES (p, a) s e <- get let pargs = map fst (getArgTys (ptype p)) initNextNameFrom (pargs ++ map fst env)
213
setNextName :: Elab' aux () setNextName = do env <- get_env ES (p, a) s e <- get let pargs = map fst (getArgTys (ptype p)) initNextNameFrom (pargs ++ map fst env)
213
setNextName = do env <- get_env ES (p, a) s e <- get let pargs = map fst (getArgTys (ptype p)) initNextNameFrom (pargs ++ map fst env)
185
false
true
1
15
82
93
42
51
null
null
jeyoor/haskell-learning-challenge
learn_haskell_github_courses/Cis194/test/Homework01Test.hs
bsd-3-clause
testToDigitsRev1 :: Test testToDigitsRev1 = TestCase (assertEqual "for (toDigitsRev (1234))," ([4, 3, 2, 1]) (toDigitsRev 1234))
128
testToDigitsRev1 :: Test testToDigitsRev1 = TestCase (assertEqual "for (toDigitsRev (1234))," ([4, 3, 2, 1]) (toDigitsRev 1234))
128
testToDigitsRev1 = TestCase (assertEqual "for (toDigitsRev (1234))," ([4, 3, 2, 1]) (toDigitsRev 1234))
103
false
true
0
9
15
45
25
20
null
null
ckaestne/CIDE
other/CaseStudies/fgl/CIDEfgl/Data/Graph/Inductive/Query/DFS.hs
gpl-3.0
xdfsWith d f (v : vs) g = case match v g of { (Just c, g') -> f c : xdfsWith d f (d c ++ vs) g'; (Nothing, g') -> xdfsWith d f vs g'}
159
xdfsWith d f (v : vs) g = case match v g of { (Just c, g') -> f c : xdfsWith d f (d c ++ vs) g'; (Nothing, g') -> xdfsWith d f vs g'}
159
xdfsWith d f (v : vs) g = case match v g of { (Just c, g') -> f c : xdfsWith d f (d c ++ vs) g'; (Nothing, g') -> xdfsWith d f vs g'}
159
false
false
0
12
62
96
49
47
null
null
ghc-android/ghc
compiler/codeGen/StgCmmPrim.hs
bsd-3-clause
-- count leading zeros emitPrimOp _ [res] Clz8Op [w] = emitClzCall res w W8
81
emitPrimOp _ [res] Clz8Op [w] = emitClzCall res w W8
58
emitPrimOp _ [res] Clz8Op [w] = emitClzCall res w W8
58
true
false
0
6
19
29
15
14
null
null
dylex/range-set
tests/List.hs
mit
ordered :: Ord a => [(a,a)] -> Bool ordered rs = all lt $ zip rs (tail rs) where lt :: Ord a => ((a,a),(a,a)) -> Bool lt ((_,y),(u,_)) = y < u
152
ordered :: Ord a => [(a,a)] -> Bool ordered rs = all lt $ zip rs (tail rs) where lt :: Ord a => ((a,a),(a,a)) -> Bool lt ((_,y),(u,_)) = y < u
152
ordered rs = all lt $ zip rs (tail rs) where lt :: Ord a => ((a,a),(a,a)) -> Bool lt ((_,y),(u,_)) = y < u
116
false
true
4
10
42
133
67
66
null
null
nevrenato/Hets_Fork
Temporal/ModalCasl.hs
gpl-2.0
showStateFormula (Mu x phi) True = "mu " ++ show x ++ " . " ++ showStateFormula phi False
102
showStateFormula (Mu x phi) True = "mu " ++ show x ++ " . " ++ showStateFormula phi False
102
showStateFormula (Mu x phi) True = "mu " ++ show x ++ " . " ++ showStateFormula phi False
102
false
false
0
8
31
39
18
21
null
null
mindriot101/pandoc
src/Text/Pandoc/Readers/TWiki.hs
gpl-2.0
singleQuoted :: TWParser B.Inlines singleQuoted = try $ do singleQuoteStart withQuoteContext InSingleQuote $ many1Till inline singleQuoteEnd >>= (return . B.singleQuoted . B.trimInlines . mconcat)
208
singleQuoted :: TWParser B.Inlines singleQuoted = try $ do singleQuoteStart withQuoteContext InSingleQuote $ many1Till inline singleQuoteEnd >>= (return . B.singleQuoted . B.trimInlines . mconcat)
208
singleQuoted = try $ do singleQuoteStart withQuoteContext InSingleQuote $ many1Till inline singleQuoteEnd >>= (return . B.singleQuoted . B.trimInlines . mconcat)
173
false
true
0
13
35
61
29
32
null
null
cmahon/smartbit
src/Smartbit/Types.hs
bsd-3-clause
sortByReceived = SortBy :: SortBy Received'
43
sortByReceived = SortBy :: SortBy Received'
43
sortByReceived = SortBy :: SortBy Received'
43
false
false
2
5
5
18
6
12
null
null
hvr/hoopl
src/Compiler/Hoopl/Graph.hs
bsd-3-clause
externalEntryLabels :: forall n . NonLocal n => LabelMap (Block n C C) -> LabelSet externalEntryLabels body = defined `setDifference` used where defined = labelsDefined g used = labelsUsed g g = GMany NothingO body NothingO
264
externalEntryLabels :: forall n . NonLocal n => LabelMap (Block n C C) -> LabelSet externalEntryLabels body = defined `setDifference` used where defined = labelsDefined g used = labelsUsed g g = GMany NothingO body NothingO
264
externalEntryLabels body = defined `setDifference` used where defined = labelsDefined g used = labelsUsed g g = GMany NothingO body NothingO
158
false
true
2
10
76
80
40
40
null
null
keenbug/iexpr
MatchIExpr.hs
gpl-2.0
mBraceList :: IExprListMatcher s a -> IExprMatcher s a mBraceList matchElems = contextualMatcher matchList where matchList input = case input of IBraceList elems -> runMatcher matchElems elems otherwise -> matcherError "expected list in braces"
258
mBraceList :: IExprListMatcher s a -> IExprMatcher s a mBraceList matchElems = contextualMatcher matchList where matchList input = case input of IBraceList elems -> runMatcher matchElems elems otherwise -> matcherError "expected list in braces"
258
mBraceList matchElems = contextualMatcher matchList where matchList input = case input of IBraceList elems -> runMatcher matchElems elems otherwise -> matcherError "expected list in braces"
203
false
true
0
8
47
69
31
38
null
null
srhb/QuickCheck-GenT
src/QuickCheck/GenT.hs
mit
suchThatMaybe :: MonadGen m => m a -> (a -> Bool) -> m (Maybe a) gen `suchThatMaybe` p = sized (try 0 . max 1) where try _ 0 = return Nothing try k n = do x <- resize (2*k+n) gen if p x then return (Just x) else try (k+1) (n-1) -- | Generates a list of random length. The maximum length depends on t...
341
suchThatMaybe :: MonadGen m => m a -> (a -> Bool) -> m (Maybe a) gen `suchThatMaybe` p = sized (try 0 . max 1) where try _ 0 = return Nothing try k n = do x <- resize (2*k+n) gen if p x then return (Just x) else try (k+1) (n-1) -- | Generates a list of random length. The maximum length depends on t...
341
gen `suchThatMaybe` p = sized (try 0 . max 1) where try _ 0 = return Nothing try k n = do x <- resize (2*k+n) gen if p x then return (Just x) else try (k+1) (n-1) -- | Generates a list of random length. The maximum length depends on the -- size parameter.
276
false
true
0
11
90
162
79
83
null
null
kim/amazonka
amazonka-ec2/gen/Network/AWS/EC2/Types.hs
mpl-2.0
-- | One or more DHCP options in the set. doDhcpConfigurations :: Lens' DhcpOptions [DhcpConfiguration] doDhcpConfigurations = lens _doDhcpConfigurations (\s a -> s { _doDhcpConfigurations = a }) . _List
215
doDhcpConfigurations :: Lens' DhcpOptions [DhcpConfiguration] doDhcpConfigurations = lens _doDhcpConfigurations (\s a -> s { _doDhcpConfigurations = a }) . _List
173
doDhcpConfigurations = lens _doDhcpConfigurations (\s a -> s { _doDhcpConfigurations = a }) . _List
111
true
true
1
8
41
55
27
28
null
null
ganeti/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
hkrSuccess :: Int hkrSuccess = 2
32
hkrSuccess :: Int hkrSuccess = 2
32
hkrSuccess = 2
14
false
true
0
4
5
11
6
5
null
null
LouisJenkinsCS/Minimal-JVM
MateVMRuntime/Types.hs
bsd-3-clause
getClassMap :: IO ClassMap getClassMap = ctxClassMap <$> readIORef mateCtx
74
getClassMap :: IO ClassMap getClassMap = ctxClassMap <$> readIORef mateCtx
74
getClassMap = ctxClassMap <$> readIORef mateCtx
47
false
true
0
6
9
26
11
15
null
null
cocreature/leksah
src/IDE/ImportTool.hs
gpl-2.0
qualString :: ImportDecl -> Text qualString impDecl = fromMaybe "" (importAs impDecl)
86
qualString :: ImportDecl -> Text qualString impDecl = fromMaybe "" (importAs impDecl)
86
qualString impDecl = fromMaybe "" (importAs impDecl)
52
false
true
0
7
12
34
15
19
null
null
SASinestro/migratory
src/Database/Migratory/Schema.hs
mpl-2.0
-- colBody :: (IxMonadState m, KnownSymbol tblname) => m (Table tblname i) (Table tblname j) () colBody = iput Table
117
colBody :: (IxMonadState m, KnownSymbol tblname) => m (Table tblname i) (Table tblname j) () colBody = iput Table
113
colBody = iput Table
20
true
true
0
8
20
55
28
27
null
null
debug-ito/wild-bind
wild-bind-indicator/src/WildBind/Indicator.hs
bsd-3-clause
-- | Similar to 'postGUIAsync', but this function waits for the action -- to finish. postGUISync :: IO a -> IO a postGUISync action = do mret <- newEmptyMVar postGUIAsync $ do ret <- action putMVar mret ret takeMVar mret
234
postGUISync :: IO a -> IO a postGUISync action = do mret <- newEmptyMVar postGUIAsync $ do ret <- action putMVar mret ret takeMVar mret
149
postGUISync action = do mret <- newEmptyMVar postGUIAsync $ do ret <- action putMVar mret ret takeMVar mret
121
true
true
0
10
53
61
27
34
null
null
seckcoder/vector
Data/Vector.hs
bsd-3-clause
singleton = G.singleton
23
singleton = G.singleton
23
singleton = G.singleton
23
false
false
0
5
2
8
4
4
null
null
christiaanb/ghc
compiler/hsSyn/HsUtils.hs
bsd-3-clause
mkBindStmt pat body = BindStmt pat body noSyntaxExpr noSyntaxExpr
65
mkBindStmt pat body = BindStmt pat body noSyntaxExpr noSyntaxExpr
65
mkBindStmt pat body = BindStmt pat body noSyntaxExpr noSyntaxExpr
65
false
false
1
5
8
25
9
16
null
null
emwap/feldspar-language
src/Feldspar/Core/Constructs/Tuple.hs
bsd-3-clause
sel6Size Tup14Type{} = $(proj 14 5)
35
sel6Size Tup14Type{} = $(proj 14 5)
35
sel6Size Tup14Type{} = $(proj 14 5)
35
false
false
0
7
5
22
10
12
null
null
forked-upstream-packages-for-ghcjs/ghc
compiler/simplCore/CoreMonad.hs
bsd-3-clause
nop :: CoreState -> a -> CoreIOEnv (a, CoreState, CoreWriter) nop s x = do r <- getEnv return (x, s, emptyWriter $ (hsc_dflags . cr_hsc_env) r)
151
nop :: CoreState -> a -> CoreIOEnv (a, CoreState, CoreWriter) nop s x = do r <- getEnv return (x, s, emptyWriter $ (hsc_dflags . cr_hsc_env) r)
151
nop s x = do r <- getEnv return (x, s, emptyWriter $ (hsc_dflags . cr_hsc_env) r)
89
false
true
0
13
34
77
38
39
null
null
deontologician/orbRPG
Game/OrbRPG/Combinations.hs
gpl-3.0
G Hypnos @>> G Nyx = L Omega
28
G Hypnos @>> G Nyx = L Omega
28
G Hypnos @>> G Nyx = L Omega
28
false
false
0
6
7
21
8
13
null
null
brendanhay/gogol
gogol-iamcredentials/gen/Network/Google/Resource/IAMCredentials/Projects/ServiceAccounts/GenerateIdToken.hs
mpl-2.0
-- | Upload protocol for media (e.g. \"raw\", \"multipart\"). psagitUploadProtocol :: Lens' ProjectsServiceAccountsGenerateIdToken (Maybe Text) psagitUploadProtocol = lens _psagitUploadProtocol (\ s a -> s{_psagitUploadProtocol = a})
241
psagitUploadProtocol :: Lens' ProjectsServiceAccountsGenerateIdToken (Maybe Text) psagitUploadProtocol = lens _psagitUploadProtocol (\ s a -> s{_psagitUploadProtocol = a})
179
psagitUploadProtocol = lens _psagitUploadProtocol (\ s a -> s{_psagitUploadProtocol = a})
97
true
true
1
9
33
51
25
26
null
null
rueshyna/gogol
gogol-classroom/gen/Network/Google/Resource/Classroom/UserProFiles/GuardianInvitations/Patch.hs
mpl-2.0
-- | The \`id\` field of the \`GuardianInvitation\` to be modified. upfgipInvitationId :: Lens' UserProFilesGuardianInvitationsPatch Text upfgipInvitationId = lens _upfgipInvitationId (\ s a -> s{_upfgipInvitationId = a})
229
upfgipInvitationId :: Lens' UserProFilesGuardianInvitationsPatch Text upfgipInvitationId = lens _upfgipInvitationId (\ s a -> s{_upfgipInvitationId = a})
161
upfgipInvitationId = lens _upfgipInvitationId (\ s a -> s{_upfgipInvitationId = a})
91
true
true
1
9
34
46
22
24
null
null
urbanslug/ghc
testsuite/tests/numeric/should_run/T4383.hs
bsd-3-clause
main = print (0.5 ^ 1030)
25
main = print (0.5 ^ 1030)
25
main = print (0.5 ^ 1030)
25
false
false
0
7
5
16
8
8
null
null
ndmitchell/nsis
src/Development/NSIS/Plugins/WinMessages.hs
bsd-3-clause
wm_KILLFOCUS = 0x0008
40
wm_KILLFOCUS = 0x0008
40
wm_KILLFOCUS = 0x0008
40
false
false
0
4
21
6
3
3
null
null
sherwoodwang/wxHaskell
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
lgpl-2.1
wxSTC_LEX_CONTAINER :: Int wxSTC_LEX_CONTAINER = 0
50
wxSTC_LEX_CONTAINER :: Int wxSTC_LEX_CONTAINER = 0
50
wxSTC_LEX_CONTAINER = 0
23
false
true
0
6
5
18
7
11
null
null
jean-edouard/manager
updatemgr/UpdateMgr/Curl.hs
gpl-2.0
-- Supposed to be blocking. curlGetNextDownloadEvent :: DownloadHandle -> IO DownloadEvent curlGetNextDownloadEvent (DownloadHandle process fileSize_ url path last) = do p <- readMVar process case p of Nothing -> return DownloadCancelled Just handle -> do e <- getProcessExitCode handle ca...
1,774
curlGetNextDownloadEvent :: DownloadHandle -> IO DownloadEvent curlGetNextDownloadEvent (DownloadHandle process fileSize_ url path last) = do p <- readMVar process case p of Nothing -> return DownloadCancelled Just handle -> do e <- getProcessExitCode handle case e of Just Ex...
1,746
curlGetNextDownloadEvent (DownloadHandle process fileSize_ url path last) = do p <- readMVar process case p of Nothing -> return DownloadCancelled Just handle -> do e <- getProcessExitCode handle case e of Just ExitSuccess -> return DownloadFinished -- exit code ...
1,683
true
true
3
27
758
416
188
228
null
null
kfish/const-math-ghc-plugin
ConstMath/Plugin.hs
bsd-3-clause
parseOpts :: [CommandLineOption] -> Opts parseOpts = foldr ($) defaultOpts . map mkArg where mkArg flag | flag `elem` ["-v","--verbose","--verbosity=1"] = setVerbosity (CmVerbose 1) | flag `elem` ["-v11", "-verbosity=11","--trace"] = setVerbosity Trace | flag `elem` ["...
792
parseOpts :: [CommandLineOption] -> Opts parseOpts = foldr ($) defaultOpts . map mkArg where mkArg flag | flag `elem` ["-v","--verbose","--verbosity=1"] = setVerbosity (CmVerbose 1) | flag `elem` ["-v11", "-verbosity=11","--trace"] = setVerbosity Trace | flag `elem` ["...
792
parseOpts = foldr ($) defaultOpts . map mkArg where mkArg flag | flag `elem` ["-v","--verbose","--verbosity=1"] = setVerbosity (CmVerbose 1) | flag `elem` ["-v11", "-verbosity=11","--trace"] = setVerbosity Trace | flag `elem` ["-q", "--quiet","--verbosity=0", "-v0"] =...
751
false
true
0
9
198
251
131
120
null
null
thasenpusch/scheme
parser.hs
isc
lexSpecialSubsequent :: Lexer Char lexSpecialSubsequent = lexExplicitSign <|> expectChar '.' <|> expectChar '@'
111
lexSpecialSubsequent :: Lexer Char lexSpecialSubsequent = lexExplicitSign <|> expectChar '.' <|> expectChar '@'
111
lexSpecialSubsequent = lexExplicitSign <|> expectChar '.' <|> expectChar '@'
76
false
true
3
6
12
36
16
20
null
null
lukexi/ghc-7.8-arm64
compiler/cmm/CmmOpt.hs
bsd-3-clause
cmmMachOpFoldM _ (MO_Sub _) [CmmRegOff reg off, CmmLit (CmmInt n rep)] = Just $ cmmRegOff reg (off - fromIntegral (narrowS rep n))
132
cmmMachOpFoldM _ (MO_Sub _) [CmmRegOff reg off, CmmLit (CmmInt n rep)] = Just $ cmmRegOff reg (off - fromIntegral (narrowS rep n))
132
cmmMachOpFoldM _ (MO_Sub _) [CmmRegOff reg off, CmmLit (CmmInt n rep)] = Just $ cmmRegOff reg (off - fromIntegral (narrowS rep n))
132
false
false
0
11
23
68
33
35
null
null
bkoropoff/Idris-dev
src/Idris/IdeMode.hs
bsd-3-clause
maybeProps ((n, Nothing):ps) = maybeProps ps
44
maybeProps ((n, Nothing):ps) = maybeProps ps
44
maybeProps ((n, Nothing):ps) = maybeProps ps
44
false
false
0
8
5
25
13
12
null
null
todays-mitsui/discussion
test/UnitConverter.hs
mit
z = Var "z"
11
z = Var "z"
11
z = Var "z"
11
false
false
1
5
3
13
4
9
null
null
JackTheEngineer/Drone
scripts/SendBytes.hs
gpl-3.0
bangSerPort serport = do BB.hPutBuilder serport genBs threadDelay (20*1000) --
83
bangSerPort serport = do BB.hPutBuilder serport genBs threadDelay (20*1000) --
83
bangSerPort serport = do BB.hPutBuilder serport genBs threadDelay (20*1000) --
83
false
false
0
9
14
33
15
18
null
null
ExNexu/Idris-dev
src/Idris/ParseHelpers.hs
bsd-3-clause
{- * Layout helpers -} -- | Push indentation to stack pushIndent :: IdrisParser () pushIndent = do pos <- position ist <- get put (ist { indent_stack = (fromIntegral (column pos) + 1) : indent_stack ist }) -- | Pops indentation from stack
272
pushIndent :: IdrisParser () pushIndent = do pos <- position ist <- get put (ist { indent_stack = (fromIntegral (column pos) + 1) : indent_stack ist }) -- | Pops indentation from stack
217
pushIndent = do pos <- position ist <- get put (ist { indent_stack = (fromIntegral (column pos) + 1) : indent_stack ist }) -- | Pops indentation from stack
188
true
true
1
17
77
77
37
40
null
null
GaloisInc/halvm-ghc
compiler/types/Type.hs
bsd-3-clause
-- | Like mkForAllTys, but assumes all variables are dependent and specified, -- a common case mkSpecForAllTys :: [TyVar] -> Type -> Type mkSpecForAllTys tvs = ASSERT( all isTyVar tvs ) mkForAllTys (map (flip Named Specified) tvs)
252
mkSpecForAllTys :: [TyVar] -> Type -> Type mkSpecForAllTys tvs = ASSERT( all isTyVar tvs ) mkForAllTys (map (flip Named Specified) tvs)
157
mkSpecForAllTys tvs = ASSERT( all isTyVar tvs ) mkForAllTys (map (flip Named Specified) tvs)
114
true
true
0
9
58
58
30
28
null
null
david-caro/shellcheck
ShellCheck/Analytics.hs
gpl-3.0
prop_checkUnused28= verifyNotTree checkUnusedAssignments "var=3; [[ var -eq 3 ]]"
81
prop_checkUnused28= verifyNotTree checkUnusedAssignments "var=3; [[ var -eq 3 ]]"
81
prop_checkUnused28= verifyNotTree checkUnusedAssignments "var=3; [[ var -eq 3 ]]"
81
false
false
0
5
8
11
5
6
null
null
schell/odin
odin-engine/src/Odin/Engine/GUI/TextInput/Internal.hs
mit
freeTextInput :: TextInput x -> IO () freeTextInput txt = do let TextInputRndrs{..} = txtnRndrs txt rs = [txtnRndrsUp,txtnRndrsOver,txtnRndrsDown,txtnRndrsEdit] forM_ rs fst
183
freeTextInput :: TextInput x -> IO () freeTextInput txt = do let TextInputRndrs{..} = txtnRndrs txt rs = [txtnRndrsUp,txtnRndrsOver,txtnRndrsDown,txtnRndrsEdit] forM_ rs fst
183
freeTextInput txt = do let TextInputRndrs{..} = txtnRndrs txt rs = [txtnRndrsUp,txtnRndrsOver,txtnRndrsDown,txtnRndrsEdit] forM_ rs fst
145
false
true
0
11
31
70
34
36
null
null
oldmanmike/ghc
compiler/nativeGen/X86/CodeGen.hs
bsd-3-clause
iselExpr64 (CmmMachOp (MO_Sub _) [e1,e2]) = do ChildCode64 code1 r1lo <- iselExpr64 e1 ChildCode64 code2 r2lo <- iselExpr64 e2 (rlo,rhi) <- getNewRegPairNat II32 let r1hi = getHiVRegFromLo r1lo r2hi = getHiVRegFromLo r2lo code = code1 `appOL` code2 `appOL` ...
575
iselExpr64 (CmmMachOp (MO_Sub _) [e1,e2]) = do ChildCode64 code1 r1lo <- iselExpr64 e1 ChildCode64 code2 r2lo <- iselExpr64 e2 (rlo,rhi) <- getNewRegPairNat II32 let r1hi = getHiVRegFromLo r1lo r2hi = getHiVRegFromLo r2lo code = code1 `appOL` code2 `appOL` ...
575
iselExpr64 (CmmMachOp (MO_Sub _) [e1,e2]) = do ChildCode64 code1 r1lo <- iselExpr64 e1 ChildCode64 code2 r2lo <- iselExpr64 e2 (rlo,rhi) <- getNewRegPairNat II32 let r1hi = getHiVRegFromLo r1lo r2hi = getHiVRegFromLo r2lo code = code1 `appOL` code2 `appOL` ...
575
false
false
0
15
209
218
106
112
null
null
CarstenKoenig/Holidays2013
Mandelbrot/Mandelbrot.hs
unlicense
createImageParallel :: ViewWindow -> Steps -> PictureSize -> String -> IO() createImageParallel view maxSteps resolution imagePath = do let image = mandelbrotParallel maxSteps view resolution writePng imagePath image
220
createImageParallel :: ViewWindow -> Steps -> PictureSize -> String -> IO() createImageParallel view maxSteps resolution imagePath = do let image = mandelbrotParallel maxSteps view resolution writePng imagePath image
220
createImageParallel view maxSteps resolution imagePath = do let image = mandelbrotParallel maxSteps view resolution writePng imagePath image
144
false
true
0
10
31
65
30
35
null
null
sgillespie/ghc
compiler/main/HscMain.hs
bsd-3-clause
hscImport :: HscEnv -> String -> IO (ImportDecl RdrName) hscImport hsc_env str = runInteractiveHsc hsc_env $ do (L _ (HsModule{hsmodImports=is})) <- hscParseThing parseModule str case is of [L _ i] -> return i _ -> liftIO $ throwOneError $ mkPlainErrMsg (hsc_dflags hsc_en...
445
hscImport :: HscEnv -> String -> IO (ImportDecl RdrName) hscImport hsc_env str = runInteractiveHsc hsc_env $ do (L _ (HsModule{hsmodImports=is})) <- hscParseThing parseModule str case is of [L _ i] -> return i _ -> liftIO $ throwOneError $ mkPlainErrMsg (hsc_dflags hsc_en...
445
hscImport hsc_env str = runInteractiveHsc hsc_env $ do (L _ (HsModule{hsmodImports=is})) <- hscParseThing parseModule str case is of [L _ i] -> return i _ -> liftIO $ throwOneError $ mkPlainErrMsg (hsc_dflags hsc_env) noSrcSpan $ text "parse error in ...
388
false
true
0
15
128
129
62
67
null
null
jgm/aws
Aws/S3/Model.hs
bsd-3-clause
parseStorageClass :: F.Failure XmlException m => T.Text -> m StorageClass parseStorageClass "STANDARD" = return Standard
130
parseStorageClass :: F.Failure XmlException m => T.Text -> m StorageClass parseStorageClass "STANDARD" = return Standard
130
parseStorageClass "STANDARD" = return Standard
56
false
true
0
7
24
37
17
20
null
null
mjansen/tcp-analyse
TCPOptions.hs
mit
tcpOptionEND = 0
20
tcpOptionEND = 0
20
tcpOptionEND = 0
20
false
false
0
4
6
6
3
3
null
null
sdiehl/ghc
hadrian/src/Base.hs
bsd-3-clause
-- TODO: Change @mk/config.h@ to @shake-build/cfg/config.h@. -- | Path to the generated @mk/config.h@ file. configH :: FilePath configH = "mk/config.h"
151
configH :: FilePath configH = "mk/config.h"
43
configH = "mk/config.h"
23
true
true
0
4
19
13
8
5
null
null
forsyde/forsyde-atom
src/ForSyDe/Atom/MoC/CT/Lib.hs
bsd-3-clause
stated42 ns i = MoC.stated42 ns (unit2 i)
41
stated42 ns i = MoC.stated42 ns (unit2 i)
41
stated42 ns i = MoC.stated42 ns (unit2 i)
41
false
false
1
7
7
29
11
18
null
null
andre-artus/handbook-of-practical-logic-and-automated-reasoning-haskell
src/ATP/FormulaSyn.hs
gpl-3.0
form :: QuasiQuoter form = QuasiQuoter quoteExpF quotePatF
58
form :: QuasiQuoter form = QuasiQuoter quoteExpF quotePatF
58
form = QuasiQuoter quoteExpF quotePatF
38
false
true
0
5
7
16
8
8
null
null
lukemaurer/sequent-core
src/Language/SequentCore/Annot.hs
bsd-3-clause
ppr_frame :: (OutputableBndr b, Outputable a) => AnnFrame' b a -> SDoc ppr_frame (AnnApp (_, AnnType ty)) = char '@' <+> ppr ty
129
ppr_frame :: (OutputableBndr b, Outputable a) => AnnFrame' b a -> SDoc ppr_frame (AnnApp (_, AnnType ty)) = char '@' <+> ppr ty
129
ppr_frame (AnnApp (_, AnnType ty)) = char '@' <+> ppr ty
58
false
true
0
9
24
63
31
32
null
null
uuhan/Idris-dev
src/Idris/Reflection.hs
bsd-3-clause
reflectErr (CantIntroduce t) = raw_apply (Var $ reflErrName "CantIntroduce") [reflect t]
88
reflectErr (CantIntroduce t) = raw_apply (Var $ reflErrName "CantIntroduce") [reflect t]
88
reflectErr (CantIntroduce t) = raw_apply (Var $ reflErrName "CantIntroduce") [reflect t]
88
false
false
0
8
10
36
17
19
null
null
fmapfmapfmap/amazonka
amazonka-emr/test/Test/AWS/Gen/EMR.hs
mpl-2.0
testModifyInstanceGroupsResponse :: ModifyInstanceGroupsResponse -> TestTree testModifyInstanceGroupsResponse = res "ModifyInstanceGroupsResponse" "fixture/ModifyInstanceGroupsResponse.proto" eMR (Proxy :: Proxy ModifyInstanceGroups)
249
testModifyInstanceGroupsResponse :: ModifyInstanceGroupsResponse -> TestTree testModifyInstanceGroupsResponse = res "ModifyInstanceGroupsResponse" "fixture/ModifyInstanceGroupsResponse.proto" eMR (Proxy :: Proxy ModifyInstanceGroups)
249
testModifyInstanceGroupsResponse = res "ModifyInstanceGroupsResponse" "fixture/ModifyInstanceGroupsResponse.proto" eMR (Proxy :: Proxy ModifyInstanceGroups)
172
false
true
0
6
30
36
17
19
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/Functions/F31.hs
bsd-3-clause
ptr_glVertexAttribI4usvEXT :: FunPtr (GLuint -> Ptr GLushort -> IO ()) ptr_glVertexAttribI4usvEXT = unsafePerformIO $ getCommand "glVertexAttribI4usvEXT"
153
ptr_glVertexAttribI4usvEXT :: FunPtr (GLuint -> Ptr GLushort -> IO ()) ptr_glVertexAttribI4usvEXT = unsafePerformIO $ getCommand "glVertexAttribI4usvEXT"
153
ptr_glVertexAttribI4usvEXT = unsafePerformIO $ getCommand "glVertexAttribI4usvEXT"
82
false
true
0
10
15
40
19
21
null
null
iblumenfeld/saw-core
src/Verifier/SAW/Simulator/SBV.hs
bsd-3-clause
toWord (VVector vv) = symFromBits <$> traverse (fmap toBool . force) vv
71
toWord (VVector vv) = symFromBits <$> traverse (fmap toBool . force) vv
71
toWord (VVector vv) = symFromBits <$> traverse (fmap toBool . force) vv
71
false
false
0
9
11
34
16
18
null
null
QuickChick/Luck
luck/src/Core/Optimizations.hs
mit
rename _ _ (Lit x) = Lit x
26
rename _ _ (Lit x) = Lit x
26
rename _ _ (Lit x) = Lit x
26
false
false
0
7
7
22
10
12
null
null
AndreasVoellmy/nettle-openflow
src/Network/Data/OpenFlow/Port.hs
bsd-3-clause
isPhysicalPort :: Port -> Bool isPhysicalPort = isPhysicalPortID . portID
73
isPhysicalPort :: Port -> Bool isPhysicalPort = isPhysicalPortID . portID
73
isPhysicalPort = isPhysicalPortID . portID
42
false
true
0
5
9
19
10
9
null
null
zhiyuanshi/fcore
examples/case_studies/RedBlackTree.hs
bsd-2-clause
prop_makeBlack :: Property prop_makeBlack = --(redDescHaveBlackChildren t)&&(blackBalanced t) ==> forAll rbTree $ \ t -> collect (size t) $ redNodesHaveBlackChildren (makeBlack t) .&&. blackBalanced (makeBlack t)
239
prop_makeBlack :: Property prop_makeBlack = --(redDescHaveBlackChildren t)&&(blackBalanced t) ==> forAll rbTree $ \ t -> collect (size t) $ redNodesHaveBlackChildren (makeBlack t) .&&. blackBalanced (makeBlack t)
239
prop_makeBlack = --(redDescHaveBlackChildren t)&&(blackBalanced t) ==> forAll rbTree $ \ t -> collect (size t) $ redNodesHaveBlackChildren (makeBlack t) .&&. blackBalanced (makeBlack t)
212
false
true
0
11
52
59
29
30
null
null
brendanhay/gogol
gogol-firestore/gen/Network/Google/FireStore/Types/Product.hs
mpl-2.0
-- | Creates a value of 'ListenResponse' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'lrTargetChange' -- -- * 'lrDocumentRemove' -- -- * 'lrDocumentChange' -- -- * 'lrFilter' -- -- * 'lrDocumentDelete' listenResponse :: ListenR...
528
listenResponse :: ListenResponse listenResponse = ListenResponse' { _lrTargetChange = Nothing , _lrDocumentRemove = Nothing , _lrDocumentChange = Nothing , _lrFilter = Nothing , _lrDocumentDelete = Nothing }
237
listenResponse = ListenResponse' { _lrTargetChange = Nothing , _lrDocumentRemove = Nothing , _lrDocumentChange = Nothing , _lrFilter = Nothing , _lrDocumentDelete = Nothing }
200
true
true
1
7
106
63
41
22
null
null
markflorisson/hpack
testrepo/bytestring-0.10.4.1/Data/ByteString/Builder/Prim/Binary.hs
bsd-3-clause
word32LE = fixedPrim 4 $ \w p -> do poke p (fromIntegral (w) :: Word8) poke (p `plusPtr` 1) (fromIntegral (shiftr_w32 w 8) :: Word8) poke (p `plusPtr` 2) (fromIntegral (shiftr_w32 w 16) :: Word8) poke (p `plusPtr` 3) (fromIntegral (shiftr_w32 w 24) :: Word8) #else word32LE =...
479
word32LE = fixedPrim 4 $ \w p -> do poke p (fromIntegral (w) :: Word8) poke (p `plusPtr` 1) (fromIntegral (shiftr_w32 w 8) :: Word8) poke (p `plusPtr` 2) (fromIntegral (shiftr_w32 w 16) :: Word8) poke (p `plusPtr` 3) (fromIntegral (shiftr_w32 w 24) :: Word8) #else word32LE =...
479
word32LE = fixedPrim 4 $ \w p -> do poke p (fromIntegral (w) :: Word8) poke (p `plusPtr` 1) (fromIntegral (shiftr_w32 w 8) :: Word8) poke (p `plusPtr` 2) (fromIntegral (shiftr_w32 w 16) :: Word8) poke (p `plusPtr` 3) (fromIntegral (shiftr_w32 w 24) :: Word8) #else word32LE =...
479
false
false
0
13
124
147
79
68
null
null
ecaustin/haskhol-deductive
src/HaskHOL/Lib/Theorems.hs
bsd-2-clause
thmRIGHT_AND_FORALL :: TheoremsCtxt thry => HOL cls thry HOLThm thmRIGHT_AND_FORALL = cacheProof "thmRIGHT_AND_FORALL" ctxtTheorems $ prove [txt| !P Q. P /\ (!x:A. Q x) <=> (!x. P /\ Q x) |] tacITAUT
203
thmRIGHT_AND_FORALL :: TheoremsCtxt thry => HOL cls thry HOLThm thmRIGHT_AND_FORALL = cacheProof "thmRIGHT_AND_FORALL" ctxtTheorems $ prove [txt| !P Q. P /\ (!x:A. Q x) <=> (!x. P /\ Q x) |] tacITAUT
203
thmRIGHT_AND_FORALL = cacheProof "thmRIGHT_AND_FORALL" ctxtTheorems $ prove [txt| !P Q. P /\ (!x:A. Q x) <=> (!x. P /\ Q x) |] tacITAUT
139
false
true
0
6
35
43
22
21
null
null
conal/hermit
src/HERMIT/Lemma.hs
bsd-2-clause
clauseSyntaxEq _ _ = False
55
clauseSyntaxEq _ _ = False
55
clauseSyntaxEq _ _ = False
55
false
false
1
5
33
12
5
7
null
null
Miguel-Fontes/hs-file-watcher
test/Help/Tests.hs
mit
actionsList :: [Option] actionsList = [Extended ["--p", "--print"] "Imprime o texto indicado quando mudanças forem identificadas. Ex: --p \"Alterações!\"" ,Extended ["--pc", "--print-changed"] "Exibe lista de arquivos que sofreram alterações no console. Ex...
561
actionsList :: [Option] actionsList = [Extended ["--p", "--print"] "Imprime o texto indicado quando mudanças forem identificadas. Ex: --p \"Alterações!\"" ,Extended ["--pc", "--print-changed"] "Exibe lista de arquivos que sofreram alterações no console. Ex...
561
actionsList = [Extended ["--p", "--print"] "Imprime o texto indicado quando mudanças forem identificadas. Ex: --p \"Alterações!\"" ,Extended ["--pc", "--print-changed"] "Exibe lista de arquivos que sofreram alterações no console. Ex: --pc" ,E...
537
false
true
0
8
164
63
33
30
null
null
ComputationWithBoundedResources/ara-inference
doc/tpdb_trs/Haskell/basic_haskell/GT_6.hs
mit
primCmpInt (Neg Zero) (Neg Zero) = EQ
37
primCmpInt (Neg Zero) (Neg Zero) = EQ
37
primCmpInt (Neg Zero) (Neg Zero) = EQ
37
false
false
0
7
6
23
11
12
null
null
Gabriel439/Haskell-Pipes-Parse-Library
src/Pipes/Parse.hs
bsd-3-clause
{-| Draw one element from the underlying 'Producer', returning 'Nothing' if the 'Producer' is empty -} draw :: Monad m => Parser a m (Maybe a) draw = do p <- S.get x <- lift (next p) case x of Left r -> do S.put (return r) return Nothing Right (a, p') -> do...
370
draw :: Monad m => Parser a m (Maybe a) draw = do p <- S.get x <- lift (next p) case x of Left r -> do S.put (return r) return Nothing Right (a, p') -> do S.put p' return (Just a)
263
draw = do p <- S.get x <- lift (next p) case x of Left r -> do S.put (return r) return Nothing Right (a, p') -> do S.put p' return (Just a)
223
true
true
0
14
146
133
59
74
null
null
gnn/Hets
OWL2/Keywords.hs
gpl-2.0
maxLengthS :: String maxLengthS = "maxLength"
45
maxLengthS :: String maxLengthS = "maxLength"
45
maxLengthS = "maxLength"
24
false
true
0
6
5
18
7
11
null
null
kcsmnt0/demesne
src/Parse.hs
bsd-3-clause
parsePrimFun :: Parser Expr parsePrimFun = do v <- parseVar spaces >> char '(' >> spaces args <- sepBy1 parseExpr (char ',' >> spaces) char ')' case (v, args) of ("insert", [l, r]) -> return PrimApp { spelling = "insert" , paramTypes = [INT, DOM] , returnType = DOM , op = opIns ...
1,404
parsePrimFun :: Parser Expr parsePrimFun = do v <- parseVar spaces >> char '(' >> spaces args <- sepBy1 parseExpr (char ',' >> spaces) char ')' case (v, args) of ("insert", [l, r]) -> return PrimApp { spelling = "insert" , paramTypes = [INT, DOM] , returnType = DOM , op = opIns ...
1,404
parsePrimFun = do v <- parseVar spaces >> char '(' >> spaces args <- sepBy1 parseExpr (char ',' >> spaces) char ')' case (v, args) of ("insert", [l, r]) -> return PrimApp { spelling = "insert" , paramTypes = [INT, DOM] , returnType = DOM , op = opIns , mk = mkIns , args...
1,376
false
true
1
14
528
515
309
206
null
null
robinp/haskell-indexer
haskell-indexer-backend-ghc/testdata/typelink/LetSig.hs
apache-2.0
foo = let x :: a -> a x = undefined in x
56
foo = let x :: a -> a x = undefined in x
56
foo = let x :: a -> a x = undefined in x
56
false
false
0
9
28
26
13
13
null
null
verement/etamoo
src/etamoo.hs
bsd-3-clause
main :: IO () main = parseArgs >>= run
38
main :: IO () main = parseArgs >>= run
38
main = parseArgs >>= run
24
false
true
2
7
8
28
12
16
null
null
ezyang/ghc
compiler/nativeGen/PPC/CodeGen.hs
bsd-3-clause
getAmode DS (CmmMachOp (MO_Sub W64) [x, CmmLit (CmmInt i _)]) | Just off <- makeImmediate W64 True (-i) = do (reg, code) <- getSomeReg x (reg', off', code') <- if i `mod` 4 == 0 then do return (reg, off, code) else do ...
530
getAmode DS (CmmMachOp (MO_Sub W64) [x, CmmLit (CmmInt i _)]) | Just off <- makeImmediate W64 True (-i) = do (reg, code) <- getSomeReg x (reg', off', code') <- if i `mod` 4 == 0 then do return (reg, off, code) else do ...
530
getAmode DS (CmmMachOp (MO_Sub W64) [x, CmmLit (CmmInt i _)]) | Just off <- makeImmediate W64 True (-i) = do (reg, code) <- getSomeReg x (reg', off', code') <- if i `mod` 4 == 0 then do return (reg, off, code) else do ...
530
false
false
0
17
245
203
101
102
null
null
diagrams/diagrams-contrib
src/Diagrams/Color/XKCD.hs
bsd-3-clause
greenishGrey = fromJust $ readHexColor "#96ae8d"
57
greenishGrey = fromJust $ readHexColor "#96ae8d"
57
greenishGrey = fromJust $ readHexColor "#96ae8d"
57
false
false
0
6
14
13
6
7
null
null
HIPERFIT/futhark
src/Futhark/Optimise/Simplify/Rules/Simple.hs
isc
simplifyReshapeReshape :: SimpleRule rep simplifyReshapeReshape defOf _ (Reshape newshape v) | Just (BasicOp (Reshape oldshape v2), v_cs) <- defOf v = Just (Reshape (fuseReshape oldshape newshape) v2, v_cs)
212
simplifyReshapeReshape :: SimpleRule rep simplifyReshapeReshape defOf _ (Reshape newshape v) | Just (BasicOp (Reshape oldshape v2), v_cs) <- defOf v = Just (Reshape (fuseReshape oldshape newshape) v2, v_cs)
212
simplifyReshapeReshape defOf _ (Reshape newshape v) | Just (BasicOp (Reshape oldshape v2), v_cs) <- defOf v = Just (Reshape (fuseReshape oldshape newshape) v2, v_cs)
171
false
true
0
13
33
84
40
44
null
null
gnn/Hets
CSL/InteractiveTests.hs
gpl-2.0
sendFormula :: CInt -> CInt -> CInt -> ML () sendFormula i j k = do mlPutFunction "EvaluatePacket" 1 mlPutFunction "Plus" 2 mlPutFunction "Times" 2 mlPutInteger i mlPutInteger j mlPutFunction "Times" 3 mlPutInteger k mlPutInteger k mlPutSymbol "xsymb" mlEndPacket userMessageLn "Sent" {- -----...
474
sendFormula :: CInt -> CInt -> CInt -> ML () sendFormula i j k = do mlPutFunction "EvaluatePacket" 1 mlPutFunction "Plus" 2 mlPutFunction "Times" 2 mlPutInteger i mlPutInteger j mlPutFunction "Times" 3 mlPutInteger k mlPutInteger k mlPutSymbol "xsymb" mlEndPacket userMessageLn "Sent" {- -----...
474
sendFormula i j k = do mlPutFunction "EvaluatePacket" 1 mlPutFunction "Plus" 2 mlPutFunction "Times" 2 mlPutInteger i mlPutInteger j mlPutFunction "Times" 3 mlPutInteger k mlPutInteger k mlPutSymbol "xsymb" mlEndPacket userMessageLn "Sent" {- --------------------------------------------------...
429
false
true
0
9
73
107
43
64
null
null
brendanhay/gogol
gogol-securitycenter/gen/Network/Google/Resource/SecurityCenter/Organizations/Sources/Create.hs
mpl-2.0
-- | Required. Resource name of the new source\'s parent. Its format should -- be \"organizations\/[organization_id]\". oscParent :: Lens' OrganizationsSourcesCreate Text oscParent = lens _oscParent (\ s a -> s{_oscParent = a})
229
oscParent :: Lens' OrganizationsSourcesCreate Text oscParent = lens _oscParent (\ s a -> s{_oscParent = a})
109
oscParent = lens _oscParent (\ s a -> s{_oscParent = a})
58
true
true
0
9
33
43
23
20
null
null
urbanslug/ghc
compiler/typecheck/TcArrows.hs
bsd-3-clause
tc_cmd env cmd@(HsCmdApp fun arg) (cmd_stk, res_ty) = addErrCtxt (cmdCtxt cmd) $ do { arg_ty <- newFlexiTyVarTy openTypeKind ; fun' <- tcCmd env fun (mkPairTy arg_ty cmd_stk, res_ty) ; arg' <- tcMonoExpr arg arg_ty ; return (HsCmdApp fun' arg') }
284
tc_cmd env cmd@(HsCmdApp fun arg) (cmd_stk, res_ty) = addErrCtxt (cmdCtxt cmd) $ do { arg_ty <- newFlexiTyVarTy openTypeKind ; fun' <- tcCmd env fun (mkPairTy arg_ty cmd_stk, res_ty) ; arg' <- tcMonoExpr arg arg_ty ; return (HsCmdApp fun' arg') }
284
tc_cmd env cmd@(HsCmdApp fun arg) (cmd_stk, res_ty) = addErrCtxt (cmdCtxt cmd) $ do { arg_ty <- newFlexiTyVarTy openTypeKind ; fun' <- tcCmd env fun (mkPairTy arg_ty cmd_stk, res_ty) ; arg' <- tcMonoExpr arg arg_ty ; return (HsCmdApp fun' arg') }
284
false
false
0
11
77
109
54
55
null
null
wavewave/gnuplot
src/Graphics/Gnuplot/ColorSpecification.hs
bsd-3-clause
lightRed = makeColor "light-red" 0xf03232 240 50 50
71
lightRed = makeColor "light-red" 0xf03232 240 50 50
71
lightRed = makeColor "light-red" 0xf03232 240 50 50
71
false
false
0
5
27
17
8
9
null
null
ghc-android/ghc
compiler/typecheck/FamInst.hs
bsd-3-clause
makeFamInstsErr :: SDoc -> [FamInst] -> (SDoc, SrcSpan) makeFamInstsErr herald insts = ASSERT( not (null insts) ) ( hang herald 2 (vcat [ pprCoAxBranchHdr (famInstAxiom fi) 0 | fi <- sorted ]) , srcSpan ) where getSpan = getSrcLoc . famInstAxiom sorted = sortWith getSpan inst...
583
makeFamInstsErr :: SDoc -> [FamInst] -> (SDoc, SrcSpan) makeFamInstsErr herald insts = ASSERT( not (null insts) ) ( hang herald 2 (vcat [ pprCoAxBranchHdr (famInstAxiom fi) 0 | fi <- sorted ]) , srcSpan ) where getSpan = getSrcLoc . famInstAxiom sorted = sortWith getSpan inst...
583
makeFamInstsErr herald insts = ASSERT( not (null insts) ) ( hang herald 2 (vcat [ pprCoAxBranchHdr (famInstAxiom fi) 0 | fi <- sorted ]) , srcSpan ) where getSpan = getSrcLoc . famInstAxiom sorted = sortWith getSpan insts fi1 = head sorted srcSpan = coAxBranchSpan (...
527
false
true
0
12
145
145
75
70
null
null
rolph-recto/liquid-fixpoint
src/Language/Fixpoint/Types/Sorts.hs
bsd-3-clause
boolFTyCon = TC $ dummyLoc "bool"
33
boolFTyCon = TC $ dummyLoc "bool"
33
boolFTyCon = TC $ dummyLoc "bool"
33
false
false
0
6
5
13
6
7
null
null
ctford/Idris-Elba-dev
src/IRTS/CodegenC.hs
bsd-3-clause
doOp v (LLt (ITFixed ty)) [x, y] = bitOp v "Lt" ty [x, y]
57
doOp v (LLt (ITFixed ty)) [x, y] = bitOp v "Lt" ty [x, y]
57
doOp v (LLt (ITFixed ty)) [x, y] = bitOp v "Lt" ty [x, y]
57
false
false
0
9
13
46
24
22
null
null
ku-fpg/kansas-amber
System/Hardware/Haskino/Compiler.hs
bsd-3-clause
compileProcedure :: ArduinoPrimitive a -> State CompileState a compileProcedure QueryFirmware = do _ <- compileShallowPrimitiveError "queryFirmware" return 0
165
compileProcedure :: ArduinoPrimitive a -> State CompileState a compileProcedure QueryFirmware = do _ <- compileShallowPrimitiveError "queryFirmware" return 0
165
compileProcedure QueryFirmware = do _ <- compileShallowPrimitiveError "queryFirmware" return 0
102
false
true
0
8
25
42
18
24
null
null
j3h/doc-review
src/Server.hs
bsd-3-clause
emptyServerConfig :: ServerConfig emptyServerConfig = ServerConfig { locale = "en_US" , interface = "0.0.0.0" , port = 8000 , hostname = "myserver" , accessLog = Just "access.log" , errorLog = Just "error.log" , compression = True , error...
833
emptyServerConfig :: ServerConfig emptyServerConfig = ServerConfig { locale = "en_US" , interface = "0.0.0.0" , port = 8000 , hostname = "myserver" , accessLog = Just "access.log" , errorLog = Just "error.log" , compression = True , error...
833
emptyServerConfig = ServerConfig { locale = "en_US" , interface = "0.0.0.0" , port = 8000 , hostname = "myserver" , accessLog = Just "access.log" , errorLog = Just "error.log" , compression = True , error500Handler = \e -> do let ...
799
false
true
0
15
265
167
80
87
null
null
aelve/hslibs
src/Guide/State.hs
bsd-3-clause
-- TODO: this doesn't need the item id, but then we have to be a bit cleverer -- and store a (TraitId -> ItemId) map in global state (and update it -- accordingly whenever anything happens, so perhaps let's not do it!) getTrait :: Uid Item -> Uid Trait -> Acid.Query GlobalState Trait getTrait itemId traitId = view (ite...
353
getTrait :: Uid Item -> Uid Trait -> Acid.Query GlobalState Trait getTrait itemId traitId = view (itemById itemId . traitById traitId)
134
getTrait itemId traitId = view (itemById itemId . traitById traitId)
68
true
true
0
8
62
56
27
29
null
null
sheganinans/plugins
src/System/Plugins/Parser.hs
lgpl-2.1
maybePrefixMatch (p:pat) (r:rest) | p == r = maybePrefixMatch pat rest | otherwise = Nothing
111
maybePrefixMatch (p:pat) (r:rest) | p == r = maybePrefixMatch pat rest | otherwise = Nothing
111
maybePrefixMatch (p:pat) (r:rest) | p == r = maybePrefixMatch pat rest | otherwise = Nothing
111
false
false
0
8
33
49
23
26
null
null
z0isch/reddit-dailyprogrammer
Challenge259/src/Main.hs
mit
isSet :: Tile -> Tile -> Tile -> Bool isSet t1 t2 t3 = t1 == t2 && t2 == t3
75
isSet :: Tile -> Tile -> Tile -> Bool isSet t1 t2 t3 = t1 == t2 && t2 == t3
75
isSet t1 t2 t3 = t1 == t2 && t2 == t3
37
false
true
2
9
20
50
23
27
null
null
alexander-at-github/eta
compiler/ETA/TypeCheck/TcTypeNats.hs
bsd-3-clause
axMul1R = mkAxiom1 "Mul1R" $ \t -> (t .*. num 1) === t
61
axMul1R = mkAxiom1 "Mul1R" $ \t -> (t .*. num 1) === t
61
axMul1R = mkAxiom1 "Mul1R" $ \t -> (t .*. num 1) === t
61
false
false
0
10
19
32
16
16
null
null
kfish/const-math-ghc-plugin
tests/Make.hs
bsd-3-clause
main = do testdir <- getDataFileName "tests" setCurrentDirectory testdir system "make && make clean"
112
main = do testdir <- getDataFileName "tests" setCurrentDirectory testdir system "make && make clean"
112
main = do testdir <- getDataFileName "tests" setCurrentDirectory testdir system "make && make clean"
112
false
false
0
8
25
28
11
17
null
null
DATx02-16-14/Hastings
test/Utils.hs
bsd-3-clause
prop_updateListElem_correctUpdate :: Int -> [Int] -> Property prop_updateListElem_correctUpdate element list = elem element list ==> length resultDiff == 1 && head resultDiff == updateFunction element where result = updateListElem updateFunction (updateListElemPredicate element) list resultDiff = r...
333
prop_updateListElem_correctUpdate :: Int -> [Int] -> Property prop_updateListElem_correctUpdate element list = elem element list ==> length resultDiff == 1 && head resultDiff == updateFunction element where result = updateListElem updateFunction (updateListElemPredicate element) list resultDiff = r...
333
prop_updateListElem_correctUpdate element list = elem element list ==> length resultDiff == 1 && head resultDiff == updateFunction element where result = updateListElem updateFunction (updateListElemPredicate element) list resultDiff = result \\ list
271
false
true
0
9
58
86
42
44
null
null
pascal-knodel/haskell-craft
Examples/· Errors/E27.hs
mit
f' :: Integer -> Integer f' i = i
34
f' :: Integer -> Integer f' i = i
34
f' i = i
9
false
true
0
7
9
24
10
14
null
null
spechub/Hets
SoftFOL/ParseTPTP.hs
gpl-2.0
pToken :: Parser String -> Parser Token pToken = liftM2 (\ p s -> Token s (Range [p])) getPos . (<< skipAll)
108
pToken :: Parser String -> Parser Token pToken = liftM2 (\ p s -> Token s (Range [p])) getPos . (<< skipAll)
108
pToken = liftM2 (\ p s -> Token s (Range [p])) getPos . (<< skipAll)
68
false
true
0
12
21
58
30
28
null
null
unisonweb/platform
parser-typechecker/src/Unison/Runtime/IOSource.hs
mit
consoleTextInvertId = constructorNamed consoleTextRef "ConsoleText.Invert"
74
consoleTextInvertId = constructorNamed consoleTextRef "ConsoleText.Invert"
74
consoleTextInvertId = constructorNamed consoleTextRef "ConsoleText.Invert"
74
false
false
0
5
4
11
5
6
null
null
andorp/grin
grin/src/Grin/Parse/TypeEnv.hs
bsd-3-clause
location :: Parser TypeEnvEntry location = Location <$> int <* op "->" <*> nodeSet
82
location :: Parser TypeEnvEntry location = Location <$> int <* op "->" <*> nodeSet
82
location = Location <$> int <* op "->" <*> nodeSet
50
false
true
1
7
13
33
14
19
null
null
oshyshko/adventofcode
src/Y15/D10.hs
bsd-3-clause
solve2 :: String -> Int solve2 = length . (L.!! 50) . iterate solve . head . lines
82
solve2 :: String -> Int solve2 = length . (L.!! 50) . iterate solve . head . lines
82
solve2 = length . (L.!! 50) . iterate solve . head . lines
58
false
true
0
9
17
40
21
19
null
null
jystic/dipper
src/Dipper/Pipeline.hs
bsd-3-clause
decodePathRows :: MonadThrow m => Map FilePath KVFormat -> Conduit B.ByteString m (Row FilePath) decodePathRows = decodeRows (T.unpack . T.decodeUtf8 <$> getLayout VarVInt)
172
decodePathRows :: MonadThrow m => Map FilePath KVFormat -> Conduit B.ByteString m (Row FilePath) decodePathRows = decodeRows (T.unpack . T.decodeUtf8 <$> getLayout VarVInt)
172
decodePathRows = decodeRows (T.unpack . T.decodeUtf8 <$> getLayout VarVInt)
75
false
true
0
9
22
63
30
33
null
null
walkie/CC-Minimal
test/all-tests.hs
bsd-3-clause
main = defaultMain $ testGroup "CC-Minimal" [ CC.LanguageTest.tests, CC.ObjectTest.tests, CC.ParserTest.tests ]
127
main = defaultMain $ testGroup "CC-Minimal" [ CC.LanguageTest.tests, CC.ObjectTest.tests, CC.ParserTest.tests ]
127
main = defaultMain $ testGroup "CC-Minimal" [ CC.LanguageTest.tests, CC.ObjectTest.tests, CC.ParserTest.tests ]
127
false
false
3
7
26
38
19
19
null
null
rueshyna/gogol
gogol-compute/gen/Network/Google/Compute/Types/Product.hs
mpl-2.0
hcrHealthCheck :: Lens' HealthCheckReference (Maybe Text) hcrHealthCheck = lens _hcrHealthCheck (\ s a -> s{_hcrHealthCheck = a})
137
hcrHealthCheck :: Lens' HealthCheckReference (Maybe Text) hcrHealthCheck = lens _hcrHealthCheck (\ s a -> s{_hcrHealthCheck = a})
137
hcrHealthCheck = lens _hcrHealthCheck (\ s a -> s{_hcrHealthCheck = a})
79
false
true
1
9
24
51
24
27
null
null