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
duboisf/ymrefiler
src/Data/Exif/Parser.hs
bsd-3-clause
parseIFDOffset :: Parser Word32 parseIFDOffset = do rawWord <- getW32le logWithPosition "parsed ifd0 offset" return $ rawWord - 8 {- - This is the parsing function that is used to actually parse the Exif tag - of an image file. We expect to receive a ByteString of said image as input. -}
298
parseIFDOffset :: Parser Word32 parseIFDOffset = do rawWord <- getW32le logWithPosition "parsed ifd0 offset" return $ rawWord - 8 {- - This is the parsing function that is used to actually parse the Exif tag - of an image file. We expect to receive a ByteString of said image as input. -}
298
parseIFDOffset = do rawWord <- getW32le logWithPosition "parsed ifd0 offset" return $ rawWord - 8 {- - This is the parsing function that is used to actually parse the Exif tag - of an image file. We expect to receive a ByteString of said image as input. -}
266
false
true
0
8
61
39
18
21
null
null
thoughtpolice/hs-nacl
src/Crypto/DH/Curve25519.hs
bsd-3-clause
curve25519 :: SecretKey Curve25519 -> PublicKey Curve25519 -> ByteString curve25519 (SecretKey sk) (PublicKey pk) = unsafePerformIO . SU.unsafeUseAsCString sk $ \psk -> SU.unsafeUseAsCString pk $ \ppk -> SI.create cryptoDhBYTES $ \out -> c_crypto_dh out psk ppk >> return ()
294
curve25519 :: SecretKey Curve25519 -> PublicKey Curve25519 -> ByteString curve25519 (SecretKey sk) (PublicKey pk) = unsafePerformIO . SU.unsafeUseAsCString sk $ \psk -> SU.unsafeUseAsCString pk $ \ppk -> SI.create cryptoDhBYTES $ \out -> c_crypto_dh out psk ppk >> return ()
294
curve25519 (SecretKey sk) (PublicKey pk) = unsafePerformIO . SU.unsafeUseAsCString sk $ \psk -> SU.unsafeUseAsCString pk $ \ppk -> SI.create cryptoDhBYTES $ \out -> c_crypto_dh out psk ppk >> return ()
221
false
true
0
13
58
104
50
54
null
null
tolysz/prepare-ghcjs
spec-lts8/cabal/Cabal/Distribution/Simple/Setup.hs
bsd-3-clause
defaultTestFlags :: TestFlags defaultTestFlags = TestFlags { testDistPref = NoFlag, testVerbosity = Flag normal, testHumanLog = toFlag $ toPathTemplate $ "$pkgid-$test-suite.log", testMachineLog = toFlag $ toPathTemplate $ "$pkgid.log", testShowDetails = toFlag Failures, testKeepTix ...
366
defaultTestFlags :: TestFlags defaultTestFlags = TestFlags { testDistPref = NoFlag, testVerbosity = Flag normal, testHumanLog = toFlag $ toPathTemplate $ "$pkgid-$test-suite.log", testMachineLog = toFlag $ toPathTemplate $ "$pkgid.log", testShowDetails = toFlag Failures, testKeepTix ...
366
defaultTestFlags = TestFlags { testDistPref = NoFlag, testVerbosity = Flag normal, testHumanLog = toFlag $ toPathTemplate $ "$pkgid-$test-suite.log", testMachineLog = toFlag $ toPathTemplate $ "$pkgid.log", testShowDetails = toFlag Failures, testKeepTix = toFlag False, testOpti...
336
false
true
0
8
87
82
47
35
null
null
arnizamani/OccamStar
Haskell.hs
gpl-2.0
-- Matches a Pattern (HsPat) with another Pattern matchPatPat :: HsPat -> HsPat -> Bool matchPatPat (HsPVar v) (HsPVar w) = v == w
130
matchPatPat :: HsPat -> HsPat -> Bool matchPatPat (HsPVar v) (HsPVar w) = v == w
80
matchPatPat (HsPVar v) (HsPVar w) = v == w
42
true
true
0
7
23
41
21
20
null
null
DavidAlphaFox/darcs
src/Darcs/Util/Text.hs
gpl-2.0
chompTrailingNewline s = if last s == '\n' then init s else s
61
chompTrailingNewline s = if last s == '\n' then init s else s
61
chompTrailingNewline s = if last s == '\n' then init s else s
61
false
false
0
7
12
27
13
14
null
null
kurnevsky/missile
src/Bot.hs
agpl-3.0
genMoveWithTime :: Bot -> Player -> Int -> IO Pos genMoveWithTime bot player time = do let strPlayer = botPlayer player botQuestion bot $ "gen_move_with_time " ++ strPlayer ++ " " ++ show time ("gen_move_with_time" : answerX : answerY : [answerPlayer]) <- botAnswer bot let intX = read answerX ...
481
genMoveWithTime :: Bot -> Player -> Int -> IO Pos genMoveWithTime bot player time = do let strPlayer = botPlayer player botQuestion bot $ "gen_move_with_time " ++ strPlayer ++ " " ++ show time ("gen_move_with_time" : answerX : answerY : [answerPlayer]) <- botAnswer bot let intX = read answerX ...
481
genMoveWithTime bot player time = do let strPlayer = botPlayer player botQuestion bot $ "gen_move_with_time " ++ strPlayer ++ " " ++ show time ("gen_move_with_time" : answerX : answerY : [answerPlayer]) <- botAnswer bot let intX = read answerX intY = read answerY if answerPlayer /= strPla...
431
false
true
0
13
118
166
78
88
null
null
kmate/HaRe
old/testing/merging/Guards1.hs
bsd-3-clause
g2 n (x:xs) | n == 0 = xs | otherwise = rs where rs = g2 (n-1) xs
100
g2 n (x:xs) | n == 0 = xs | otherwise = rs where rs = g2 (n-1) xs
100
g2 n (x:xs) | n == 0 = xs | otherwise = rs where rs = g2 (n-1) xs
100
false
false
0
8
53
61
28
33
null
null
hsyl20/ViperVM
haskus-system/src/lib/Haskus/System/Linux/Process.hs
bsd-3-clause
sysVFork :: MonadIO m => FlowT '[ErrorCode] m ProcessID sysVFork = do v <- checkErrorCode =<< liftIO (syscall_vfork) return (ProcessID (fromIntegral v)) -- | Yield the processor
184
sysVFork :: MonadIO m => FlowT '[ErrorCode] m ProcessID sysVFork = do v <- checkErrorCode =<< liftIO (syscall_vfork) return (ProcessID (fromIntegral v)) -- | Yield the processor
184
sysVFork = do v <- checkErrorCode =<< liftIO (syscall_vfork) return (ProcessID (fromIntegral v)) -- | Yield the processor
128
false
true
0
11
33
66
32
34
null
null
vikraman/ghc
compiler/main/DynFlags.hs
bsd-3-clause
wWarningFlags :: [FlagSpec WarningFlag] wWarningFlags = map snd wWarningFlagsDeps
81
wWarningFlags :: [FlagSpec WarningFlag] wWarningFlags = map snd wWarningFlagsDeps
81
wWarningFlags = map snd wWarningFlagsDeps
41
false
true
0
6
8
22
11
11
null
null
ahodgen/archer-calc
src/Parser.hs
bsd-2-clause
top :: Parser Binding top = do x <- decl optional semi return x
75
top :: Parser Binding top = do x <- decl optional semi return x
75
top = do x <- decl optional semi return x
53
false
true
1
8
25
37
14
23
null
null
hsiegel/incremental-sat-solver
Funsat.hs
bsd-3-clause
getPaths _ = error "Usage: benchmark CNFDIR [count]"
58
getPaths _ = error "Usage: benchmark CNFDIR [count]"
58
getPaths _ = error "Usage: benchmark CNFDIR [count]"
58
false
false
0
5
13
12
5
7
null
null
thiry/DComp
src/Graph.hs
gpl-2.0
match3 :: (Int,Int,Int)->(Int,Int,Int)->Context -> [Context] match3 (p1,p2,p3) (v1,v2,v3) m = case match1 p1 v1 m of [] -> [] [r2] -> case match1 p2 v2 r2 of [] -> [] [r3] -> case match1 p3 v3 r3 of [] -> [] r -> r
286
match3 :: (Int,Int,Int)->(Int,Int,Int)->Context -> [Context] match3 (p1,p2,p3) (v1,v2,v3) m = case match1 p1 v1 m of [] -> [] [r2] -> case match1 p2 v2 r2 of [] -> [] [r3] -> case match1 p3 v3 r3 of [] -> [] r -> r
286
match3 (p1,p2,p3) (v1,v2,v3) m = case match1 p1 v1 m of [] -> [] [r2] -> case match1 p2 v2 r2 of [] -> [] [r3] -> case match1 p3 v3 r3 of [] -> [] r -> r
225
false
true
0
14
115
162
85
77
null
null
BartMassey/hseq
Roman.hs
mit
toRoman n = R.toRoman n
23
toRoman n = R.toRoman n
23
toRoman n = R.toRoman n
23
false
false
0
6
4
14
6
8
null
null
MarcosPividori/GSoC-Communicating-with-mobile-devices
push-notify/Network/PushNotify/Mpns/Constants.hs
mit
cSubActive :: Text cSubActive = "Active"
40
cSubActive :: Text cSubActive = "Active"
40
cSubActive = "Active"
21
false
true
0
4
5
11
6
5
null
null
wavewave/HsStdHep
lib/HEP/Parser/StdHep/TypeCast.hs
bsd-2-clause
xform0 :: (Castable a ca) => (IO ca) -> IO a xform0 f = f >>= return . uncast
77
xform0 :: (Castable a ca) => (IO ca) -> IO a xform0 f = f >>= return . uncast
77
xform0 f = f >>= return . uncast
32
false
true
0
8
18
46
23
23
null
null
jkr/pandoc-citeproc
src/Text/CSL/Proc/Disamb.hs
bsd-3-clause
hasIfDis :: IfThen -> [Bool] hasIfDis (IfThen (Condition {disambiguation = (_:_)}) _ _) = [True]
96
hasIfDis :: IfThen -> [Bool] hasIfDis (IfThen (Condition {disambiguation = (_:_)}) _ _) = [True]
96
hasIfDis (IfThen (Condition {disambiguation = (_:_)}) _ _) = [True]
67
false
true
0
13
14
53
29
24
null
null
tjakway/ghcjvm
compiler/types/Coercion.hs
bsd-3-clause
seqCo (KindCo co) = seqCo co
42
seqCo (KindCo co) = seqCo co
42
seqCo (KindCo co) = seqCo co
42
false
false
0
6
19
19
8
11
null
null
blamario/grampa
rank2classes/src/Rank2/TH.hs
bsd-2-clause
genLiftA2Field :: Bool -> Q Exp -> Type -> Q Exp -> Q Exp -> (Q Exp -> Q Exp) -> Q Exp genLiftA2Field unsafely fun fieldType field1Access field2Access wrap = do Just (Deriving _ typeVar) <- getQ case fieldType of AppT ty _ | ty == VarT typeVar -> [| $(wrap fun) $field1Access $field2Access |] AppT _ ty |...
838
genLiftA2Field :: Bool -> Q Exp -> Type -> Q Exp -> Q Exp -> (Q Exp -> Q Exp) -> Q Exp genLiftA2Field unsafely fun fieldType field1Access field2Access wrap = do Just (Deriving _ typeVar) <- getQ case fieldType of AppT ty _ | ty == VarT typeVar -> [| $(wrap fun) $field1Access $field2Access |] AppT _ ty |...
838
genLiftA2Field unsafely fun fieldType field1Access field2Access wrap = do Just (Deriving _ typeVar) <- getQ case fieldType of AppT ty _ | ty == VarT typeVar -> [| $(wrap fun) $field1Access $field2Access |] AppT _ ty | ty == VarT typeVar -> [| $(wrap $ appE (varE 'Rank2.liftA2) fun) $field1Access $field2...
751
false
true
0
16
187
286
132
154
null
null
utilForever/ProgrammingPractice
Solutions/MoNaDDu/Game Shop/3/Part3.hs
mit
toString (Weapon name description weight value damage) = baseInfo (Item name description weight value) ++ "Damage = " ++ show damage ++ "\n"
202
toString (Weapon name description weight value damage) = baseInfo (Item name description weight value) ++ "Damage = " ++ show damage ++ "\n"
202
toString (Weapon name description weight value damage) = baseInfo (Item name description weight value) ++ "Damage = " ++ show damage ++ "\n"
202
false
false
0
10
84
53
25
28
null
null
facebookincubator/duckling
Duckling/Engine.hs
bsd-3-clause
-- | Handle a regex match anywhere in the text lookupRegexAnywhere :: Document -> Lang -> PCRE.Regex -> Duckling [Node] lookupRegexAnywhere doc lang regex = lookupRegexCommon doc lang regex 0 Regex.matchAll
206
lookupRegexAnywhere :: Document -> Lang -> PCRE.Regex -> Duckling [Node] lookupRegexAnywhere doc lang regex = lookupRegexCommon doc lang regex 0 Regex.matchAll
159
lookupRegexAnywhere doc lang regex = lookupRegexCommon doc lang regex 0 Regex.matchAll
86
true
true
0
9
30
52
26
26
null
null
forste/haReFork
tools/base/lib/Monads/ExceptM.hs
bsd-3-clause
{- not used removeExcept :: ExceptM x a -> Either x a removeExcept = id mapEither f g = either (Left . f) (Right . g) seqEither x = either (fmap Left) (fmap Right) x fromEither f (Right x)= x fromEither f (Left x) = f x unLeft (Left x) = x unLeft _ = error "unLe...
359
unRight (ExceptM (Right x)) = x
31
unRight (ExceptM (Right x)) = x
31
true
false
0
8
122
23
11
12
null
null
uuhan/Idris-dev
src/Idris/Core/Elaborate.hs
bsd-3-clause
get_type_val :: Raw -> Elab' aux (Term, Type) get_type_val tm = do ctxt <- get_context env <- get_env (val, ty) <- lift $ check ctxt env tm return $! (finalise val, finalise ty) -- | get holes we've deferred for later definition
292
get_type_val :: Raw -> Elab' aux (Term, Type) get_type_val tm = do ctxt <- get_context env <- get_env (val, ty) <- lift $ check ctxt env tm return $! (finalise val, finalise ty) -- | get holes we've deferred for later definition
292
get_type_val tm = do ctxt <- get_context env <- get_env (val, ty) <- lift $ check ctxt env tm return $! (finalise val, finalise ty) -- | get holes we've deferred for later definition
246
false
true
0
10
105
92
44
48
null
null
enolan/Idris-dev
src/Idris/AbsSyntaxTree.hs
bsd-3-clause
mapPTermFC f g (PRunElab fc tm ns) = PRunElab (f fc) (mapPTermFC f g tm) ns
86
mapPTermFC f g (PRunElab fc tm ns) = PRunElab (f fc) (mapPTermFC f g tm) ns
86
mapPTermFC f g (PRunElab fc tm ns) = PRunElab (f fc) (mapPTermFC f g tm) ns
86
false
false
0
7
26
49
22
27
null
null
yuga/ghc-mod
Language/Haskell/GhcMod/Browse.hs
bsd-3-clause
showThing' :: DynFlags -> GapThing -> Maybe String showThing' dflag (GtA a) = Just $ formatType dflag a
103
showThing' :: DynFlags -> GapThing -> Maybe String showThing' dflag (GtA a) = Just $ formatType dflag a
103
showThing' dflag (GtA a) = Just $ formatType dflag a
52
false
true
0
7
17
46
21
25
null
null
rueshyna/gogol
gogol-adexchange-buyer/gen/Network/Google/AdExchangeBuyer/Types/Product.hs
mpl-2.0
-- | Requests containing any of these mobile carrier ids will match. Values -- are from mobile-carriers.csv in the downloadable files section. pcMobileCarriers :: Lens' PretargetingConfig [Int64] pcMobileCarriers = lens _pcMobileCarriers (\ s a -> s{_pcMobileCarriers = a}) . _Default . _Coerce
314
pcMobileCarriers :: Lens' PretargetingConfig [Int64] pcMobileCarriers = lens _pcMobileCarriers (\ s a -> s{_pcMobileCarriers = a}) . _Default . _Coerce
171
pcMobileCarriers = lens _pcMobileCarriers (\ s a -> s{_pcMobileCarriers = a}) . _Default . _Coerce
118
true
true
3
8
61
59
29
30
null
null
bgamari/pandoc
src/Text/Pandoc/Writers/MediaWiki.hs
gpl-2.0
inlineToMediaWiki (LineBreak) = return "<br />"
47
inlineToMediaWiki (LineBreak) = return "<br />"
47
inlineToMediaWiki (LineBreak) = return "<br />"
47
false
false
0
5
5
16
7
9
null
null
vikraman/ghc
compiler/parser/ApiAnnotation.hs
bsd-3-clause
unicodeAnn AnnLarrowtail = AnnLarrowtailU
41
unicodeAnn AnnLarrowtail = AnnLarrowtailU
41
unicodeAnn AnnLarrowtail = AnnLarrowtailU
41
false
false
0
5
3
9
4
5
null
null
zjhmale/Ntha
src/Ntha/Type/Type.hs
bsd-3-clause
stringOfType subrule (TCon name types dataType) = do dataTypeStr <- stringOfType subrule dataType case types of [] -> return dataTypeStr _ -> do typesStr <- (intercalate ", ") <$> mapM (stringOfType subrule) types return $ "(" ++ name ++ " " ++ typesStr ++ " ⇒ " ++ dataTypeStr ++ ")"
308
stringOfType subrule (TCon name types dataType) = do dataTypeStr <- stringOfType subrule dataType case types of [] -> return dataTypeStr _ -> do typesStr <- (intercalate ", ") <$> mapM (stringOfType subrule) types return $ "(" ++ name ++ " " ++ typesStr ++ " ⇒ " ++ dataTypeStr ++ ")"
308
stringOfType subrule (TCon name types dataType) = do dataTypeStr <- stringOfType subrule dataType case types of [] -> return dataTypeStr _ -> do typesStr <- (intercalate ", ") <$> mapM (stringOfType subrule) types return $ "(" ++ name ++ " " ++ typesStr ++ " ⇒ " ++ dataTypeStr ++ ")"
308
false
false
0
18
74
118
54
64
null
null
sardonicpresence/glucose
src/Glucose/Parser.hs
mit
identifier :: Parse AST.Identifier identifier = lexeme "identifier" . traverse $ AST.Identifier <$$> preview _identifier
121
identifier :: Parse AST.Identifier identifier = lexeme "identifier" . traverse $ AST.Identifier <$$> preview _identifier
120
identifier = lexeme "identifier" . traverse $ AST.Identifier <$$> preview _identifier
85
false
true
0
8
15
36
17
19
null
null
rodrigofegui/UnB
2017.2/Linguagens de Programação/short-plai_Trab 2/parsers/ParserLib.hs
gpl-3.0
-- | Parser that recognizes a letter. letter :: Parser Char letter = (<*>) item isLetter
88
letter :: Parser Char letter = (<*>) item isLetter
50
letter = (<*>) item isLetter
28
true
true
0
5
15
22
12
10
null
null
beni55/haste-compiler
libraries/ghc-7.10/base/GHC/IO/Encoding.hs
bsd-3-clause
-- ----------------------------------------------------------------------------- -- | The Latin1 (ISO8859-1) encoding. This encoding maps bytes -- directly to the first 256 Unicode code points, and is thus not a -- complete Unicode encoding. An attempt to write a character greater than -- '\255' to a 'Handle' using ...
421
latin1 :: TextEncoding latin1 = Latin1.latin1_checked
54
latin1 = Latin1.latin1_checked
30
true
true
0
5
61
18
12
6
null
null
ilyasergey/GHC-XAppFix
compiler/cmm/PprC.hs
bsd-3-clause
pprStatics platform (other : _) = pprPanic "pprWord" (pprStatic platform other)
81
pprStatics platform (other : _) = pprPanic "pprWord" (pprStatic platform other)
81
pprStatics platform (other : _) = pprPanic "pprWord" (pprStatic platform other)
81
false
false
0
7
12
31
15
16
null
null
robstewart57/ripl
src/SkeletonTemplates/IUnzipFilter2D.hs
bsd-3-clause
mkBufferIdxAssignment lhsIdent idxExp = C.LocVarDecl (C.VDeclExpIMut (intCalType 16) (C.Ident lhsIdent) [] (C.EIdentArr (C.Ident "buffer") [(C.BExp idxExp)]))
192
mkBufferIdxAssignment lhsIdent idxExp = C.LocVarDecl (C.VDeclExpIMut (intCalType 16) (C.Ident lhsIdent) [] (C.EIdentArr (C.Ident "buffer") [(C.BExp idxExp)]))
192
mkBufferIdxAssignment lhsIdent idxExp = C.LocVarDecl (C.VDeclExpIMut (intCalType 16) (C.Ident lhsIdent) [] (C.EIdentArr (C.Ident "buffer") [(C.BExp idxExp)]))
192
false
false
0
12
49
76
37
39
null
null
rueshyna/gogol
gogol-youtube/gen/Network/Google/Resource/YouTube/Videos/List.hs
mpl-2.0
-- | Set this parameter\'s value to like or dislike to instruct the API to -- only return videos liked or disliked by the authenticated user. vlMyRating :: Lens' VideosList (Maybe VideosListMyRating) vlMyRating = lens _vlMyRating (\ s a -> s{_vlMyRating = a})
261
vlMyRating :: Lens' VideosList (Maybe VideosListMyRating) vlMyRating = lens _vlMyRating (\ s a -> s{_vlMyRating = a})
119
vlMyRating = lens _vlMyRating (\ s a -> s{_vlMyRating = a})
61
true
true
0
9
44
49
26
23
null
null
ghcjs/jsaddle-dom
src/JSDOM/Generated/SVGGlyphRefElement.hs
mit
-- | <https://developer.mozilla.org/en-US/docs/Web/API/SVGGlyphRefElement.y Mozilla SVGGlyphRefElement.y documentation> getY :: (MonadDOM m) => SVGGlyphRefElement -> m Float getY self = liftDOM (realToFrac <$> ((self ^. js "y") >>= valToNumber))
248
getY :: (MonadDOM m) => SVGGlyphRefElement -> m Float getY self = liftDOM (realToFrac <$> ((self ^. js "y") >>= valToNumber))
127
getY self = liftDOM (realToFrac <$> ((self ^. js "y") >>= valToNumber))
73
true
true
0
12
29
58
30
28
null
null
ivanperez-keera/Yampa
yampa/src/FRP/Yampa/Event.hs
bsd-3-clause
filterE _ NoEvent = NoEvent
31
filterE _ NoEvent = NoEvent
31
filterE _ NoEvent = NoEvent
31
false
false
0
5
8
11
5
6
null
null
quinor/Fair-Functional-Language
src/Interpreter/Defs.hs
mit
takePos (EMatch p _ _) = p
27
takePos (EMatch p _ _) = p
27
takePos (EMatch p _ _) = p
27
false
false
0
6
7
20
9
11
null
null
emwap/feldspar-language
src/Feldspar/Algorithm/FFT/Utils.hs
bsd-3-clause
withLen :: Data Length -> (Pull DIM1 a -> Pull DIM1 b) -> Pull DIM1 a -> Pull DIM1 b withLen l f = newLen1 l . f . newLen1 l
140
withLen :: Data Length -> (Pull DIM1 a -> Pull DIM1 b) -> Pull DIM1 a -> Pull DIM1 b withLen l f = newLen1 l . f . newLen1 l
140
withLen l f = newLen1 l . f . newLen1 l
39
false
true
2
10
46
78
34
44
null
null
mzini/TcT
source/Tct/Interactive.hs
gpl-3.0
undo' :: IO Bool undo' = do STATE _ hst <- readIORef stateRef case hst of [] -> return False (h:hs) -> do writeIORef stateRef (STATE h hs) writeState return True
213
undo' :: IO Bool undo' = do STATE _ hst <- readIORef stateRef case hst of [] -> return False (h:hs) -> do writeIORef stateRef (STATE h hs) writeState return True
213
undo' = do STATE _ hst <- readIORef stateRef case hst of [] -> return False (h:hs) -> do writeIORef stateRef (STATE h hs) writeState return True
196
false
true
0
16
82
92
39
53
null
null
shicks/shsh
System/Console/ShSh/Builtins/Test.hs
bsd-3-clause
isCharFile _ = return False
27
isCharFile _ = return False
27
isCharFile _ = return False
27
false
false
0
4
4
13
5
8
null
null
momomimachli/Hedsql
src/Database/Hedsql/Drivers/PostgreSQL/Parser.hs
gpl-3.0
{-| The AUTOINCREMENT constraint is not a constraint in PostgreSQL. Instead, the "serial" data type is used. We must therefore remove the AUTOINCREMENT constraint when parsing a PRIMARY KEY column constraint. -} parsePostgreSQLColConstTypeFunc :: Parser a -> ColConstraintType a -> Doc parsePostgreSQLColConstTypeFunc p...
664
parsePostgreSQLColConstTypeFunc :: Parser a -> ColConstraintType a -> Doc parsePostgreSQLColConstTypeFunc parser c = case c of (Primary _) -> "PRIMARY KEY" _ -> parseColConstTypeFunc parser c {- | Custom function for PostgreSQL for the creation of a table. The difference with the ...
451
parsePostgreSQLColConstTypeFunc parser c = case c of (Primary _) -> "PRIMARY KEY" _ -> parseColConstTypeFunc parser c {- | Custom function for PostgreSQL for the creation of a table. The difference with the default implementation is that a PRIMARY KEY of type Integer with an A...
377
true
true
0
9
137
63
30
33
null
null
pparkkin/eta
compiler/ETA/Main/DriverPhases.hs
bsd-3-clause
isStopLn _ = False
23
isStopLn _ = False
23
isStopLn _ = False
23
false
false
0
5
8
9
4
5
null
null
probablytom/assessed
Level5/haskell/scraper.hs
artistic-2.0
preamble :: Monad m => LaTeXT_ m preamble = do documentclass [] article usepackage [] "longtable" author "Tom Wallis" title "Functional Programming A.E. 2" -- Rendering and layout of a [PhonebookEntry] directory to LaTeX
229
preamble :: Monad m => LaTeXT_ m preamble = do documentclass [] article usepackage [] "longtable" author "Tom Wallis" title "Functional Programming A.E. 2" -- Rendering and layout of a [PhonebookEntry] directory to LaTeX
229
preamble = do documentclass [] article usepackage [] "longtable" author "Tom Wallis" title "Functional Programming A.E. 2" -- Rendering and layout of a [PhonebookEntry] directory to LaTeX
196
false
true
0
8
42
54
23
31
null
null
bitrauser/aoc
src/AOC2015/Day22.hs
bsd-3-clause
effectDrain :: Effect effectDrain (attacker, defender) = case statsType attacker of NPC -> error "drain applied to PC" PC -> (applyHealing 2 attacker, applyDamage 2 defender) -- | Shield spell effect.
217
effectDrain :: Effect effectDrain (attacker, defender) = case statsType attacker of NPC -> error "drain applied to PC" PC -> (applyHealing 2 attacker, applyDamage 2 defender) -- | Shield spell effect.
217
effectDrain (attacker, defender) = case statsType attacker of NPC -> error "drain applied to PC" PC -> (applyHealing 2 attacker, applyDamage 2 defender) -- | Shield spell effect.
195
false
true
0
9
47
59
30
29
null
null
kylcarte/harihara
src/Harihara/Lastfm/Requests.hs
bsd-3-clause
getInfo_artist :: Text -> Lastfm ArtistInfo getInfo_artist ar = do logDebugData "Artist" $ ppShow ar getInfo $ Artist.getInfo <*> FM.artist ar
152
getInfo_artist :: Text -> Lastfm ArtistInfo getInfo_artist ar = do logDebugData "Artist" $ ppShow ar getInfo $ Artist.getInfo <*> FM.artist ar
152
getInfo_artist ar = do logDebugData "Artist" $ ppShow ar getInfo $ Artist.getInfo <*> FM.artist ar
104
false
true
0
9
30
52
23
29
null
null
pbl64k/Data.Stack
Data/Stack.hs
bsd-2-clause
dd :: Stack a b => (PairStack a b (b, b) -> PairStack a b (b, b)) -> a b -> a b dd = toPairStack `wrap` fromPairStack
117
dd :: Stack a b => (PairStack a b (b, b) -> PairStack a b (b, b)) -> a b -> a b dd = toPairStack `wrap` fromPairStack
117
dd = toPairStack `wrap` fromPairStack
37
false
true
0
11
27
81
40
41
null
null
AndrewRademacher/wai
warp-tls/pong.hs
mit
builderWithLen = responseBuilder status200 [ ("Content-Type", "text/plain") , ("Content-Length", "4") ] $ copyByteString "PONG"
147
builderWithLen = responseBuilder status200 [ ("Content-Type", "text/plain") , ("Content-Length", "4") ] $ copyByteString "PONG"
147
builderWithLen = responseBuilder status200 [ ("Content-Type", "text/plain") , ("Content-Length", "4") ] $ copyByteString "PONG"
147
false
false
1
7
33
36
20
16
null
null
peterbecich/haskell-programming-first-principles
src/Chapter17.hs
bsd-3-clause
zipTuple :: List a -> List b -> List (a, b) zipTuple lx ly = zipper (,) lx ly
77
zipTuple :: List a -> List b -> List (a, b) zipTuple lx ly = zipper (,) lx ly
77
zipTuple lx ly = zipper (,) lx ly
33
false
true
0
9
18
56
25
31
null
null
brendanhay/gogol
gogol-ml/gen/Network/Google/MachineLearning/Types/Product.hs
mpl-2.0
-- | A list of messages that carry the error details. There is a common set -- of message types for APIs to use. grsDetails :: Lens' GoogleRpc__Status [GoogleRpc__StatusDetailsItem] grsDetails = lens _grsDetails (\ s a -> s{_grsDetails = a}) . _Default . _Coerce
276
grsDetails :: Lens' GoogleRpc__Status [GoogleRpc__StatusDetailsItem] grsDetails = lens _grsDetails (\ s a -> s{_grsDetails = a}) . _Default . _Coerce
163
grsDetails = lens _grsDetails (\ s a -> s{_grsDetails = a}) . _Default . _Coerce
94
true
true
0
11
57
54
29
25
null
null
isomorphism/hackage2
Distribution/Server/Users/Users.hs
bsd-3-clause
(?!) :: Maybe a -> e -> Either e a ma ?! e = maybe (Left e) Right ma
68
(?!) :: Maybe a -> e -> Either e a ma ?! e = maybe (Left e) Right ma
68
ma ?! e = maybe (Left e) Right ma
33
false
true
0
9
18
48
23
25
null
null
AlexanderPankiv/ghc
compiler/typecheck/TcTypeNats.hs
bsd-3-clause
rootExact :: Integer -> Integer -> Maybe Integer rootExact x y = do (z,True) <- genRoot x y return z {- | Compute the the n-th root of a natural number, rounded down to the closest natural number. The boolean indicates if the result is exact (i.e., True means no rounding was done, False means rou...
393
rootExact :: Integer -> Integer -> Maybe Integer rootExact x y = do (z,True) <- genRoot x y return z {- | Compute the the n-th root of a natural number, rounded down to the closest natural number. The boolean indicates if the result is exact (i.e., True means no rounding was done, False means rou...
393
rootExact x y = do (z,True) <- genRoot x y return z {- | Compute the the n-th root of a natural number, rounded down to the closest natural number. The boolean indicates if the result is exact (i.e., True means no rounding was done, False means rounded down). The second argument specifies which r...
344
false
true
0
9
89
57
26
31
null
null
alekar/hugs
packages/Cabal/Distribution/Compat/FilePath.hs
bsd-3-clause
commonParent :: [FilePath] -> Maybe FilePath commonParent [] = Nothing
80
commonParent :: [FilePath] -> Maybe FilePath commonParent [] = Nothing
80
commonParent [] = Nothing
35
false
true
0
6
19
26
13
13
null
null
seereason/cabal
cabal-install/Distribution/Client/Init.hs
bsd-3-clause
getLanguage :: InitFlags -> IO InitFlags getLanguage flags = do lang <- return (flagToMaybe $ language flags) ?>> maybePrompt flags (either UnknownLanguage id `fmap` promptList "What base language is the package written in" [Haskell2010, Haskell98] ...
509
getLanguage :: InitFlags -> IO InitFlags getLanguage flags = do lang <- return (flagToMaybe $ language flags) ?>> maybePrompt flags (either UnknownLanguage id `fmap` promptList "What base language is the package written in" [Haskell2010, Haskell98] ...
509
getLanguage flags = do lang <- return (flagToMaybe $ language flags) ?>> maybePrompt flags (either UnknownLanguage id `fmap` promptList "What base language is the package written in" [Haskell2010, Haskell98] (Just Haskell2010) display...
468
false
true
0
15
159
119
59
60
null
null
GaloisInc/saw-script
heapster-saw/src/Verifier/SAW/Heapster/IRTTranslation.hs
bsd-3-clause
translateCompleteShapeIRTTyVars :: KnownNat w => SharedContext -> PermEnv -> NamedShape 'True args w -> IO (TypedTerm, IRTVarIdxs) translateCompleteShapeIRTTyVars sc env nmsh_rec = let args = namedShapeArgs nmsh_rec body = unfoldNamedShape nm...
855
translateCompleteShapeIRTTyVars :: KnownNat w => SharedContext -> PermEnv -> NamedShape 'True args w -> IO (TypedTerm, IRTVarIdxs) translateCompleteShapeIRTTyVars sc env nmsh_rec = let args = namedShapeArgs nmsh_rec body = unfoldNamedShape nm...
855
translateCompleteShapeIRTTyVars sc env nmsh_rec = let args = namedShapeArgs nmsh_rec body = unfoldNamedShape nmsh_rec <$> nus (cruCtxProxies args) namesToExprs in case runIRTTyVarsTransM env (IRTRecShapeName knownNat nmsh_rec) args (irtTyVars body) of Left err ...
654
false
true
0
18
298
200
95
105
null
null
muspellsson/hiccup
Internal/Util.hs
lgpl-2.1
hasParent nsr = nsr `refExtract` nsParent >>= return . isJust
61
hasParent nsr = nsr `refExtract` nsParent >>= return . isJust
61
hasParent nsr = nsr `refExtract` nsParent >>= return . isJust
61
false
false
0
7
9
23
12
11
null
null
jrockway/c2hs
src/Main.hs
gpl-2.0
-- | option description suitable for "Distribution.GetOpt" -- options :: [OptDescr Flag] options = [ Option ['C'] ["cppopts"] (ReqArg CPPOpts "CPPOPTS") "pass CPPOPTS to the C preprocessor", Option ['c'] ["cpp"] (ReqArg CPP "CPP") "use executable CPP to invoke ...
1,439
options :: [OptDescr Flag] options = [ Option ['C'] ["cppopts"] (ReqArg CPPOpts "CPPOPTS") "pass CPPOPTS to the C preprocessor", Option ['c'] ["cpp"] (ReqArg CPP "CPP") "use executable CPP to invoke C preprocessor", Option ['d'] ["dump"] (Re...
1,377
options = [ Option ['C'] ["cppopts"] (ReqArg CPPOpts "CPPOPTS") "pass CPPOPTS to the C preprocessor", Option ['c'] ["cpp"] (ReqArg CPP "CPP") "use executable CPP to invoke C preprocessor", Option ['d'] ["dump"] (ReqArg dumpArg "TYPE") ...
1,350
true
true
0
8
493
323
175
148
null
null
davidsd/snaplet-liftajax
src/Snap/Snaplet/LiftAjax/State.hs
bsd-3-clause
cidAsText :: CallbackId -> Text cidAsText (CallbackId c) = E.decodeUtf8 c
73
cidAsText :: CallbackId -> Text cidAsText (CallbackId c) = E.decodeUtf8 c
73
cidAsText (CallbackId c) = E.decodeUtf8 c
41
false
true
0
7
10
29
14
15
null
null
shirazb/orpiva-k-means
src/ARFFParser/Header.hs
bsd-3-clause
parseHeader :: Parser Char Header parseHeader = declaration "relation" >> liftA2 Header parseStringLit parseAdecls
116
parseHeader :: Parser Char Header parseHeader = declaration "relation" >> liftA2 Header parseStringLit parseAdecls
116
parseHeader = declaration "relation" >> liftA2 Header parseStringLit parseAdecls
82
false
true
0
6
15
32
14
18
null
null
tolysz/prepare-ghcjs
spec-lts8/base/GHC/IO/Handle/Types.hs
bsd-3-clause
isReadWriteHandleType _ = False
47
isReadWriteHandleType _ = False
47
isReadWriteHandleType _ = False
47
false
false
0
5
19
9
4
5
null
null
mkut/libmtg
Magic/Reader.hs
bsd-3-clause
-- ID parseGID :: Stream s m Char => ParsecT s u m Integer parseGID = do _ <- char '#' number'
100
parseGID :: Stream s m Char => ParsecT s u m Integer parseGID = do _ <- char '#' number'
94
parseGID = do _ <- char '#' number'
41
true
true
0
8
27
45
21
24
null
null
FranklinChen/hugs98-plus-Sep2006
packages/HaXml/src/Text/XML/HaXml/Parse.hs
bsd-3-clause
dtdParse name = Prelude.either error id . dtdParse' name
58
dtdParse name = Prelude.either error id . dtdParse' name
58
dtdParse name = Prelude.either error id . dtdParse' name
58
false
false
0
7
10
23
10
13
null
null
christiaanb/vhdl
Language/VHDL/AST/Ppr.hs
bsd-3-clause
pprExprPrec p e (e1 :/: e2) = pprExprPrecInfix p e multPrec e1 "/" e2
69
pprExprPrec p e (e1 :/: e2) = pprExprPrecInfix p e multPrec e1 "/" e2
69
pprExprPrec p e (e1 :/: e2) = pprExprPrecInfix p e multPrec e1 "/" e2
69
false
false
0
6
13
36
16
20
null
null
rueshyna/gogol
gogol-affiliates/gen/Network/Google/Affiliates/Types/Product.hs
mpl-2.0
-- | If you get coverage when you use the card for the given activity, this -- field describes it. cTravelInsurance :: Lens' CcOffer (Maybe Text) cTravelInsurance = lens _cTravelInsurance (\ s a -> s{_cTravelInsurance = a})
231
cTravelInsurance :: Lens' CcOffer (Maybe Text) cTravelInsurance = lens _cTravelInsurance (\ s a -> s{_cTravelInsurance = a})
132
cTravelInsurance = lens _cTravelInsurance (\ s a -> s{_cTravelInsurance = a})
85
true
true
1
9
44
53
26
27
null
null
chrisdone/path
src/Path/Include.hs
bsd-3-clause
prjSomeBase :: (forall b . Path b t -> a) -> SomeBase t -> a prjSomeBase f = \case Abs a -> f a Rel r -> f r -- | Helper to apply a function to the SomeBase object -- -- >>> mapSomeBase parent (Abs [absfile|/foo/bar/cow.moo|]) == Abs [absdir|"/foo/bar"|] --
262
prjSomeBase :: (forall b . Path b t -> a) -> SomeBase t -> a prjSomeBase f = \case Abs a -> f a Rel r -> f r -- | Helper to apply a function to the SomeBase object -- -- >>> mapSomeBase parent (Abs [absfile|/foo/bar/cow.moo|]) == Abs [absdir|"/foo/bar"|] --
262
prjSomeBase f = \case Abs a -> f a Rel r -> f r -- | Helper to apply a function to the SomeBase object -- -- >>> mapSomeBase parent (Abs [absfile|/foo/bar/cow.moo|]) == Abs [absdir|"/foo/bar"|] --
201
false
true
0
9
55
72
36
36
null
null
Chasego/nie
proj/lang/C++/cpp_primer_5th/[SUPPORT] learning-master/real-world-haskell/ch4/FixLines.hs
gpl-3.0
myFunction = unlines . splitLines
33
myFunction = unlines . splitLines
33
myFunction = unlines . splitLines
33
false
false
2
5
4
15
5
10
null
null
thomasjm/ot.hs
src/Control/OperationalTransformation/JSON/Compose.hs
mit
-- Object replacements compose compose' op1@(ObjectReplace path key from1 to1) op2@(ObjectReplace _ _ from2 to2) | (getFullPath op1) == (getFullPath op2) = Right [ObjectReplace path key from1 to2]
198
compose' op1@(ObjectReplace path key from1 to1) op2@(ObjectReplace _ _ from2 to2) | (getFullPath op1) == (getFullPath op2) = Right [ObjectReplace path key from1 to2]
167
compose' op1@(ObjectReplace path key from1 to1) op2@(ObjectReplace _ _ from2 to2) | (getFullPath op1) == (getFullPath op2) = Right [ObjectReplace path key from1 to2]
167
true
false
0
10
29
86
40
46
null
null
markus1189/fgl
Data/Graph/Inductive/Example.hs
bsd-3-clause
dag4' = mkGraphM (genLNodes 1 4) (labUEdges [(1,2),(1,4),(2,3),(2,4),(4,3)])
76
dag4' = mkGraphM (genLNodes 1 4) (labUEdges [(1,2),(1,4),(2,3),(2,4),(4,3)])
76
dag4' = mkGraphM (genLNodes 1 4) (labUEdges [(1,2),(1,4),(2,3),(2,4),(4,3)])
76
false
false
0
9
7
70
42
28
null
null
ghc-android/ghc
testsuite/tests/ghci/should_run/ghcirun004.hs
bsd-3-clause
3417 = 3416
11
3417 = 3416
11
3417 = 3416
11
false
false
1
5
2
10
3
7
null
null
slpopejoy/fadno-xml
src/Fadno/MusicXml/MusicXml20.hs
bsd-2-clause
parseSyllabic :: String -> P.XParse Syllabic parseSyllabic s | s == "single" = return $ SyllabicSingle | s == "begin" = return $ SyllabicBegin | s == "end" = return $ SyllabicEnd | s == "middle" = return $ SyllabicMiddle | otherwise = P.xfail $ "Syllabic: " ++ s
302
parseSyllabic :: String -> P.XParse Syllabic parseSyllabic s | s == "single" = return $ SyllabicSingle | s == "begin" = return $ SyllabicBegin | s == "end" = return $ SyllabicEnd | s == "middle" = return $ SyllabicMiddle | otherwise = P.xfail $ "Syllabic: " ++ s
302
parseSyllabic s | s == "single" = return $ SyllabicSingle | s == "begin" = return $ SyllabicBegin | s == "end" = return $ SyllabicEnd | s == "middle" = return $ SyllabicMiddle | otherwise = P.xfail $ "Syllabic: " ++ s
257
false
true
4
8
88
121
55
66
null
null
olsner/ghc
compiler/ghci/ByteCodeGen.hs
bsd-3-clause
schemeE d s p exp@(AnnTick (Breakpoint _id _fvs) _rhs) | isLiftedTypeKind (typeKind ty) = do id <- newId ty -- Todo: is emptyVarSet correct on the next line? let letExp = AnnLet (AnnNonRec id (fvs, exp)) (emptyDVarSet, AnnVar id) schemeE d s p letExp | otherwise = do -- If...
1,688
schemeE d s p exp@(AnnTick (Breakpoint _id _fvs) _rhs) | isLiftedTypeKind (typeKind ty) = do id <- newId ty -- Todo: is emptyVarSet correct on the next line? let letExp = AnnLet (AnnNonRec id (fvs, exp)) (emptyDVarSet, AnnVar id) schemeE d s p letExp | otherwise = do -- If...
1,688
schemeE d s p exp@(AnnTick (Breakpoint _id _fvs) _rhs) | isLiftedTypeKind (typeKind ty) = do id <- newId ty -- Todo: is emptyVarSet correct on the next line? let letExp = AnnLet (AnnNonRec id (fvs, exp)) (emptyDVarSet, AnnVar id) schemeE d s p letExp | otherwise = do -- If...
1,688
false
false
0
16
609
271
140
131
null
null
abakst/liquidhaskell
tests/neg/Ast.hs
bsd-3-clause
{-@ type AstE = Fix AstFE @-} {-@ type AstT = Fix AstFT @-} {-@ astExpr :: AstE @-} astExpr :: Ast astExpr = In (Lit 10 IxExpr)
129
astExpr :: Ast astExpr = In (Lit 10 IxExpr)
43
astExpr = In (Lit 10 IxExpr)
28
true
true
0
7
29
25
14
11
null
null
esengie/fpl-exploration-tool
src/langGenerator/generated/Pars.hs
bsd-3-clause
convert _ = error "Parse error"
31
convert _ = error "Parse error"
31
convert _ = error "Parse error"
31
false
false
0
5
5
12
5
7
null
null
Heather/stack
src/Stack/Setup/Installed.hs
bsd-3-clause
-- ^ e.g. ghcjs-0.1.0_ghc-7.10.2 toolString :: Tool -> String toolString (Tool ident) = packageIdentifierString ident
118
toolString :: Tool -> String toolString (Tool ident) = packageIdentifierString ident
84
toolString (Tool ident) = packageIdentifierString ident
55
true
true
0
6
15
32
15
17
null
null
jameshales/voltorb-flip
src/Tile.hs
bsd-3-clause
allFlippedTiles :: [Maybe Tile] -> [[Tile]] allFlippedTiles [] = [[]]
69
allFlippedTiles :: [Maybe Tile] -> [[Tile]] allFlippedTiles [] = [[]]
69
allFlippedTiles [] = [[]]
25
false
true
0
7
9
37
20
17
null
null
gigavinyl/ordermage
src/Api/User.hs
mit
getUserById :: String -> Handler User getUserById = \ case (x:xs) -> return exampleUser _ -> throwE err404
110
getUserById :: String -> Handler User getUserById = \ case (x:xs) -> return exampleUser _ -> throwE err404
110
getUserById = \ case (x:xs) -> return exampleUser _ -> throwE err404
72
false
true
0
9
21
45
22
23
null
null
cchalmers/geometry
src/Geometry/Path.hs
bsd-3-clause
-- | Extract the points of a path, resulting in a separate list of -- points for each component trail. Here a /point/ is any place -- where two segments join; see also 'pathVertices' and 'trailPoints'. -- -- This function allows you "observe" the fact that trails are -- implemented as lists of segments, which ...
929
pathPoints :: (Metric v, OrderedField n) => Path v n -> [[Point v n]] pathPoints = fmap trailPoints . view _Wrapped'
116
pathPoints = fmap trailPoints . view _Wrapped'
46
true
true
0
11
180
77
44
33
null
null
tjakway/ghcjvm
utils/genprimopcode/Syntax.hs
bsd-3-clause
lookup_attrib :: String -> [Option] -> Maybe Option lookup_attrib _ [] = Nothing
80
lookup_attrib :: String -> [Option] -> Maybe Option lookup_attrib _ [] = Nothing
80
lookup_attrib _ [] = Nothing
28
false
true
0
9
12
37
17
20
null
null
balodja/sesyrel
src/Sesyrel/Expression/Base.hs
bsd-3-clause
texifyAtom :: (Num a, Ord a, Texifiable a) => Atom a -> (Char, TB.Builder) texifyAtom (Atom k deltas units inds expnt) | nullBundle deltas && nullBundle units && nullBundle inds && all (== 0) expnt = (sign, texify' absK) | otherwise = (,) sign $ (if absK == 1 then mempty else texify' absK) ...
1,131
texifyAtom :: (Num a, Ord a, Texifiable a) => Atom a -> (Char, TB.Builder) texifyAtom (Atom k deltas units inds expnt) | nullBundle deltas && nullBundle units && nullBundle inds && all (== 0) expnt = (sign, texify' absK) | otherwise = (,) sign $ (if absK == 1 then mempty else texify' absK) ...
1,131
texifyAtom (Atom k deltas units inds expnt) | nullBundle deltas && nullBundle units && nullBundle inds && all (== 0) expnt = (sign, texify' absK) | otherwise = (,) sign $ (if absK == 1 then mempty else texify' absK) <> (mconcat . intersperse " " . map texifyDelta . toListBundle $ deltas) ...
1,056
false
true
12
11
356
457
217
240
null
null
ml9951/ghc
compiler/main/GhcMake.hs
bsd-3-clause
summariseModule :: HscEnv -> NodeMap ModSummary -- Map of old summaries -> IsBoot -- IsBoot <=> a {-# SOURCE #-} import -> Located ModuleName -- Imported module to be summarised -> Bool -- object code allowed? -> Maybe (StringBuffer, ...
6,397
summariseModule :: HscEnv -> NodeMap ModSummary -- Map of old summaries -> IsBoot -- IsBoot <=> a {-# SOURCE #-} import -> Located ModuleName -- Imported module to be summarised -> Bool -- object code allowed? -> Maybe (StringBuffer, ...
6,372
summariseModule hsc_env old_summary_map is_boot (L loc wanted_mod) obj_allowed maybe_buf excl_mods | wanted_mod `elem` excl_mods = return Nothing | Just old_summary <- Map.lookup (wanted_mod, is_boot) old_summary_map = do -- Find its new timestamp; all the -- ModSummari...
5,930
true
true
1
21
2,568
1,145
563
582
null
null
haskell-opengl/OpenGLRaw
src/Graphics/GL/Functions/F25.hs
bsd-3-clause
ptr_glTexBuffer :: FunPtr (GLenum -> GLenum -> GLuint -> IO ()) ptr_glTexBuffer = unsafePerformIO $ getCommand "glTexBuffer"
124
ptr_glTexBuffer :: FunPtr (GLenum -> GLenum -> GLuint -> IO ()) ptr_glTexBuffer = unsafePerformIO $ getCommand "glTexBuffer"
124
ptr_glTexBuffer = unsafePerformIO $ getCommand "glTexBuffer"
60
false
true
0
11
16
41
20
21
null
null
dysinger/amazonka
amazonka-ec2/gen/Network/AWS/EC2/RunInstances.hs
mpl-2.0
-- | If you set this parameter to 'true', you can't terminate the instance using the -- Amazon EC2 console, CLI, or API; otherwise, you can. If you set this -- parameter to 'true' and then later want to be able to terminate the instance, -- you must first change the value of the 'disableApiTermination' attribute to 'fa...
707
riDisableApiTermination :: Lens' RunInstances (Maybe Bool) riDisableApiTermination = lens _riDisableApiTermination (\s a -> s { _riDisableApiTermination = a })
163
riDisableApiTermination = lens _riDisableApiTermination (\s a -> s { _riDisableApiTermination = a })
104
true
true
0
9
107
52
31
21
null
null
ksallberg/adventofcode
2015/src/Day13.hs
bsd-2-clause
price [_] costs = 0
19
price [_] costs = 0
19
price [_] costs = 0
19
false
false
0
6
4
14
7
7
null
null
janschulz/pandoc
src/Text/Pandoc/Readers/Docx.hs
gpl-2.0
runElemToInlines (SoftHyphen) = text "\xad"
43
runElemToInlines (SoftHyphen) = text "\xad"
43
runElemToInlines (SoftHyphen) = text "\xad"
43
false
false
0
6
4
15
7
8
null
null
jgm/texmath
src/Text/TeXMath/Readers/TeX.hs
gpl-2.0
ensuremath :: Text -> TP Exp ensuremath "\\ensuremath" = inbraces
65
ensuremath :: Text -> TP Exp ensuremath "\\ensuremath" = inbraces
65
ensuremath "\\ensuremath" = inbraces
36
false
true
0
6
9
21
10
11
null
null
TomMD/ghc
compiler/types/Type.hs
bsd-3-clause
cmpTypeX _ (FunTy _ _) (AppTy _ _) = GT
45
cmpTypeX _ (FunTy _ _) (AppTy _ _) = GT
45
cmpTypeX _ (FunTy _ _) (AppTy _ _) = GT
45
false
false
1
6
15
32
14
18
null
null
vladfi1/hs-misc
lib/Misc/Utils.hs
mit
--newtype FlipSOP f bss a = FlipSOP { runFlipSOP :: SOP (Flip f a) bss } liftA_FSOP :: (forall b. f b a -> g b a) -> FlipSOP f bss a -> FlipSOP g bss a liftA_FSOP f (FlipSOP sop) = FlipSOP (liftA_FNS (liftA_FNP f) sop)
219
liftA_FSOP :: (forall b. f b a -> g b a) -> FlipSOP f bss a -> FlipSOP g bss a liftA_FSOP f (FlipSOP sop) = FlipSOP (liftA_FNS (liftA_FNP f) sop)
145
liftA_FSOP f (FlipSOP sop) = FlipSOP (liftA_FNS (liftA_FNP f) sop)
66
true
true
0
9
47
84
41
43
null
null
mbakke/ganeti
src/Ganeti/Constants.hs
bsd-2-clause
-- | The set of lvm-based disk templates dtsHaveAccess :: FrozenSet String dtsHaveAccess = ConstantUtils.mkSet $ map Types.diskTemplateToRaw [DTRbd, DTGluster, DTExt]
168
dtsHaveAccess :: FrozenSet String dtsHaveAccess = ConstantUtils.mkSet $ map Types.diskTemplateToRaw [DTRbd, DTGluster, DTExt]
127
dtsHaveAccess = ConstantUtils.mkSet $ map Types.diskTemplateToRaw [DTRbd, DTGluster, DTExt]
93
true
true
0
7
22
37
20
17
null
null
AndrasKovacs/trie-vector
Data/TrieVector/ArrayPrim.hs
mit
read = readArray#
17
read = readArray#
17
read = readArray#
17
false
false
1
5
2
10
3
7
null
null
dagit/helisp
src/Eval.hs
bsd-3-clause
apply :: Env -> SExp -> SExp apply e s = primApply e (functionFromEnv e (symbolFromSExp (car s))) (car (cdr s))
134
apply :: Env -> SExp -> SExp apply e s = primApply e (functionFromEnv e (symbolFromSExp (car s))) (car (cdr s))
134
apply e s = primApply e (functionFromEnv e (symbolFromSExp (car s))) (car (cdr s))
105
false
true
0
10
43
71
32
39
null
null
uduki/hsQt
Qtc/Gui/QTextFrame.hs
bsd-2-clause
setLayoutData :: QTextFrame a -> ((QTextFrameLayoutData t1)) -> IO () setLayoutData x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QTextFrame_setLayoutData cobj_x0 cobj_x1
210
setLayoutData :: QTextFrame a -> ((QTextFrameLayoutData t1)) -> IO () setLayoutData x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QTextFrame_setLayoutData cobj_x0 cobj_x1
210
setLayoutData x0 (x1) = withObjectPtr x0 $ \cobj_x0 -> withObjectPtr x1 $ \cobj_x1 -> qtc_QTextFrame_setLayoutData cobj_x0 cobj_x1
140
false
true
0
9
36
78
37
41
null
null
beni55/http-types
Network/HTTP/Types/Status.hs
bsd-3-clause
-- | Requested Range Not Satisfiable 416 status416 :: Status status416 = mkStatus 416 "Requested Range Not Satisfiable"
119
status416 :: Status status416 = mkStatus 416 "Requested Range Not Satisfiable"
78
status416 = mkStatus 416 "Requested Range Not Satisfiable"
58
true
true
0
5
17
17
9
8
null
null
AlexanderPankiv/ghc
compiler/types/Type.hs
bsd-3-clause
mkAppTy ty1 ty2 = AppTy ty1 ty2
45
mkAppTy ty1 ty2 = AppTy ty1 ty2
45
mkAppTy ty1 ty2 = AppTy ty1 ty2
45
false
false
0
5
20
17
7
10
null
null
roelvandijk/aeson
Data/Aeson/Types/Instances.hs
bsd-3-clause
stringEncoding :: (ToJSON a) => a -> Value stringEncoding = String . T.dropAround (== '"') . T.decodeLatin1 . L.toStrict . encode
129
stringEncoding :: (ToJSON a) => a -> Value stringEncoding = String . T.dropAround (== '"') . T.decodeLatin1 . L.toStrict . encode
129
stringEncoding = String . T.dropAround (== '"') . T.decodeLatin1 . L.toStrict . encode
86
false
true
0
10
20
53
28
25
null
null
thoferon/seakale
src/Database/Seakale/FromRow.hs
bsd-3-clause
parseRows :: RowParser backend n a -> backend -> [ColumnInfo backend] -> [Row backend] -> Either String [a] parseRows parser backend cols = mapM (parseRow parser backend cols)
185
parseRows :: RowParser backend n a -> backend -> [ColumnInfo backend] -> [Row backend] -> Either String [a] parseRows parser backend cols = mapM (parseRow parser backend cols)
185
parseRows parser backend cols = mapM (parseRow parser backend cols)
67
false
true
0
11
37
78
37
41
null
null
joe9/barrelfish
tools/flounder/UMPCommon.hs
mit
tx_vtbl :: UMPParams -> String -> [MessageDef] -> C.Unit tx_vtbl p ifn ml = C.StructDef C.Static (intf_vtbl_type ifn TX) (tx_vtbl_name p ifn) fields where fields = [let mn = msg_name m in (mn, tx_fn_name p ifn mn) | m <- ml]
240
tx_vtbl :: UMPParams -> String -> [MessageDef] -> C.Unit tx_vtbl p ifn ml = C.StructDef C.Static (intf_vtbl_type ifn TX) (tx_vtbl_name p ifn) fields where fields = [let mn = msg_name m in (mn, tx_fn_name p ifn mn) | m <- ml]
240
tx_vtbl p ifn ml = C.StructDef C.Static (intf_vtbl_type ifn TX) (tx_vtbl_name p ifn) fields where fields = [let mn = msg_name m in (mn, tx_fn_name p ifn mn) | m <- ml]
183
false
true
1
11
56
120
56
64
null
null
ganeti/ganeti
src/Ganeti/JSON.hs
bsd-2-clause
-- | Helper for extracting Maybe values from a possibly empty list. getMaybeJsonHead :: (J.JSON b) => [a] -> (a -> Maybe b) -> J.JSValue getMaybeJsonHead [] _ = J.JSNull
169
getMaybeJsonHead :: (J.JSON b) => [a] -> (a -> Maybe b) -> J.JSValue getMaybeJsonHead [] _ = J.JSNull
101
getMaybeJsonHead [] _ = J.JSNull
32
true
true
0
10
29
55
29
26
null
null
achirkin/ghcjs-webgl
src/JavaScript/WebGL/Const.hs
mit
gl_COMPILE_STATUS :: GLenum gl_COMPILE_STATUS = 0x8B81
54
gl_COMPILE_STATUS :: GLenum gl_COMPILE_STATUS = 0x8B81
54
gl_COMPILE_STATUS = 0x8B81
26
false
true
0
4
5
11
6
5
null
null
andrewthad/vinyl-vectors
src/Data/Vector/Vinyl/Default/Empty/Monomorphic.hs
bsd-3-clause
-- | /O(1)/ First element of a vector in a monad. See 'indexM' for an -- explanation of why this is useful. headM :: (Monad m, G.Vector Vector (Rec Identity rs)) => Vector (Rec Identity rs) -> m (Rec Identity rs) headM = G.headM
230
headM :: (Monad m, G.Vector Vector (Rec Identity rs)) => Vector (Rec Identity rs) -> m (Rec Identity rs) headM = G.headM
122
headM = G.headM
15
true
true
0
9
45
68
35
33
null
null
tanakh/bits-conduit
Data/Conduit/Bits.hs
bsd-3-clause
yieldBits :: (Bits b, Monad m) => b -> Int -> GSource m Bool yieldBits b n = forM_ [0..n-1] $ \i -> yield $ testBit b i
123
yieldBits :: (Bits b, Monad m) => b -> Int -> GSource m Bool yieldBits b n = forM_ [0..n-1] $ \i -> yield $ testBit b i
122
yieldBits b n = forM_ [0..n-1] $ \i -> yield $ testBit b i
61
false
true
0
8
31
74
37
37
null
null
UoYCS-plasma/LazySmallCheck2012
suite/performance/Benchmarks/Catch.hs
bsd-3-clause
mergeVal :: Val -> Val -> Val (a_1 :* b_1) `mergeVal` (a_2 :* b_2) = merge a_1 a_2 :* merge b_1 b_2
102
mergeVal :: Val -> Val -> Val (a_1 :* b_1) `mergeVal` (a_2 :* b_2) = merge a_1 a_2 :* merge b_1 b_2
102
(a_1 :* b_1) `mergeVal` (a_2 :* b_2) = merge a_1 a_2 :* merge b_1 b_2
72
false
true
0
7
24
58
29
29
null
null