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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
silky/Tidal | Sound/Tidal/VolcaKeys.hs | gpl-3.0 | fegint = makeF keys "vcfegint"
l | 36 | vcfegint = makeF keys "vcfegint" | 36 | vcfegint = makeF keys "vcfegint" | 36 | false | false | 0 | 5 | 9 | 14 | 6 | 8 | null | null |
lucas8/netlist-compiler | compil.hs | mit | writeExp _ (Eram _ w ra we wa dt) lb = do
readV ra "rcx"
putStrLn $ "movq (%rbp), %rdx"
readMemory lb "rcx" w "rdx"
return $ Just (w, we, wa, dt) | 161 | writeExp _ (Eram _ w ra we wa dt) lb = do
readV ra "rcx"
putStrLn $ "movq (%rbp), %rdx"
readMemory lb "rcx" w "rdx"
return $ Just (w, we, wa, dt) | 161 | writeExp _ (Eram _ w ra we wa dt) lb = do
readV ra "rcx"
putStrLn $ "movq (%rbp), %rdx"
readMemory lb "rcx" w "rdx"
return $ Just (w, we, wa, dt) | 161 | false | false | 0 | 9 | 47 | 78 | 37 | 41 | null | null |
ekmett/ghc | compiler/main/HscMain.hs | bsd-3-clause | hscParseType :: String -> Hsc (LHsType RdrName)
hscParseType = hscParseThing parseType | 86 | hscParseType :: String -> Hsc (LHsType RdrName)
hscParseType = hscParseThing parseType | 86 | hscParseType = hscParseThing parseType | 38 | false | true | 0 | 8 | 10 | 27 | 13 | 14 | null | null |
mcschroeder/ghc | compiler/deSugar/Coverage.hs | bsd-3-clause | addTickHsIPBinds :: HsIPBinds Id -> TM (HsIPBinds Id)
addTickHsIPBinds (IPBinds ipbinds dictbinds) =
liftM2 IPBinds
(mapM (liftL (addTickIPBind)) ipbinds)
(return dictbinds) | 213 | addTickHsIPBinds :: HsIPBinds Id -> TM (HsIPBinds Id)
addTickHsIPBinds (IPBinds ipbinds dictbinds) =
liftM2 IPBinds
(mapM (liftL (addTickIPBind)) ipbinds)
(return dictbinds) | 213 | addTickHsIPBinds (IPBinds ipbinds dictbinds) =
liftM2 IPBinds
(mapM (liftL (addTickIPBind)) ipbinds)
(return dictbinds) | 159 | false | true | 0 | 9 | 60 | 75 | 34 | 41 | null | null |
thoughtpolice/cabal | Cabal/Distribution/Simple/GHC.hs | bsd-3-clause | replExe = buildOrReplExe True | 30 | replExe = buildOrReplExe True | 30 | replExe = buildOrReplExe True | 30 | false | false | 0 | 5 | 4 | 9 | 4 | 5 | null | null |
spinda/liquidhaskell | src/Language/Haskell/Liquid/Spec/Extract.hs | bsd-3-clause | buildCoreEnv :: [CoreBind] -> VarEnv CoreExpr
buildCoreEnv = mkVarEnv . concatMap go
where
go (NonRec v def) = [(v, def)]
go (Rec xes) = xes | 155 | buildCoreEnv :: [CoreBind] -> VarEnv CoreExpr
buildCoreEnv = mkVarEnv . concatMap go
where
go (NonRec v def) = [(v, def)]
go (Rec xes) = xes | 155 | buildCoreEnv = mkVarEnv . concatMap go
where
go (NonRec v def) = [(v, def)]
go (Rec xes) = xes | 109 | false | true | 0 | 7 | 39 | 70 | 36 | 34 | null | null |
sdiehl/ghc | libraries/base/GHC/Exts.hs | bsd-3-clause | groupWith :: Ord b => (a -> b) -> [a] -> [[a]]
groupWith f xs = build (\c n -> groupByFB c n (\x y -> f x == f y) (sortWith f xs)) | 130 | groupWith :: Ord b => (a -> b) -> [a] -> [[a]]
groupWith f xs = build (\c n -> groupByFB c n (\x y -> f x == f y) (sortWith f xs)) | 130 | groupWith f xs = build (\c n -> groupByFB c n (\x y -> f x == f y) (sortWith f xs)) | 83 | false | true | 0 | 12 | 33 | 103 | 51 | 52 | null | null |
plow-technologies/roc-translator | src/Protocol/ROC/PointTypes/PointType48.hs | bsd-3-clause | pointType48Parser :: Get PointType48
pointType48Parser = do
pointTag <- getByteString 10
controlType <- getWord8
activeLoopStatus <- getWord8 ... | 4,361 | pointType48Parser :: Get PointType48
pointType48Parser = do
pointTag <- getByteString 10
controlType <- getWord8
activeLoopStatus <- getWord8 ... | 4,360 | pointType48Parser = do
pointTag <- getByteString 10
controlType <- getWord8
activeLoopStatus <- getWord8
loopPeriod <- getIeeeFloa... | 4,323 | false | true | 0 | 8 | 2,474 | 385 | 170 | 215 | null | null |
brownplt/strobe-old | src/BrownPLT/TypedJS/Presburger.hs | bsd-2-clause | closeFormula :: OpenFormula -> Formula
closeFormula f = _closeFormula f M.empty (S.toList $ freeVars f) | 103 | closeFormula :: OpenFormula -> Formula
closeFormula f = _closeFormula f M.empty (S.toList $ freeVars f) | 103 | closeFormula f = _closeFormula f M.empty (S.toList $ freeVars f) | 64 | false | true | 0 | 8 | 14 | 47 | 20 | 27 | null | null |
scott-fleischman/greek-grammar | haskell/greek-grammar/src/Text/Greek/Script/Concrete.hs | mit | letterToUnicode C_Ν = (Unicode.Letter 'Ν') | 42 | letterToUnicode C_Ν = (Unicode.Letter 'Ν') | 42 | letterToUnicode C_Ν = (Unicode.Letter 'Ν') | 42 | false | false | 1 | 7 | 4 | 23 | 9 | 14 | null | null |
phischu/fragnix | tests/packages/scotty/Data.Text.Encoding.hs | bsd-3-clause | -- | Encode text using little endian UTF-32 encoding.
encodeUtf32LE :: Text -> ByteString
encodeUtf32LE txt = E.unstream (E.restreamUtf32LE (F.stream txt)) | 155 | encodeUtf32LE :: Text -> ByteString
encodeUtf32LE txt = E.unstream (E.restreamUtf32LE (F.stream txt)) | 101 | encodeUtf32LE txt = E.unstream (E.restreamUtf32LE (F.stream txt)) | 65 | true | true | 0 | 10 | 20 | 40 | 20 | 20 | null | null |
ekmett/wxHaskell | wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs | lgpl-2.1 | wxLIST_FORMAT_RIGHT :: Int
wxLIST_FORMAT_RIGHT = 1 | 50 | wxLIST_FORMAT_RIGHT :: Int
wxLIST_FORMAT_RIGHT = 1 | 50 | wxLIST_FORMAT_RIGHT = 1 | 23 | false | true | 0 | 6 | 5 | 18 | 7 | 11 | null | null |
kadena-io/pact | src-tool/Pact/Analyze/Feature.hs | bsd-3-clause | doc FTypeof = Doc
"typeof"
COther
InvAndProp
"return the type of `a` as a string"
[ let a = TyVar $ TypeVar "a"
in Usage
"(typeof a)"
Map.empty
$ Fun Nothing
[ ("a", a) ]
(TyCon str)
] | 234 | doc FTypeof = Doc
"typeof"
COther
InvAndProp
"return the type of `a` as a string"
[ let a = TyVar $ TypeVar "a"
in Usage
"(typeof a)"
Map.empty
$ Fun Nothing
[ ("a", a) ]
(TyCon str)
] | 234 | doc FTypeof = Doc
"typeof"
COther
InvAndProp
"return the type of `a` as a string"
[ let a = TyVar $ TypeVar "a"
in Usage
"(typeof a)"
Map.empty
$ Fun Nothing
[ ("a", a) ]
(TyCon str)
] | 234 | false | false | 1 | 12 | 87 | 82 | 36 | 46 | null | null |
haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F08.hs | bsd-3-clause | -- glFramebufferRenderbuffer ---------------------------------------------------
-- | Manual pages for <https://www.opengl.org/sdk/docs/man3/xhtml/glFramebufferRenderbuffer.xml OpenGL 3.x> or <https://www.opengl.org/sdk/docs/man4/html/glFramebufferRenderbuffer.xhtml OpenGL 4.x>.
glFramebufferRenderbuffer
:: MonadIO ... | 782 | glFramebufferRenderbuffer
:: MonadIO m
=> GLenum -- ^ @target@ of type [FramebufferTarget](Graphics-GL-Groups.html#FramebufferTarget).
-> GLenum -- ^ @attachment@ of type [FramebufferAttachment](Graphics-GL-Groups.html#FramebufferAttachment).
-> GLenum -- ^ @renderbuffertarget@ of type [RenderbufferTarget](Grap... | 501 | glFramebufferRenderbuffer v1 v2 v3 v4 = liftIO $ dyn296 ptr_glFramebufferRenderbuffer v1 v2 v3 v4 | 97 | true | true | 0 | 12 | 77 | 73 | 37 | 36 | null | null |
ancientlanguage/haskell-analysis | prepare/src/Prepare/Decompose.hs | mit | decomposeChar '\x1F3E' = "\x0399\x0313\x0342" | 45 | decomposeChar '\x1F3E' = "\x0399\x0313\x0342" | 45 | decomposeChar '\x1F3E' = "\x0399\x0313\x0342" | 45 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
forste/haReFork | tools/base/TI/TiEnv.hs | bsd-3-clause | -- I've tried using a FiniteMap instead, but it is slower! /TH 2002-12-05
extenv1 x t (Env bs) = Env ((x,t):bs) | 112 | extenv1 x t (Env bs) = Env ((x,t):bs) | 37 | extenv1 x t (Env bs) = Env ((x,t):bs) | 37 | true | false | 0 | 8 | 21 | 36 | 19 | 17 | null | null |
kmate/imperative-edsl | src/Language/C/Monad.hs | bsd-3-clause | -- | Add a global definition
addGlobal :: MonadC m => C.Definition -> m ()
addGlobal def = globals %= (def:) | 108 | addGlobal :: MonadC m => C.Definition -> m ()
addGlobal def = globals %= (def:) | 79 | addGlobal def = globals %= (def:) | 33 | true | true | 0 | 8 | 20 | 41 | 21 | 20 | null | null |
dcreager/cabal | tests/Test/Distribution/Version.hs | bsd-3-clause | prop_to_intervals :: VersionRange -> Version -> Bool
prop_to_intervals range version =
withinRange version range == withinIntervals version intervals
where
intervals = toVersionIntervals range
-- | Check that semantic equality on 'VersionRange's is the same as converting
-- to 'VersionIntervals' and doing synt... | 338 | prop_to_intervals :: VersionRange -> Version -> Bool
prop_to_intervals range version =
withinRange version range == withinIntervals version intervals
where
intervals = toVersionIntervals range
-- | Check that semantic equality on 'VersionRange's is the same as converting
-- to 'VersionIntervals' and doing synt... | 338 | prop_to_intervals range version =
withinRange version range == withinIntervals version intervals
where
intervals = toVersionIntervals range
-- | Check that semantic equality on 'VersionRange's is the same as converting
-- to 'VersionIntervals' and doing syntactic equality.
-- | 285 | false | true | 0 | 6 | 52 | 52 | 26 | 26 | null | null |
vTurbine/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | decidedStrictDataConKey = mkPreludeDataConUnique 66 | 67 | decidedStrictDataConKey = mkPreludeDataConUnique 66 | 67 | decidedStrictDataConKey = mkPreludeDataConUnique 66 | 67 | false | false | 0 | 5 | 19 | 9 | 4 | 5 | null | null |
ezyang/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | sndIdKey = mkPreludeMiscIdUnique 42 | 56 | sndIdKey = mkPreludeMiscIdUnique 42 | 56 | sndIdKey = mkPreludeMiscIdUnique 42 | 56 | false | false | 0 | 5 | 24 | 9 | 4 | 5 | null | null |
ranjitjhala/gradr | Handler/Comment.hs | mit | postCommentR :: Handler Value
postCommentR = do
-- requireJsonBody will parse the request body into the appropriate type, or return a 400 status code if the request JSON is invalid.
-- (The ToJSON and FromJSON instances are derived in the config/models file).
comment <- requireJsonBody :: Handler Comment
... | 617 | postCommentR :: Handler Value
postCommentR = do
-- requireJsonBody will parse the request body into the appropriate type, or return a 400 status code if the request JSON is invalid.
-- (The ToJSON and FromJSON instances are derived in the config/models file).
comment <- requireJsonBody :: Handler Comment
... | 617 | postCommentR = do
-- requireJsonBody will parse the request body into the appropriate type, or return a 400 status code if the request JSON is invalid.
-- (The ToJSON and FromJSON instances are derived in the config/models file).
comment <- requireJsonBody :: Handler Comment
-- The YesodAuth instan... | 587 | false | true | 0 | 11 | 121 | 74 | 36 | 38 | null | null |
athanclark/Idris-dev | src/Idris/ParseHelpers.hs | bsd-3-clause | lineNum (Directed _ l _ _ _) = fromIntegral l + 1 | 49 | lineNum (Directed _ l _ _ _) = fromIntegral l + 1 | 49 | lineNum (Directed _ l _ _ _) = fromIntegral l + 1 | 49 | false | false | 0 | 7 | 11 | 30 | 14 | 16 | null | null |
brendanhay/gogol | gogol-billing/gen/Network/Google/Billing/Types/Product.hs | mpl-2.0 | -- | Represents how the SKU is consumed. Example: \"OnDemand\",
-- \"Preemptible\", \"Commit1Mo\", \"Commit1Yr\" etc.
cUsageType :: Lens' Category (Maybe Text)
cUsageType
= lens _cUsageType (\ s a -> s{_cUsageType = a}) | 221 | cUsageType :: Lens' Category (Maybe Text)
cUsageType
= lens _cUsageType (\ s a -> s{_cUsageType = a}) | 103 | cUsageType
= lens _cUsageType (\ s a -> s{_cUsageType = a}) | 61 | true | true | 2 | 9 | 33 | 56 | 26 | 30 | null | null |
volhovM/coding-theory-itmo-2016 | src/Entropy.hs | gpl-3.0 | compress :: BSL.ByteString -> BSL.ByteString
compress =
Z.compressWith $
Z.defaultCompressParams
{ compressLevel = Z.bestCompression
, compressMemoryLevel = Z.maxMemoryLevel
} | 195 | compress :: BSL.ByteString -> BSL.ByteString
compress =
Z.compressWith $
Z.defaultCompressParams
{ compressLevel = Z.bestCompression
, compressMemoryLevel = Z.maxMemoryLevel
} | 195 | compress =
Z.compressWith $
Z.defaultCompressParams
{ compressLevel = Z.bestCompression
, compressMemoryLevel = Z.maxMemoryLevel
} | 150 | false | true | 0 | 8 | 38 | 45 | 25 | 20 | null | null |
obask/lispify | src/haskell/Main.hs | mit | eval = let env = [] in foldl eval' env | 38 | eval = let env = [] in foldl eval' env | 38 | eval = let env = [] in foldl eval' env | 38 | false | false | 1 | 9 | 9 | 28 | 11 | 17 | null | null |
nickgeoca/idris-py | src/IRTS/CodegenPython.hs | bsd-3-clause | cgPrim LFSqrt = cgPFun "math.sqrt" | 34 | cgPrim LFSqrt = cgPFun "math.sqrt" | 34 | cgPrim LFSqrt = cgPFun "math.sqrt" | 34 | false | false | 1 | 5 | 4 | 16 | 5 | 11 | null | null |
ghcjs/jsaddle-dom | src/JSDOM/Generated/Database.hs | mit | -- | <https://developer.mozilla.org/en-US/docs/Web/API/Database.transaction Mozilla Database.transaction documentation>
transaction ::
(MonadDOM m) =>
Database ->
SQLTransactionCallback ->
Maybe SQLTransactionErrorCallback -> Maybe VoidCallback -> m ()
transa... | 523 | transaction ::
(MonadDOM m) =>
Database ->
SQLTransactionCallback ->
Maybe SQLTransactionErrorCallback -> Maybe VoidCallback -> m ()
transaction self callback errorCallback successCallback
= liftDOM
(void
(self ^. jsf "transaction"
... | 402 | transaction self callback errorCallback successCallback
= liftDOM
(void
(self ^. jsf "transaction"
[toJSVal callback, toJSVal errorCallback,
toJSVal successCallback])) | 209 | true | true | 0 | 12 | 143 | 96 | 47 | 49 | null | null |
rrnewton/stack | src/Stack/Build/Cache.hs | bsd-3-clause | writeCache :: (BinarySchema a, MonadIO m)
=> Path Abs Dir
-> (Path Abs Dir -> m (Path Abs File))
-> a
-> m ()
writeCache dir get' content = do
fp <- get' dir
taggedEncodeFile (toFilePath fp) content | 250 | writeCache :: (BinarySchema a, MonadIO m)
=> Path Abs Dir
-> (Path Abs Dir -> m (Path Abs File))
-> a
-> m ()
writeCache dir get' content = do
fp <- get' dir
taggedEncodeFile (toFilePath fp) content | 250 | writeCache dir get' content = do
fp <- get' dir
taggedEncodeFile (toFilePath fp) content | 96 | false | true | 0 | 12 | 89 | 102 | 48 | 54 | null | null |
koba-e964/hayashii-mcc | SSA.hs | bsd-3-clause | nextOfTerm (TJmp blk) = [blk] | 29 | nextOfTerm (TJmp blk) = [blk] | 29 | nextOfTerm (TJmp blk) = [blk] | 29 | false | false | 0 | 6 | 4 | 19 | 9 | 10 | null | null |
sdiehl/ghc | compiler/GHC/Hs/Expr.hs | bsd-3-clause | pprParendExpr :: (OutputableBndrId p)
=> PprPrec -> HsExpr (GhcPass p) -> SDoc
pprParendExpr p expr
| hsExprNeedsParens p expr = parens (pprExpr expr)
| otherwise = pprExpr expr | 210 | pprParendExpr :: (OutputableBndrId p)
=> PprPrec -> HsExpr (GhcPass p) -> SDoc
pprParendExpr p expr
| hsExprNeedsParens p expr = parens (pprExpr expr)
| otherwise = pprExpr expr | 210 | pprParendExpr p expr
| hsExprNeedsParens p expr = parens (pprExpr expr)
| otherwise = pprExpr expr | 117 | false | true | 1 | 10 | 60 | 72 | 34 | 38 | null | null |
sboosali/Haskell-DragonNaturallySpeaking | sources/Commands.hs | mit | touch 'o' = Press [ ] OKey | 32 | touch 'o' = Press [ ] OKey | 32 | touch 'o' = Press [ ] OKey | 32 | false | false | 0 | 6 | 12 | 16 | 7 | 9 | null | null |
hengchu/CoreLang | CoreLang/ISeq.hs | mit | -- |Concatenate a list of segments.
iConcat :: [Iseq] -> Iseq
iConcat [] = iNil | 79 | iConcat :: [Iseq] -> Iseq
iConcat [] = iNil | 43 | iConcat [] = iNil | 17 | true | true | 0 | 8 | 14 | 30 | 14 | 16 | null | null |
siddhanathan/ghc | compiler/typecheck/TcRnTypes.hs | bsd-3-clause | topAnnStage = Splice Untyped | 31 | topAnnStage = Splice Untyped | 31 | topAnnStage = Splice Untyped | 31 | false | false | 0 | 5 | 6 | 9 | 4 | 5 | null | null |
omefire/lens | src/Control/Lens/Lens.hs | bsd-3-clause | -- | A version of ('<%=') that works on 'ALens'.
(<#%=) :: MonadState s m => ALens s s a b -> (a -> b) -> m b
l <#%= f = l #%%= \a -> let b = f a in (b, b) | 155 | (<#%=) :: MonadState s m => ALens s s a b -> (a -> b) -> m b
l <#%= f = l #%%= \a -> let b = f a in (b, b) | 106 | l <#%= f = l #%%= \a -> let b = f a in (b, b) | 45 | true | true | 0 | 11 | 43 | 85 | 43 | 42 | null | null |
olorin/amazonka | amazonka-route53/gen/Network/AWS/Route53/Types/Product.hs | mpl-2.0 | -- | The ID of the request. Use this ID to track when the change has
-- completed across all Amazon Route 53 DNS servers.
ciId :: Lens' ChangeInfo Text
ciId = lens _ciId (\ s a -> s{_ciId = a}) | 193 | ciId :: Lens' ChangeInfo Text
ciId = lens _ciId (\ s a -> s{_ciId = a}) | 71 | ciId = lens _ciId (\ s a -> s{_ciId = a}) | 41 | true | true | 1 | 9 | 40 | 44 | 23 | 21 | null | null |
kazu-yamamoto/network-uri | tests/uri001.hs | bsd-3-clause | testRFC33 = testRelJoin "testRFC33" rfcbase "../../../../g" "http://a/g" | 72 | testRFC33 = testRelJoin "testRFC33" rfcbase "../../../../g" "http://a/g" | 72 | testRFC33 = testRelJoin "testRFC33" rfcbase "../../../../g" "http://a/g" | 72 | false | false | 0 | 5 | 6 | 15 | 7 | 8 | null | null |
shepheb/hork | Hork/Mem.hs | bsd-3-clause | wb_ :: Mem -> RA -> Word8 -> IO ()
wb_ = writeArray | 51 | wb_ :: Mem -> RA -> Word8 -> IO ()
wb_ = writeArray | 51 | wb_ = writeArray | 16 | false | true | 0 | 9 | 12 | 28 | 14 | 14 | null | null |
beni55/LambdaHack | Game/LambdaHack/Client/UI/InventoryClient.hs | bsd-3-clause | moveCursorHuman :: MonadClientUI m => Vector -> Int -> m Slideshow
moveCursorHuman dir n = do
leader <- getLeaderUI
stgtMode <- getsClient stgtMode
let lidV = maybe (assert `failure` leader) tgtLevelId stgtMode
Level{lxsize, lysize} <- getLevel lidV
lpos <- getsState $ bpos . getActorBody leader
scursor <- ... | 848 | moveCursorHuman :: MonadClientUI m => Vector -> Int -> m Slideshow
moveCursorHuman dir n = do
leader <- getLeaderUI
stgtMode <- getsClient stgtMode
let lidV = maybe (assert `failure` leader) tgtLevelId stgtMode
Level{lxsize, lysize} <- getLevel lidV
lpos <- getsState $ bpos . getActorBody leader
scursor <- ... | 848 | moveCursorHuman dir n = do
leader <- getLeaderUI
stgtMode <- getsClient stgtMode
let lidV = maybe (assert `failure` leader) tgtLevelId stgtMode
Level{lxsize, lysize} <- getLevel lidV
lpos <- getsState $ bpos . getActorBody leader
scursor <- getsClient scursor
cursorPos <- cursorToPos
let cpos = fromMayb... | 781 | false | true | 0 | 17 | 194 | 265 | 127 | 138 | null | null |
nfjinjing/level5 | src/MusicPad/Type/Music.hs | bsd-3-clause | as o d = note d (As, o) | 24 | as o d = note d (As, o) | 24 | as o d = note d (As, o) | 24 | false | false | 1 | 6 | 8 | 27 | 11 | 16 | null | null |
fffej/HS-Poker | LookupPatternMatch.hs | bsd-3-clause | getValueFromProduct 43245 = 2818 | 32 | getValueFromProduct 43245 = 2818 | 32 | getValueFromProduct 43245 = 2818 | 32 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
themattchan/tandoori | library/Tandoori/Typing/Repr.hs | bsd-3-clause | predArityErr = "Predicate with more than one type parameter" | 66 | predArityErr = "Predicate with more than one type parameter" | 66 | predArityErr = "Predicate with more than one type parameter" | 66 | false | false | 0 | 4 | 14 | 6 | 3 | 3 | null | null |
philopon/apiary | src/Data/Apiary/Param.hs | mit | pWord :: Proxy Word
pWord = Proxy | 33 | pWord :: Proxy Word
pWord = Proxy | 33 | pWord = Proxy | 13 | false | true | 0 | 6 | 6 | 20 | 8 | 12 | null | null |
nevrenato/Hets_Fork | Logic/Grothendieck.hs | gpl-2.0 | emptyLogicGraph :: LogicGraph
emptyLogicGraph = LogicGraph
{ logics = Map.empty
, currentLogic = "CASL"
, currentSublogic = Nothing
, currentTargetBase = Nothing
, sublogicBasedTheories = Map.empty
, comorphisms = Map.empty
, inclusions = Map.empty
, unions = Map.empty
, morphisms = ... | 423 | emptyLogicGraph :: LogicGraph
emptyLogicGraph = LogicGraph
{ logics = Map.empty
, currentLogic = "CASL"
, currentSublogic = Nothing
, currentTargetBase = Nothing
, sublogicBasedTheories = Map.empty
, comorphisms = Map.empty
, inclusions = Map.empty
, unions = Map.empty
, morphisms = ... | 423 | emptyLogicGraph = LogicGraph
{ logics = Map.empty
, currentLogic = "CASL"
, currentSublogic = Nothing
, currentTargetBase = Nothing
, sublogicBasedTheories = Map.empty
, comorphisms = Map.empty
, inclusions = Map.empty
, unions = Map.empty
, morphisms = Map.empty
, modifications ... | 393 | false | true | 0 | 8 | 102 | 107 | 65 | 42 | null | null |
nevrenato/HetsAlloy | Common/AnnoParser.hs | gpl-2.0 | caslListBrackets :: GenParser Char st Id
caslListBrackets =
do l <- nextListToks $ afterPlace ([], [])
(c, p) <- option ([], nullRange) $ comps ([], [])
return $ Id l c p | 188 | caslListBrackets :: GenParser Char st Id
caslListBrackets =
do l <- nextListToks $ afterPlace ([], [])
(c, p) <- option ([], nullRange) $ comps ([], [])
return $ Id l c p | 188 | caslListBrackets =
do l <- nextListToks $ afterPlace ([], [])
(c, p) <- option ([], nullRange) $ comps ([], [])
return $ Id l c p | 147 | false | true | 1 | 12 | 49 | 101 | 49 | 52 | null | null |
AlexeyRaga/eta | compiler/ETA/Prelude/PrimOp.hs | bsd-3-clause | primOpInfo AndOp = mkDyadic (fsLit "and#") wordPrimTy | 53 | primOpInfo AndOp = mkDyadic (fsLit "and#") wordPrimTy | 53 | primOpInfo AndOp = mkDyadic (fsLit "and#") wordPrimTy | 53 | false | false | 1 | 7 | 6 | 23 | 9 | 14 | null | null |
siddhanathan/ghc | testsuite/tests/typecheck/should_run/T1735_Help/Basics.hs | bsd-3-clause | -- | Look up a constructor by its representation
repConstr :: DataType -> ConstrRep -> Constr
repConstr dt cr =
case (dataTypeRep dt, cr) of
(AlgRep cs, AlgConstr i) -> cs !! (i-1)
(IntRep, IntConstr i) -> mkIntConstr dt i
(FloatRep, FloatConstr f) -> mkFloatConstr d... | 680 | repConstr :: DataType -> ConstrRep -> Constr
repConstr dt cr =
case (dataTypeRep dt, cr) of
(AlgRep cs, AlgConstr i) -> cs !! (i-1)
(IntRep, IntConstr i) -> mkIntConstr dt i
(FloatRep, FloatConstr f) -> mkFloatConstr dt f
(StringRep, StringConstr str) -> mkStr... | 629 | repConstr dt cr =
case (dataTypeRep dt, cr) of
(AlgRep cs, AlgConstr i) -> cs !! (i-1)
(IntRep, IntConstr i) -> mkIntConstr dt i
(FloatRep, FloatConstr f) -> mkFloatConstr dt f
(StringRep, StringConstr str) -> mkStringConstr dt str
_ -> error "repCons... | 584 | true | true | 0 | 10 | 160 | 142 | 75 | 67 | null | null |
alanz/hroq | src/Data/Concurrent/Queue/Roq/Mnesia.hs | bsd-3-clause | mycall ::
(Typeable b, Typeable a, Binary b, Binary a)
=> a -> Process b
mycall op = do
sid <- getPid
call sid op
-- --------------------------------------------------------------------- | 195 | mycall ::
(Typeable b, Typeable a, Binary b, Binary a)
=> a -> Process b
mycall op = do
sid <- getPid
call sid op
-- --------------------------------------------------------------------- | 195 | mycall op = do
sid <- getPid
call sid op
-- --------------------------------------------------------------------- | 118 | false | true | 0 | 7 | 35 | 64 | 31 | 33 | null | null |
pparkkin/eta | compiler/ETA/Prelude/PrimOp.hs | bsd-3-clause | primOpInfo ReadByteArrayOp_Int32 = mkGenPrimOp (fsLit "readInt32Array#") [deltaTyVar] [mkMutableByteArrayPrimTy deltaTy, intPrimTy, mkStatePrimTy deltaTy] ((mkTupleTy UnboxedTuple [mkStatePrimTy deltaTy, intPrimTy])) | 217 | primOpInfo ReadByteArrayOp_Int32 = mkGenPrimOp (fsLit "readInt32Array#") [deltaTyVar] [mkMutableByteArrayPrimTy deltaTy, intPrimTy, mkStatePrimTy deltaTy] ((mkTupleTy UnboxedTuple [mkStatePrimTy deltaTy, intPrimTy])) | 217 | primOpInfo ReadByteArrayOp_Int32 = mkGenPrimOp (fsLit "readInt32Array#") [deltaTyVar] [mkMutableByteArrayPrimTy deltaTy, intPrimTy, mkStatePrimTy deltaTy] ((mkTupleTy UnboxedTuple [mkStatePrimTy deltaTy, intPrimTy])) | 217 | false | false | 0 | 10 | 17 | 62 | 32 | 30 | null | null |
oisdk/constrained-monads | src/Control/Monad/Constrained/IntSet.hs | mit | fromDistinctAscList :: [Int] -> IntSet Int
fromDistinctAscList = IntSet . IntSet.fromDistinctAscList | 100 | fromDistinctAscList :: [Int] -> IntSet Int
fromDistinctAscList = IntSet . IntSet.fromDistinctAscList | 100 | fromDistinctAscList = IntSet . IntSet.fromDistinctAscList | 57 | false | true | 0 | 6 | 10 | 27 | 14 | 13 | null | null |
qrilka/xlsx | src/Codec/Xlsx/Parser.hs | mit | fromFileCursorDef ::
FromCursor a => Zip.Archive -> FilePath -> Text -> a -> Parser a
fromFileCursorDef x fp contentsDescr defVal = do
mCur <- xmlCursorOptional x fp
case mCur of
Just cur ->
headErr (InvalidFile fp $ "Couldn't parse " <> contentsDescr) $ fromCursor cur
Nothing -> return defVal | 317 | fromFileCursorDef ::
FromCursor a => Zip.Archive -> FilePath -> Text -> a -> Parser a
fromFileCursorDef x fp contentsDescr defVal = do
mCur <- xmlCursorOptional x fp
case mCur of
Just cur ->
headErr (InvalidFile fp $ "Couldn't parse " <> contentsDescr) $ fromCursor cur
Nothing -> return defVal | 317 | fromFileCursorDef x fp contentsDescr defVal = do
mCur <- xmlCursorOptional x fp
case mCur of
Just cur ->
headErr (InvalidFile fp $ "Couldn't parse " <> contentsDescr) $ fromCursor cur
Nothing -> return defVal | 226 | false | true | 0 | 15 | 71 | 109 | 50 | 59 | null | null |
IreneKnapp/Faction | libfaction/Distribution/Simple/Command.hs | bsd-3-clause | -- | create a Choice option
choiceOpt :: Eq b => [(b,OptFlags,Description)] -> MkOptDescr (a -> b) (b -> a -> a) a
choiceOpt aa_ff _sf _lf _d get set = ChoiceOpt alts
where alts = [(d,flags, set alt, (==alt) . get) | (alt,flags,d) <- aa_ff]
-- | create a Choice option out of an enumeration type.
-- As long flag... | 441 | choiceOpt :: Eq b => [(b,OptFlags,Description)] -> MkOptDescr (a -> b) (b -> a -> a) a
choiceOpt aa_ff _sf _lf _d get set = ChoiceOpt alts
where alts = [(d,flags, set alt, (==alt) . get) | (alt,flags,d) <- aa_ff]
-- | create a Choice option out of an enumeration type.
-- As long flags, the Show output is used. ... | 413 | choiceOpt aa_ff _sf _lf _d get set = ChoiceOpt alts
where alts = [(d,flags, set alt, (==alt) . get) | (alt,flags,d) <- aa_ff]
-- | create a Choice option out of an enumeration type.
-- As long flags, the Show output is used. As short flags, the first character
-- which does not conflict with a previous one is... | 326 | true | true | 0 | 10 | 92 | 129 | 73 | 56 | null | null |
dmitmel/goiteens-hw-in-haskell | Utils/Sorters/SelectionSort.hs | apache-2.0 | (!!=) :: [a] -> (Int, a) -> [a]
xs !!= (n, x) = take n xs ++ [x] ++ drop (n + 1) xs | 83 | (!!=) :: [a] -> (Int, a) -> [a]
xs !!= (n, x) = take n xs ++ [x] ++ drop (n + 1) xs | 83 | xs !!= (n, x) = take n xs ++ [x] ++ drop (n + 1) xs | 51 | false | true | 0 | 10 | 23 | 77 | 41 | 36 | null | null |
ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/showSigned_2.hs | mit | esEsOrdering LT EQ = MyFalse | 28 | esEsOrdering LT EQ = MyFalse | 28 | esEsOrdering LT EQ = MyFalse | 28 | false | false | 1 | 5 | 4 | 16 | 5 | 11 | null | null |
ArturB/Multilinear | src/Multilinear/Generic/Sequential.hs | gpl-3.0 | (-.) :: (
Num a, Multilinear Tensor a
) => a
-> Tensor a
-> Tensor a
x -. t = (x-) `Multilinear.Generic.Sequential.map` t | 143 | (-.) :: (
Num a, Multilinear Tensor a
) => a
-> Tensor a
-> Tensor a
x -. t = (x-) `Multilinear.Generic.Sequential.map` t | 143 | x -. t = (x-) `Multilinear.Generic.Sequential.map` t | 52 | false | true | 0 | 10 | 45 | 64 | 35 | 29 | null | null |
brendanhay/gogol | gogol-debugger/gen/Network/Google/Debugger/Types/Product.hs | mpl-2.0 | -- | A SourceContext referring to a snapshot in a cloud workspace.
scCloudWorkspace :: Lens' SourceContext (Maybe CloudWorkspaceSourceContext)
scCloudWorkspace
= lens _scCloudWorkspace
(\ s a -> s{_scCloudWorkspace = a}) | 228 | scCloudWorkspace :: Lens' SourceContext (Maybe CloudWorkspaceSourceContext)
scCloudWorkspace
= lens _scCloudWorkspace
(\ s a -> s{_scCloudWorkspace = a}) | 161 | scCloudWorkspace
= lens _scCloudWorkspace
(\ s a -> s{_scCloudWorkspace = a}) | 85 | true | true | 0 | 9 | 36 | 48 | 25 | 23 | null | null |
mmarx/jebediah | cli/dangervisit/Main.hs | gpl-3.0 | c2' = head $ filter (admissible [s1]) $ counter c1' | 51 | c2' = head $ filter (admissible [s1]) $ counter c1' | 51 | c2' = head $ filter (admissible [s1]) $ counter c1' | 51 | false | false | 1 | 10 | 9 | 32 | 14 | 18 | null | null |
allanderek/ipclib | examples/PepaProbe.hs | gpl-2.0 | joinParseResults :: (a -> b -> c)
-> Either ParseError a
-> Either ParseError b
-> Either ParseError c
joinParseResults _ (Left err) _ = Left err | 205 | joinParseResults :: (a -> b -> c)
-> Either ParseError a
-> Either ParseError b
-> Either ParseError c
joinParseResults _ (Left err) _ = Left err | 205 | joinParseResults _ (Left err) _ = Left err | 51 | false | true | 0 | 11 | 86 | 69 | 32 | 37 | null | null |
ulricha/dsh | src/Database/DSH/Tests/DSHComprehensions.hs | bsd-3-clause | frontguard :: Q [[Integer]]
frontguard =
[ [ y | x > 13, y <- toQ ([1,2,3,4] :: [Integer]), y < 3 ]
| x <- toQ ([10, 20, 30] :: [Integer])
] | 152 | frontguard :: Q [[Integer]]
frontguard =
[ [ y | x > 13, y <- toQ ([1,2,3,4] :: [Integer]), y < 3 ]
| x <- toQ ([10, 20, 30] :: [Integer])
] | 152 | frontguard =
[ [ y | x > 13, y <- toQ ([1,2,3,4] :: [Integer]), y < 3 ]
| x <- toQ ([10, 20, 30] :: [Integer])
] | 124 | false | true | 0 | 11 | 44 | 103 | 59 | 44 | null | null |
ghc-android/ghc | testsuite/tests/ghci/should_run/ghcirun004.hs | bsd-3-clause | 942 = 941 | 9 | 942 = 941 | 9 | 942 = 941 | 9 | false | false | 1 | 5 | 2 | 10 | 3 | 7 | null | null |
Numberartificial/workflow | snipets/src/Craft/Chapter20/PerformanceIA.hs | mit | --- main = putStrLn (show (sumIS 1 1000000))
sumI :: Integer -> Integer -> Integer
sumI n m
| n>m = 0
| otherwise = n + sumI (n+1) m | 142 | sumI :: Integer -> Integer -> Integer
sumI n m
| n>m = 0
| otherwise = n + sumI (n+1) m | 95 | sumI n m
| n>m = 0
| otherwise = n + sumI (n+1) m | 57 | true | true | 1 | 8 | 39 | 62 | 30 | 32 | null | null |
scvalex/logorrhea | bot/tests.hs | bsd-3-clause | test_connectJoin :: IRCT IO ()
test_connectJoin = do
sendMessage $ joinChan chan
forever $ popMessage >>= liftIO . print | 128 | test_connectJoin :: IRCT IO ()
test_connectJoin = do
sendMessage $ joinChan chan
forever $ popMessage >>= liftIO . print | 128 | test_connectJoin = do
sendMessage $ joinChan chan
forever $ popMessage >>= liftIO . print | 97 | false | true | 0 | 9 | 26 | 49 | 21 | 28 | null | null |
leepike/copilot-sbv | src/Copilot/Compile/SBV/Common.hs | bsd-3-clause | mkExtTmpTag :: String -> Maybe Tag -> String
mkExtTmpTag name tag = "ext_" ++ name ++ "_" ++ show (tagExtract tag) | 114 | mkExtTmpTag :: String -> Maybe Tag -> String
mkExtTmpTag name tag = "ext_" ++ name ++ "_" ++ show (tagExtract tag) | 114 | mkExtTmpTag name tag = "ext_" ++ name ++ "_" ++ show (tagExtract tag) | 69 | false | true | 0 | 8 | 20 | 48 | 23 | 25 | null | null |
keera-studios/hsQt | Qtc/Network/QNetworkAddressEntry.hs | bsd-2-clause | qNetworkAddressEntry_delete :: QNetworkAddressEntry a -> IO ()
qNetworkAddressEntry_delete x0
= withObjectPtr x0 $ \cobj_x0 ->
qtc_QNetworkAddressEntry_delete cobj_x0 | 172 | qNetworkAddressEntry_delete :: QNetworkAddressEntry a -> IO ()
qNetworkAddressEntry_delete x0
= withObjectPtr x0 $ \cobj_x0 ->
qtc_QNetworkAddressEntry_delete cobj_x0 | 172 | qNetworkAddressEntry_delete x0
= withObjectPtr x0 $ \cobj_x0 ->
qtc_QNetworkAddressEntry_delete cobj_x0 | 109 | false | true | 0 | 7 | 22 | 41 | 19 | 22 | null | null |
UBMLtonGroup/timberc | src/Core.hs | bsd-3-clause | mustAc (EReq e1 e2) = any mustAc [e1,e2] | 52 | mustAc (EReq e1 e2) = any mustAc [e1,e2] | 52 | mustAc (EReq e1 e2) = any mustAc [e1,e2] | 52 | false | false | 0 | 6 | 19 | 30 | 14 | 16 | null | null |
GaloisInc/saw-script | rme/src/Data/RME/Base.hs | bsd-3-clause | isBool R1 = Just True | 21 | isBool R1 = Just True | 21 | isBool R1 = Just True | 21 | false | false | 1 | 5 | 4 | 16 | 5 | 11 | null | null |
mdietz94/haskellgame | src/Base/InputHandler.hs | mit | putLastKeyboardState (x:xs) = (modKey x) : (putLastKeyboardState xs)
where
modKey :: (SDL.SDLKey,KeyState) -> (SDL.SDLKey,KeyState)
modKey (k,RELEASED) = (k,UP)
modKey (k,PRESSED) = (k,DOWN)
modKey k = k | 247 | putLastKeyboardState (x:xs) = (modKey x) : (putLastKeyboardState xs)
where
modKey :: (SDL.SDLKey,KeyState) -> (SDL.SDLKey,KeyState)
modKey (k,RELEASED) = (k,UP)
modKey (k,PRESSED) = (k,DOWN)
modKey k = k | 247 | putLastKeyboardState (x:xs) = (modKey x) : (putLastKeyboardState xs)
where
modKey :: (SDL.SDLKey,KeyState) -> (SDL.SDLKey,KeyState)
modKey (k,RELEASED) = (k,UP)
modKey (k,PRESSED) = (k,DOWN)
modKey k = k | 247 | false | false | 0 | 9 | 69 | 107 | 60 | 47 | null | null |
TomMD/ghc | compiler/types/TypeRep.hs | bsd-3-clause | tyVarsOfType (LitTy {}) = emptyVarSet | 46 | tyVarsOfType (LitTy {}) = emptyVarSet | 46 | tyVarsOfType (LitTy {}) = emptyVarSet | 46 | false | false | 0 | 7 | 13 | 16 | 8 | 8 | null | null |
sizur/haskell-i18n | Text/I18n/Printf.hs | bsd-3-clause | fmti (UChar c) = fmti (uInteger (fromEnum c)) | 50 | fmti (UChar c) = fmti (uInteger (fromEnum c)) | 50 | fmti (UChar c) = fmti (uInteger (fromEnum c)) | 50 | false | false | 0 | 9 | 12 | 30 | 14 | 16 | null | null |
lamefun/haddock | hypsrc-test/Utils.hs | bsd-2-clause | haddockPath :: FilePath
haddockPath = rootDir </> "dist" </> "build" </> "haddock" </> "haddock" | 96 | haddockPath :: FilePath
haddockPath = rootDir </> "dist" </> "build" </> "haddock" </> "haddock" | 96 | haddockPath = rootDir </> "dist" </> "build" </> "haddock" </> "haddock" | 72 | false | true | 0 | 8 | 13 | 27 | 14 | 13 | null | null |
romanb/amazonka | amazonka-iam/gen/Network/AWS/IAM/UpdateAssumeRolePolicy.hs | mpl-2.0 | -- | 'UpdateAssumeRolePolicyResponse' constructor.
updateAssumeRolePolicyResponse :: UpdateAssumeRolePolicyResponse
updateAssumeRolePolicyResponse = UpdateAssumeRolePolicyResponse | 179 | updateAssumeRolePolicyResponse :: UpdateAssumeRolePolicyResponse
updateAssumeRolePolicyResponse = UpdateAssumeRolePolicyResponse | 128 | updateAssumeRolePolicyResponse = UpdateAssumeRolePolicyResponse | 63 | true | true | 0 | 6 | 9 | 19 | 8 | 11 | null | null |
Courseography/courseography | app/Css/Constants.hs | gpl-3.0 | -- |Defines the color of a very light green.
numDark :: T.Text
numDark = "#B8FF70" | 82 | numDark :: T.Text
numDark = "#B8FF70" | 37 | numDark = "#B8FF70" | 19 | true | true | 0 | 7 | 14 | 21 | 9 | 12 | null | null |
revnull/fixfile | src/Data/FixFile/Trie/Shared.hs | lgpl-3.0 | bigThreshold :: Int
bigThreshold = 20 | 37 | bigThreshold :: Int
bigThreshold = 20 | 37 | bigThreshold = 20 | 17 | false | true | 0 | 6 | 5 | 18 | 7 | 11 | null | null |
tel/saltine | bench/StreamBench.hs | mit | benchStream :: Key -> Benchmark
benchStream k = do
let stream :: Int -> IO ByteString
stream i = newNonce >>= \n -> pure $ S.stream k n i
xor :: ByteString -> IO ByteString
xor m = newNonce >>= \n -> pure $ S.xor k n m
bgroup "Stream"
[ bench "newKey" $ nfIO newKey
, bgroup "stream"
... | 609 | benchStream :: Key -> Benchmark
benchStream k = do
let stream :: Int -> IO ByteString
stream i = newNonce >>= \n -> pure $ S.stream k n i
xor :: ByteString -> IO ByteString
xor m = newNonce >>= \n -> pure $ S.xor k n m
bgroup "Stream"
[ bench "newKey" $ nfIO newKey
, bgroup "stream"
... | 609 | benchStream k = do
let stream :: Int -> IO ByteString
stream i = newNonce >>= \n -> pure $ S.stream k n i
xor :: ByteString -> IO ByteString
xor m = newNonce >>= \n -> pure $ S.xor k n m
bgroup "Stream"
[ bench "newKey" $ nfIO newKey
, bgroup "stream"
[ bench "128 B" $ nfIO $ strea... | 577 | false | true | 0 | 14 | 209 | 266 | 129 | 137 | null | null |
giorgidze/HCodecs | src/Codec/ByteString/Builder.hs | bsd-3-clause | putWord32le :: Word32 -> Builder
putWord32le w = writeN 4 $ \p -> do
poke p (fromIntegral (w) :: Word8)
poke (p `plusPtr` 1) (fromIntegral (shiftR w 8) :: Word8)
poke (p `plusPtr` 2) (fromIntegral (shiftR w 16) :: Word8)
poke (p `plusPtr` 3) (fromIntegral (shiftR w 24) :: Wo... | 457 | putWord32le :: Word32 -> Builder
putWord32le w = writeN 4 $ \p -> do
poke p (fromIntegral (w) :: Word8)
poke (p `plusPtr` 1) (fromIntegral (shiftR w 8) :: Word8)
poke (p `plusPtr` 2) (fromIntegral (shiftR w 16) :: Word8)
poke (p `plusPtr` 3) (fromIntegral (shiftR w 24) :: Wo... | 457 | putWord32le w = writeN 4 $ \p -> do
poke p (fromIntegral (w) :: Word8)
poke (p `plusPtr` 1) (fromIntegral (shiftR w 8) :: Word8)
poke (p `plusPtr` 2) (fromIntegral (shiftR w 16) :: Word8)
poke (p `plusPtr` 3) (fromIntegral (shiftR w 24) :: Word8)
-- on a little endian machi... | 424 | false | true | 0 | 14 | 123 | 161 | 83 | 78 | null | null |
sherwoodwang/wxHaskell | wxdirect/src/ParseC.hs | lgpl-2.1 | readShellProcess :: FilePath -> [String] -> IO String
readShellProcess f as = readProcess "sh" (f:as) "" | 104 | readShellProcess :: FilePath -> [String] -> IO String
readShellProcess f as = readProcess "sh" (f:as) "" | 104 | readShellProcess f as = readProcess "sh" (f:as) "" | 50 | false | true | 0 | 8 | 15 | 48 | 23 | 25 | null | null |
adept/hledger | hledger-lib/Hledger/Reports/MultiBalanceReport.hs | gpl-3.0 | cumulativeSum :: (DateSpan -> Account -> Account) -> Account -> Map DateSpan Account -> Map DateSpan Account
cumulativeSum value start = snd . M.mapAccumWithKey accumValued start
where accumValued startAmt date newAmt = let s = sumAcct startAmt newAmt in (s, value date s)
-- | Given a table representing a multi-colu... | 528 | cumulativeSum :: (DateSpan -> Account -> Account) -> Account -> Map DateSpan Account -> Map DateSpan Account
cumulativeSum value start = snd . M.mapAccumWithKey accumValued start
where accumValued startAmt date newAmt = let s = sumAcct startAmt newAmt in (s, value date s)
-- | Given a table representing a multi-colu... | 528 | cumulativeSum value start = snd . M.mapAccumWithKey accumValued start
where accumValued startAmt date newAmt = let s = sumAcct startAmt newAmt in (s, value date s)
-- | Given a table representing a multi-column balance report (for example,
-- made using 'balanceReportAsTable'), render it in a format suitable for
-- ... | 419 | false | true | 0 | 9 | 85 | 105 | 53 | 52 | null | null |
simhu/cubical | CTT.hs | mit | mirror 1 = 0 | 12 | mirror 1 = 0 | 12 | mirror 1 = 0 | 12 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
literate-unitb/literate-unitb | src/Code/Test.hs | mit | path0 :: FilePath
path0 = [path|Tests/cubes-t8.tex|] | 52 | path0 :: FilePath
path0 = [path|Tests/cubes-t8.tex|] | 52 | path0 = [path|Tests/cubes-t8.tex|] | 34 | false | true | 0 | 4 | 5 | 15 | 10 | 5 | null | null |
urbanslug/ghc | compiler/basicTypes/Literal.hs | bsd-3-clause | litValue (MachWord i) = i | 27 | litValue (MachWord i) = i | 27 | litValue (MachWord i) = i | 27 | false | false | 0 | 6 | 6 | 16 | 7 | 9 | null | null |
brendanhay/gogol | gogol-jobs/gen/Network/Google/Resource/Jobs/Projects/Complete.hs | mpl-2.0 | -- | Upload protocol for media (e.g. \"raw\", \"multipart\").
pcUploadProtocol :: Lens' ProjectsComplete (Maybe Text)
pcUploadProtocol
= lens _pcUploadProtocol
(\ s a -> s{_pcUploadProtocol = a}) | 203 | pcUploadProtocol :: Lens' ProjectsComplete (Maybe Text)
pcUploadProtocol
= lens _pcUploadProtocol
(\ s a -> s{_pcUploadProtocol = a}) | 141 | pcUploadProtocol
= lens _pcUploadProtocol
(\ s a -> s{_pcUploadProtocol = a}) | 85 | true | true | 0 | 8 | 33 | 49 | 25 | 24 | null | null |
facebookincubator/duckling | Duckling/Numeral/EL/Corpus.hs | bsd-3-clause | allExamples :: [Example]
allExamples = concat
[ examples (NumeralValue 0)
[ "0"
, "μηδέν"
]
, examples (NumeralValue 1)
[ "1"
, "ένα"
]
, examples (NumeralValue 2)
[ "δύο"
]
, examples (NumeralValue 3)
... | 3,388 | allExamples :: [Example]
allExamples = concat
[ examples (NumeralValue 0)
[ "0"
, "μηδέν"
]
, examples (NumeralValue 1)
[ "1"
, "ένα"
]
, examples (NumeralValue 2)
[ "δύο"
]
, examples (NumeralValue 3)
... | 3,388 | allExamples = concat
[ examples (NumeralValue 0)
[ "0"
, "μηδέν"
]
, examples (NumeralValue 1)
[ "1"
, "ένα"
]
, examples (NumeralValue 2)
[ "δύο"
]
, examples (NumeralValue 3)
[ "τρία"
... | 3,363 | false | true | 0 | 8 | 1,545 | 653 | 356 | 297 | null | null |
sternenseemann/large-hashable | src/Data/LargeHashable/Intern.hs | bsd-3-clause | hashUpdates :: LH HashUpdates
hashUpdates =
LH $ \env -> return (lh_updates env) | 84 | hashUpdates :: LH HashUpdates
hashUpdates =
LH $ \env -> return (lh_updates env) | 84 | hashUpdates =
LH $ \env -> return (lh_updates env) | 54 | false | true | 2 | 8 | 16 | 33 | 16 | 17 | null | null |
enolan/Idris-dev | src/Idris/ElabDecls.hs | bsd-3-clause | elabPrims :: Idris ()
elabPrims = do i <- getIState
let cs_in = idris_constraints i
let mkdec opt decl docs argdocs =
PData docs argdocs defaultSyntax (fileFC "builtin")
opt decl
elabDecl' EAll (recinfo primfc) (mkdec infe... | 3,809 | elabPrims :: Idris ()
elabPrims = do i <- getIState
let cs_in = idris_constraints i
let mkdec opt decl docs argdocs =
PData docs argdocs defaultSyntax (fileFC "builtin")
opt decl
elabDecl' EAll (recinfo primfc) (mkdec infe... | 3,809 | elabPrims = do i <- getIState
let cs_in = idris_constraints i
let mkdec opt decl docs argdocs =
PData docs argdocs defaultSyntax (fileFC "builtin")
opt decl
elabDecl' EAll (recinfo primfc) (mkdec inferOpts inferDecl emptyD... | 3,787 | false | true | 64 | 16 | 1,529 | 1,190 | 641 | 549 | null | null |
WraithM/CoreCompiler | src/Core/LambdaLift.hs | bsd-3-clause | freeVarsE :: Set Name -> CoreExpr -> AnnExpr Name (Set Name)
freeVarsE _ (Num n) = (S.empty, ANum n) | 100 | freeVarsE :: Set Name -> CoreExpr -> AnnExpr Name (Set Name)
freeVarsE _ (Num n) = (S.empty, ANum n) | 100 | freeVarsE _ (Num n) = (S.empty, ANum n) | 39 | false | true | 0 | 9 | 18 | 55 | 27 | 28 | null | null |
fmapfmapfmap/amazonka | amazonka-swf/gen/Network/AWS/SWF/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'WorkflowExecution' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'weWorkflowId'
--
-- * 'weRunId'
workflowExecution
:: Text -- ^ 'weWorkflowId'
-> Text -- ^ 'weRunId'
-> WorkflowExecution
workflow... | 441 | workflowExecution
:: Text -- ^ 'weWorkflowId'
-> Text -- ^ 'weRunId'
-> WorkflowExecution
workflowExecution pWorkflowId_ pRunId_ =
WorkflowExecution'
{ _weWorkflowId = pWorkflowId_
, _weRunId = pRunId_
} | 231 | workflowExecution pWorkflowId_ pRunId_ =
WorkflowExecution'
{ _weWorkflowId = pWorkflowId_
, _weRunId = pRunId_
} | 129 | true | true | 0 | 6 | 92 | 47 | 30 | 17 | null | null |
BinRoot/graphUVA | main.hs | gpl-2.0 | uvaRequest :: String -> Request_String
uvaRequest query = Request {
rqURI = case parseURI "http://www.virginia.edu/cgi-local/ldapweb" of Just u -> u
, rqMethod = POST
, rqHeaders = [ mkHeader HdrContentType "text/html"
, mkHeader HdrContentLength $ show $ length body
]
, rqBod... | 370 | uvaRequest :: String -> Request_String
uvaRequest query = Request {
rqURI = case parseURI "http://www.virginia.edu/cgi-local/ldapweb" of Just u -> u
, rqMethod = POST
, rqHeaders = [ mkHeader HdrContentType "text/html"
, mkHeader HdrContentLength $ show $ length body
]
, rqBod... | 370 | uvaRequest query = Request {
rqURI = case parseURI "http://www.virginia.edu/cgi-local/ldapweb" of Just u -> u
, rqMethod = POST
, rqHeaders = [ mkHeader HdrContentType "text/html"
, mkHeader HdrContentLength $ show $ length body
]
, rqBody = body
}
where body = "whitepages... | 331 | false | true | 0 | 10 | 97 | 97 | 51 | 46 | null | null |
haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F19.hs | bsd-3-clause | -- glNormalStream3dATI ---------------------------------------------------------
glNormalStream3dATI
:: MonadIO m
=> GLenum -- ^ @stream@ of type [VertexStreamATI](Graphics-GL-Groups.html#VertexStreamATI).
-> GLdouble -- ^ @nx@.
-> GLdouble -- ^ @ny@.
-> GLdouble -- ^ @nz@.
-> m ()
glNormalStream3dATI v1 v... | 381 | glNormalStream3dATI
:: MonadIO m
=> GLenum -- ^ @stream@ of type [VertexStreamATI](Graphics-GL-Groups.html#VertexStreamATI).
-> GLdouble -- ^ @nx@.
-> GLdouble -- ^ @ny@.
-> GLdouble -- ^ @nz@.
-> m ()
glNormalStream3dATI v1 v2 v3 v4 = liftIO $ dyn548 ptr_glNormalStream3dATI v1 v2 v3 v4 | 299 | glNormalStream3dATI v1 v2 v3 v4 = liftIO $ dyn548 ptr_glNormalStream3dATI v1 v2 v3 v4 | 85 | true | true | 0 | 12 | 59 | 72 | 36 | 36 | null | null |
phischu/fragnix | tests/packages/scotty/Data.Map.Internal.hs | bsd-3-clause | deleteMax Tip = Tip | 35 | deleteMax Tip = Tip | 35 | deleteMax Tip = Tip | 35 | false | false | 0 | 5 | 19 | 9 | 4 | 5 | null | null |
JohnL4/ProjectEuler | Haskell/Problem008/app/Main.hs | mit | main :: IO ()
main = do
printf "Greatest product of subsequence of length %d: %d\n" n (greatestProductSeq n) | 110 | main :: IO ()
main = do
printf "Greatest product of subsequence of length %d: %d\n" n (greatestProductSeq n) | 110 | main = do
printf "Greatest product of subsequence of length %d: %d\n" n (greatestProductSeq n) | 96 | false | true | 0 | 10 | 20 | 38 | 16 | 22 | null | null |
tolysz/Haxl | Haxl/Core/Types.hs | bsd-3-clause | -- | Runs an action if the report level is above the given threshold.
ifReport :: (Functor m, Monad m) => Flags -> Int -> m a -> m ()
ifReport flags i = when (report flags >= i) . void | 184 | ifReport :: (Functor m, Monad m) => Flags -> Int -> m a -> m ()
ifReport flags i = when (report flags >= i) . void | 114 | ifReport flags i = when (report flags >= i) . void | 50 | true | true | 0 | 11 | 40 | 74 | 35 | 39 | null | null |
ryantm/ghc | compiler/cmm/CmmUtils.hs | bsd-3-clause | primRepForeignHint :: PrimRep -> ForeignHint
primRepForeignHint VoidRep = panic "primRepForeignHint:VoidRep" | 113 | primRepForeignHint :: PrimRep -> ForeignHint
primRepForeignHint VoidRep = panic "primRepForeignHint:VoidRep" | 113 | primRepForeignHint VoidRep = panic "primRepForeignHint:VoidRep" | 68 | false | true | 0 | 5 | 14 | 21 | 10 | 11 | null | null |
sashabu/libcspm | src/CSPM/Evaluator/ValueSet.hs | bsd-3-clause | member v s1 = throwSourceError [cannotCheckSetMembershipError v s1] | 67 | member v s1 = throwSourceError [cannotCheckSetMembershipError v s1] | 67 | member v s1 = throwSourceError [cannotCheckSetMembershipError v s1] | 67 | false | false | 0 | 7 | 7 | 22 | 10 | 12 | null | null |
ezyang/ghc | compiler/nativeGen/X86/Instr.hs | bsd-3-clause | -- Format of an x86/x86_64 memory address, in bytes.
--
archWordFormat :: Bool -> Format
archWordFormat is32Bit
| is32Bit = II32
| otherwise = II64 | 151 | archWordFormat :: Bool -> Format
archWordFormat is32Bit
| is32Bit = II32
| otherwise = II64 | 95 | archWordFormat is32Bit
| is32Bit = II32
| otherwise = II64 | 62 | true | true | 0 | 7 | 28 | 43 | 19 | 24 | null | null |
rahulmutt/ghcvm | compiler/Eta/CodeGen/Types.hs | bsd-3-clause | loadLoc (LocDirect _ _ code) = code | 35 | loadLoc (LocDirect _ _ code) = code | 35 | loadLoc (LocDirect _ _ code) = code | 35 | false | false | 0 | 6 | 6 | 20 | 9 | 11 | null | null |
ezyang/ghc | compiler/typecheck/FamInst.hs | bsd-3-clause | tcLookupDataFamInst_maybe :: FamInstEnvs -> TyCon -> [TcType]
-> Maybe (TyCon, [TcType], Coercion)
-- ^ Converts a data family type (eg F [a]) to its representation type (eg FList a)
-- and returns a coercion between the two: co :: F [a] ~R FList a.
tcLookupDataFamInst_maybe fam_inst_envs tc t... | 954 | tcLookupDataFamInst_maybe :: FamInstEnvs -> TyCon -> [TcType]
-> Maybe (TyCon, [TcType], Coercion)
tcLookupDataFamInst_maybe fam_inst_envs tc tc_args
| isDataFamilyTyCon tc
, match : _ <- lookupFamInstEnv fam_inst_envs tc tc_args
, FamInstMatch { fim_instance = rep_fam@(FamInst { fi_axio... | 803 | tcLookupDataFamInst_maybe fam_inst_envs tc tc_args
| isDataFamilyTyCon tc
, match : _ <- lookupFamInstEnv fam_inst_envs tc tc_args
, FamInstMatch { fim_instance = rep_fam@(FamInst { fi_axiom = ax
, fi_cvs = cvs })
, fim_tys = rep_args
... | 678 | true | true | 0 | 16 | 312 | 195 | 103 | 92 | null | null |
romanb/amazonka | amazonka-s3/gen/Network/AWS/S3/Types.hs | mpl-2.0 | -- | 'TopicConfiguration' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'tcEvents' @::@ ['Event']
--
-- * 'tcId' @::@ 'Maybe' 'Text'
--
-- * 'tcTopicArn' @::@ 'Text'
--
topicConfiguration :: Text -- ^ 'tcTopicArn'
-> TopicConfiguration
topicConfiguration p1 = Topi... | 418 | topicConfiguration :: Text -- ^ 'tcTopicArn'
-> TopicConfiguration
topicConfiguration p1 = TopicConfiguration
{ _tcTopicArn = p1
, _tcId = Nothing
, _tcEvents = mempty
} | 212 | topicConfiguration p1 = TopicConfiguration
{ _tcTopicArn = p1
, _tcId = Nothing
, _tcEvents = mempty
} | 126 | true | true | 0 | 6 | 100 | 49 | 33 | 16 | null | null |
osa1/sequent-core | src/Language/SequentCore/OccurAnal.hs | bsd-3-clause | transClosureFV :: UniqFM VarSet -> UniqFM VarSet
-- If (f,g), (g,h) are in the input, then (f,h) is in the output
-- as well as (f,g), (g,h)
transClosureFV env
| no_change = env
| otherwise = transClosureFV (listToUFM new_fv_list)
where
(no_change, new_fv_list) = mapAccumL bu... | 547 | transClosureFV :: UniqFM VarSet -> UniqFM VarSet
transClosureFV env
| no_change = env
| otherwise = transClosureFV (listToUFM new_fv_list)
where
(no_change, new_fv_list) = mapAccumL bump True (ufmToList env)
bump no_change (b,fvs)
| no_change_here = (no_change, (b,fvs))
| otherwise = (Fal... | 421 | transClosureFV env
| no_change = env
| otherwise = transClosureFV (listToUFM new_fv_list)
where
(no_change, new_fv_list) = mapAccumL bump True (ufmToList env)
bump no_change (b,fvs)
| no_change_here = (no_change, (b,fvs))
| otherwise = (False, (b,new_fvs))
where
(new_fvs... | 372 | true | true | 1 | 7 | 152 | 151 | 79 | 72 | null | null |
ezyang/ghc | libraries/base/GHC/Natural.hs | bsd-3-clause | wordToNatural (W# w#) = NatS# w# | 32 | wordToNatural (W# w#) = NatS# w# | 32 | wordToNatural (W# w#) = NatS# w# | 32 | false | false | 0 | 7 | 5 | 18 | 8 | 10 | null | null |
bacchanalia/KitchenSink | KitchenSink/Qualified.hs | gpl-3.0 | -- |'VU.postscanr'
vu_postscanr = VU.postscanr | 46 | vu_postscanr = VU.postscanr | 27 | vu_postscanr = VU.postscanr | 27 | true | false | 0 | 5 | 4 | 9 | 5 | 4 | null | null |
kajigor/uKanren_transformations | test/auto/Test/ConsPD.hs | bsd-3-clause | runJu = JU.transform | 20 | runJu = JU.transform | 20 | runJu = JU.transform | 20 | false | false | 0 | 5 | 2 | 8 | 4 | 4 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.