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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pparkkin/eta | compiler/ETA/TypeCheck/TcGenGenerics.hs | bsd-3-clause | mkSum gk_ us _ datacons =
-- switch the payload of gk_ to be datacon-centric instead of tycon-centric
unzip [ mk1Sum (gk2gkDC gk_ d) us i (length datacons) d
| (d,i) <- zip datacons [1..] ] | 203 | mkSum gk_ us _ datacons =
-- switch the payload of gk_ to be datacon-centric instead of tycon-centric
unzip [ mk1Sum (gk2gkDC gk_ d) us i (length datacons) d
| (d,i) <- zip datacons [1..] ] | 203 | mkSum gk_ us _ datacons =
-- switch the payload of gk_ to be datacon-centric instead of tycon-centric
unzip [ mk1Sum (gk2gkDC gk_ d) us i (length datacons) d
| (d,i) <- zip datacons [1..] ] | 203 | false | false | 1 | 10 | 49 | 72 | 35 | 37 | null | null |
caasi/spj-book-student-1992 | src/TiState.hs | bsd-3-clause | primStep state (PrimConstr tag arity) = primConstr state tag arity | 66 | primStep state (PrimConstr tag arity) = primConstr state tag arity | 66 | primStep state (PrimConstr tag arity) = primConstr state tag arity | 66 | false | false | 0 | 6 | 9 | 28 | 12 | 16 | null | null |
pdmurray/haskell-book-ex | src/ch11/Exercises11.14.hs | bsd-3-clause | convert8 No = False | 19 | convert8 No = False | 19 | convert8 No = False | 19 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
vaibhav276/scheme-compiler | src/Parser.hs | mit | cons [x1, x2] = return $ DottedList [x1] x2 | 43 | cons [x1, x2] = return $ DottedList [x1] x2 | 43 | cons [x1, x2] = return $ DottedList [x1] x2 | 43 | false | false | 0 | 7 | 8 | 27 | 14 | 13 | null | null |
haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F23.hs | bsd-3-clause | -- glReadnPixelsKHR ------------------------------------------------------------
-- | This command is an alias for 'glReadnPixels'.
glReadnPixelsKHR
:: MonadIO m
=> GLint -- ^ @x@ of type @WinCoord@.
-> GLint -- ^ @y@ of type @WinCoord@.
-> GLsizei -- ^ @width@.
-> GLsizei -- ^ @height@.
-> GLenum -- ^ @fo... | 675 | glReadnPixelsKHR
:: MonadIO m
=> GLint -- ^ @x@ of type @WinCoord@.
-> GLint -- ^ @y@ of type @WinCoord@.
-> GLsizei -- ^ @width@.
-> GLsizei -- ^ @height@.
-> GLenum -- ^ @format@ of type [PixelFormat](Graphics-GL-Groups.html#PixelFormat).
-> GLenum -- ^ @type@ of type [PixelType](Graphics-GL-Groups.html... | 542 | glReadnPixelsKHR v1 v2 v3 v4 v5 v6 v7 v8 = liftIO $ dyn712 ptr_glReadnPixelsKHR v1 v2 v3 v4 v5 v6 v7 v8 | 103 | true | true | 0 | 16 | 121 | 112 | 58 | 54 | null | null |
arpunk/btc-markets | src/Market.hs | gpl-3.0 | marketFile Bitcurex c = "data/bitcurex" ++ show c ++ ".csv" | 74 | marketFile Bitcurex c = "data/bitcurex" ++ show c ++ ".csv" | 74 | marketFile Bitcurex c = "data/bitcurex" ++ show c ++ ".csv" | 74 | false | false | 0 | 7 | 24 | 23 | 10 | 13 | null | null |
snapframework/snap-core | test/Snap/Util/FileServe/Tests.hs | bsd-3-clause | testFooHtml :: Test
testFooHtml = testCase "fileServe/foo.html" $ do
go fs "foo.html" >>= checkProps "fileServe/foo.html/default"
go fs "foo.html?bar=bar" >>= checkProps "fileServe/foo.html/query"
where
checkProps name r = do
b <- Test.getResponseBody r
assertEqual (name ++ "/contents") ... | 853 | testFooHtml :: Test
testFooHtml = testCase "fileServe/foo.html" $ do
go fs "foo.html" >>= checkProps "fileServe/foo.html/default"
go fs "foo.html?bar=bar" >>= checkProps "fileServe/foo.html/query"
where
checkProps name r = do
b <- Test.getResponseBody r
assertEqual (name ++ "/contents") ... | 853 | testFooHtml = testCase "fileServe/foo.html" $ do
go fs "foo.html" >>= checkProps "fileServe/foo.html/default"
go fs "foo.html?bar=bar" >>= checkProps "fileServe/foo.html/query"
where
checkProps name r = do
b <- Test.getResponseBody r
assertEqual (name ++ "/contents") "FOO\n" b
as... | 833 | false | true | 0 | 11 | 242 | 216 | 99 | 117 | null | null |
jsnajder/hofm | src/MorphGrammar/Hofm/Transf.hs | bsd-3-clause | -- NB: 'ifx' operation is not well-defined and thus omitted
dsfx :: (Transf t) => String -> t
dsfx s = rsfx s "" | 113 | dsfx :: (Transf t) => String -> t
dsfx s = rsfx s "" | 52 | dsfx s = rsfx s "" | 18 | true | true | 0 | 6 | 24 | 33 | 17 | 16 | null | null |
haskell/haddock | haddock-api/src/Haddock.hs | bsd-2-clause | rightOrThrowE (Right x) = pure x | 32 | rightOrThrowE (Right x) = pure x | 32 | rightOrThrowE (Right x) = pure x | 32 | false | false | 0 | 6 | 5 | 19 | 8 | 11 | null | null |
tpsinnem/Idris-dev | src/IRTS/CodegenC.hs | bsd-3-clause | doOp v (LExternal pk) [_, p, o] | pk == sUN "prim__peek16"
= v ++ "idris_peekB16(vm," ++ creg p ++ "," ++ creg o ++")" | 122 | doOp v (LExternal pk) [_, p, o] | pk == sUN "prim__peek16"
= v ++ "idris_peekB16(vm," ++ creg p ++ "," ++ creg o ++")" | 122 | doOp v (LExternal pk) [_, p, o] | pk == sUN "prim__peek16"
= v ++ "idris_peekB16(vm," ++ creg p ++ "," ++ creg o ++")" | 122 | false | false | 2 | 9 | 28 | 72 | 32 | 40 | null | null |
keithodulaigh/Hets | Comorphisms/QVTR2CASL.hs | gpl-2.0 | {- 2. WhenVarSet <> ∅
∀ z1 , ..., zo ∈ WhenVarSet\ParSet, (when →
∀ x1 , ..., xn ∈ (VarSet\(WhenVarSet ∪ 2_VarSet))\ParSet, (Pattern1 →
∃ y1 , ..., ym ∈ 2_VarSet\ParSet, (Pattern2 ∧ where))) -}
buildNonEmptyWhenFormula :: QVTR.Sign -> [RelVar] -> [RelVar] -> [RelVar] -> Set.Set RelVar
... | 3,649 | buildNonEmptyWhenFormula :: QVTR.Sign -> [RelVar] -> [RelVar] -> [RelVar] -> Set.Set RelVar
-> Pattern -> Pattern -> Maybe WhenWhere -> Maybe WhenWhere -> CASLFORMULA
buildNonEmptyWhenFormula qvtSign whenVarSet parS varS varSet_2 souPat tarPat whenC whereC =
let
listWhenVars ... | 3,454 | buildNonEmptyWhenFormula qvtSign whenVarSet parS varS varSet_2 souPat tarPat whenC whereC =
let
listWhenVars = Set.fromList whenVarSet
listPars = Set.fromList parS
diffVarSet_1 = Set.toList $ Set.difference listWhenVars listPars
diffVarSet_2 = Set.toList $ Set.difference (Set.difference (Set.fromList ... | 3,249 | true | true | 0 | 15 | 1,759 | 595 | 293 | 302 | null | null |
infotroph/pandoc | src/Text/Pandoc/Pretty.hs | gpl-2.0 | renderList (NewLine : xs) = do
outp (-1) "\n"
renderList xs | 63 | renderList (NewLine : xs) = do
outp (-1) "\n"
renderList xs | 63 | renderList (NewLine : xs) = do
outp (-1) "\n"
renderList xs | 63 | false | false | 0 | 9 | 14 | 35 | 16 | 19 | null | null |
meimisaki/Rin | src/Type/Subst.hs | mit | subst env tau@(TyCon _) = tau | 29 | subst env tau@(TyCon _) = tau | 29 | subst env tau@(TyCon _) = tau | 29 | false | false | 0 | 8 | 5 | 20 | 10 | 10 | null | null |
esengie/fpl-exploration-tool | test/specLang/TestSortCheck.hs | bsd-3-clause | typecheck' :: TypeCheckM () -> Either TypeError SymbolTable
typecheck' testFun = execStateT testFun synTable | 108 | typecheck' :: TypeCheckM () -> Either TypeError SymbolTable
typecheck' testFun = execStateT testFun synTable | 108 | typecheck' testFun = execStateT testFun synTable | 48 | false | true | 0 | 7 | 13 | 33 | 15 | 18 | null | null |
rrnewton/accelerate | Data/Array/Accelerate/FullList.hs | bsd-3-clause | size :: FullList k v -> Int
size (FL _ _ xs) = 1 + sizeL xs | 59 | size :: FullList k v -> Int
size (FL _ _ xs) = 1 + sizeL xs | 59 | size (FL _ _ xs) = 1 + sizeL xs | 31 | false | true | 2 | 9 | 16 | 46 | 20 | 26 | null | null |
forestbelton/orb | src/Style/Parser.hs | bsd-3-clause | -- Parse the keys given in through a String
parseKey :: String -> Maybe PropKey
parseKey = either (const Nothing) Just . parseOnly (keyParser <* endOfInput) . pack | 163 | parseKey :: String -> Maybe PropKey
parseKey = either (const Nothing) Just . parseOnly (keyParser <* endOfInput) . pack | 119 | parseKey = either (const Nothing) Just . parseOnly (keyParser <* endOfInput) . pack | 83 | true | true | 0 | 9 | 27 | 48 | 24 | 24 | null | null |
ganeti/htools | Ganeti/HTools/Utils.hs | gpl-2.0 | -- * Miscelaneous
-- | Comma-join a string list.
commaJoin :: [String] -> String
commaJoin = intercalate "," | 109 | commaJoin :: [String] -> String
commaJoin = intercalate "," | 59 | commaJoin = intercalate "," | 27 | true | true | 0 | 6 | 18 | 23 | 13 | 10 | null | null |
upsoft/bond | compiler/src/Language/Bond/Codegen/TypeMapping.hs | mit | csType (BT_IntTypeArg x) = pureText x | 37 | csType (BT_IntTypeArg x) = pureText x | 37 | csType (BT_IntTypeArg x) = pureText x | 37 | false | false | 0 | 6 | 5 | 19 | 8 | 11 | null | null |
sheevy/StatHegde | src/PDE.hs | gpl-3.0 | call :: Double -> Double -> Double
call k s = max 0.0 (s-k) | 59 | call :: Double -> Double -> Double
call k s = max 0.0 (s-k) | 59 | call k s = max 0.0 (s-k) | 24 | false | true | 0 | 8 | 13 | 43 | 19 | 24 | null | null |
YtGz/Analyzing-the-Complexity-of-Monotone-Prolog | src/Query/Utilities.hs | lgpl-3.0 | getArgumentType _ = error "Malformed query argument" | 52 | getArgumentType _ = error "Malformed query argument" | 52 | getArgumentType _ = error "Malformed query argument" | 52 | false | false | 0 | 5 | 6 | 12 | 5 | 7 | null | null |
frasertweedale/freebsd-update-repair | src/Repair.hs | mit | isAuto :: Config -> IndexEntry -> IO Bool
isAuto conf a = any (`isPrefixOf` filePath a) <$> autoRepairPrefixes conf | 115 | isAuto :: Config -> IndexEntry -> IO Bool
isAuto conf a = any (`isPrefixOf` filePath a) <$> autoRepairPrefixes conf | 115 | isAuto conf a = any (`isPrefixOf` filePath a) <$> autoRepairPrefixes conf | 73 | false | true | 0 | 8 | 18 | 46 | 23 | 23 | null | null |
enolan/cabal | cabal-install/Distribution/Client/Manpage.hs | bsd-3-clause | optionsLines :: CommandUI flags -> [String]
optionsLines command = concatMap optionLines (concatMap optionDescr (commandOptions command ParseArgs)) | 147 | optionsLines :: CommandUI flags -> [String]
optionsLines command = concatMap optionLines (concatMap optionDescr (commandOptions command ParseArgs)) | 147 | optionsLines command = concatMap optionLines (concatMap optionDescr (commandOptions command ParseArgs)) | 103 | false | true | 0 | 9 | 15 | 45 | 22 | 23 | null | null |
s9gf4ult/yesod | yesod-core/test/YesodCoreTest/NoOverloadedStrings.hs | mit | case_sanity :: IO ()
case_sanity = runner $ do
res <- request defaultRequest
assertBody Data.Monoid.mempty res | 118 | case_sanity :: IO ()
case_sanity = runner $ do
res <- request defaultRequest
assertBody Data.Monoid.mempty res | 118 | case_sanity = runner $ do
res <- request defaultRequest
assertBody Data.Monoid.mempty res | 97 | false | true | 0 | 9 | 23 | 41 | 19 | 22 | null | null |
bergmark/clay | src/Clay/Text.hs | bsd-3-clause | openQuote, closeQuote, noOpenQuote, noCloseQuote :: Content
openQuote = Content "open-quote" | 96 | openQuote, closeQuote, noOpenQuote, noCloseQuote :: Content
openQuote = Content "open-quote" | 95 | openQuote = Content "open-quote" | 35 | false | true | 0 | 5 | 13 | 20 | 13 | 7 | null | null |
deadfoxygrandpa/Elm | compiler/Parse/Expression.hs | bsd-3-clause | parensTerm :: IParser ParseExpr
parensTerm = try (parens opFn) <|> parens (tupleFn <|> parened)
where
opFn = do
(start, op, end) <- located anyOp
let loc = Annotation.at start end
return . loc . Lambda (P.Var "x") . loc . Lambda (P.Var "y") . loc $
Binop op (loc $ rawVar "x") (loc $... | 878 | parensTerm :: IParser ParseExpr
parensTerm = try (parens opFn) <|> parens (tupleFn <|> parened)
where
opFn = do
(start, op, end) <- located anyOp
let loc = Annotation.at start end
return . loc . Lambda (P.Var "x") . loc . Lambda (P.Var "y") . loc $
Binop op (loc $ rawVar "x") (loc $... | 878 | parensTerm = try (parens opFn) <|> parens (tupleFn <|> parened)
where
opFn = do
(start, op, end) <- located anyOp
let loc = Annotation.at start end
return . loc . Lambda (P.Var "x") . loc . Lambda (P.Var "y") . loc $
Binop op (loc $ rawVar "x") (loc $ rawVar "y")
tupleFn = do
... | 846 | false | true | 4 | 15 | 295 | 413 | 199 | 214 | null | null |
akru/haste-compiler | src/Haste/CodeGen.hs | bsd-3-clause | isNewtypeLike :: GHC.Var -> Bool
isNewtypeLike v = maybe False id $ do
(tycon, _) <- splitTyConApp_maybe (varType v)
case tyConDataCons tycon of
[c] -> case dataConRepArgTys c of
[t] -> return (isUnLiftedType t)
_ -> return False
_ -> return False
-- | Returns True if the given Var is an un... | 410 | isNewtypeLike :: GHC.Var -> Bool
isNewtypeLike v = maybe False id $ do
(tycon, _) <- splitTyConApp_maybe (varType v)
case tyConDataCons tycon of
[c] -> case dataConRepArgTys c of
[t] -> return (isUnLiftedType t)
_ -> return False
_ -> return False
-- | Returns True if the given Var is an un... | 410 | isNewtypeLike v = maybe False id $ do
(tycon, _) <- splitTyConApp_maybe (varType v)
case tyConDataCons tycon of
[c] -> case dataConRepArgTys c of
[t] -> return (isUnLiftedType t)
_ -> return False
_ -> return False
-- | Returns True if the given Var is an unboxed tuple with a single element... | 377 | false | true | 0 | 16 | 95 | 115 | 56 | 59 | null | null |
tokiwoousaka/draw-poker | src/Game/Poker/Cards.hs | bsd-3-clause | allCards :: [Card]
allCards = [ Card num suit | suit <- [Hearts ..], num <- [2..14] ] | 85 | allCards :: [Card]
allCards = [ Card num suit | suit <- [Hearts ..], num <- [2..14] ] | 85 | allCards = [ Card num suit | suit <- [Hearts ..], num <- [2..14] ] | 66 | false | true | 0 | 9 | 17 | 54 | 27 | 27 | null | null |
rueshyna/gogol | gogol-identity-toolkit/gen/Network/Google/IdentityToolkit/Types/Product.hs | mpl-2.0 | -- | The RP local ID if it\'s already been mapped to the IdP account
-- identified by the federated ID.
vprLocalId :: Lens' VerifyPasswordResponse (Maybe Text)
vprLocalId
= lens _vprLocalId (\ s a -> s{_vprLocalId = a}) | 221 | vprLocalId :: Lens' VerifyPasswordResponse (Maybe Text)
vprLocalId
= lens _vprLocalId (\ s a -> s{_vprLocalId = a}) | 117 | vprLocalId
= lens _vprLocalId (\ s a -> s{_vprLocalId = a}) | 61 | true | true | 1 | 9 | 39 | 53 | 26 | 27 | null | null |
ekmett/ghc | compiler/utils/Platform.hs | bsd-3-clause | sElfTarget OSOsf3 = False | 31 | osElfTarget OSOsf3 = False | 31 | osElfTarget OSOsf3 = False | 31 | false | false | 0 | 4 | 9 | 10 | 4 | 6 | null | null |
technogeeky/d-A | include/containers-0.5.0.0/Data/Map/Base.hs | gpl-3.0 | glue l Tip = l | 14 | glue l Tip = l | 14 | glue l Tip = l | 14 | false | false | 1 | 5 | 4 | 16 | 5 | 11 | null | null |
swoertz/pia | src/Parser/Polynomial.hs | gpl-3.0 | matrix :: Parser (Matrix Double)
matrix = do
_ <- char '['
spaces
vectors <- row `sepBy` (spaces >> char ';')
spaces
_ <- char ']'
return (fromLists vectors) | 181 | matrix :: Parser (Matrix Double)
matrix = do
_ <- char '['
spaces
vectors <- row `sepBy` (spaces >> char ';')
spaces
_ <- char ']'
return (fromLists vectors) | 181 | matrix = do
_ <- char '['
spaces
vectors <- row `sepBy` (spaces >> char ';')
spaces
_ <- char ']'
return (fromLists vectors) | 148 | false | true | 2 | 12 | 52 | 88 | 37 | 51 | null | null |
fmapfmapfmap/amazonka | amazonka-cloudwatch/gen/Network/AWS/CloudWatch/DescribeAlarmsForMetric.hs | mpl-2.0 | -- | The period in seconds over which the statistic is applied.
dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural)
dafmPeriod = lens _dafmPeriod (\ s a -> s{_dafmPeriod = a}) . mapping _Nat | 198 | dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural)
dafmPeriod = lens _dafmPeriod (\ s a -> s{_dafmPeriod = a}) . mapping _Nat | 134 | dafmPeriod = lens _dafmPeriod (\ s a -> s{_dafmPeriod = a}) . mapping _Nat | 74 | true | true | 0 | 10 | 31 | 53 | 28 | 25 | null | null |
hpacheco/HAAP | examples/xterm/Haskassonne.hs | mit | -- | Dado um ponto dá todos os pontos do quadrado do qual o ponto é o centro
quadrado :: Point -> [Point]
quadrado p = p : vizinhos p ++ [Point (x p + 1) (y p + 1), Point (x p - 1) (y p - 1), Point (x p - 1) (y p + 1), Point (x p + 1) (y p - 1)] | 245 | quadrado :: Point -> [Point]
quadrado p = p : vizinhos p ++ [Point (x p + 1) (y p + 1), Point (x p - 1) (y p - 1), Point (x p - 1) (y p + 1), Point (x p + 1) (y p - 1)] | 168 | quadrado p = p : vizinhos p ++ [Point (x p + 1) (y p + 1), Point (x p - 1) (y p - 1), Point (x p - 1) (y p + 1), Point (x p + 1) (y p - 1)] | 139 | true | true | 0 | 10 | 66 | 145 | 73 | 72 | null | null |
nightscape/platform | shared/src/Unison/Parsers.hs | mit | parseType :: Var v => String -> Result (S v) (Type v)
parseType = parseType' typeBuiltins | 89 | parseType :: Var v => String -> Result (S v) (Type v)
parseType = parseType' typeBuiltins | 89 | parseType = parseType' typeBuiltins | 35 | false | true | 0 | 9 | 15 | 42 | 20 | 22 | null | null |
mrakgr/futhark | src/Futhark/CodeGen/ImpGen.hs | bsd-3-clause | compileBindings :: [Binding] -> ImpM op a -> ImpM op a
compileBindings [] m = m | 83 | compileBindings :: [Binding] -> ImpM op a -> ImpM op a
compileBindings [] m = m | 83 | compileBindings [] m = m | 28 | false | true | 0 | 9 | 19 | 44 | 20 | 24 | null | null |
kagamilove0707/F2 | src/Language/F2/TypeInterface.hs | mit | remove s ((s', t):st)
| s == s' = st
| otherwise = (s', t) : remove s st | 74 | remove s ((s', t):st)
| s == s' = st
| otherwise = (s', t) : remove s st | 74 | remove s ((s', t):st)
| s == s' = st
| otherwise = (s', t) : remove s st | 74 | false | false | 2 | 8 | 20 | 65 | 30 | 35 | null | null |
vincenthz/hs-crypto-pubkey-types | Crypto/Types/PubKey/ECDSA.hs | bsd-3-clause | -- | Private key of a ECDSA Key pair.
toPrivateKey :: KeyPair -> PrivateKey
toPrivateKey (KeyPair curve _ priv) = PrivateKey curve priv | 135 | toPrivateKey :: KeyPair -> PrivateKey
toPrivateKey (KeyPair curve _ priv) = PrivateKey curve priv | 97 | toPrivateKey (KeyPair curve _ priv) = PrivateKey curve priv | 59 | true | true | 0 | 7 | 22 | 34 | 17 | 17 | null | null |
chreekat/yesod | yesod-auth/Yesod/Auth/Message.hs | bsd-2-clause | portugueseMessage Register = "Registrar" | 40 | portugueseMessage Register = "Registrar" | 40 | portugueseMessage Register = "Registrar" | 40 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
rahulmutt/ghcvm | compiler/Eta/Prelude/THNames.hs | bsd-3-clause | tupEName = libFun (fsLit "tupE") tupEIdKey | 56 | tupEName = libFun (fsLit "tupE") tupEIdKey | 56 | tupEName = libFun (fsLit "tupE") tupEIdKey | 56 | false | false | 0 | 7 | 19 | 17 | 8 | 9 | null | null |
awgn/ass | src/Ass/Compiler.hs | gpl-2.0 | getCompilerVersion Clang34 = "3.4" | 34 | getCompilerVersion Clang34 = "3.4" | 34 | getCompilerVersion Clang34 = "3.4" | 34 | false | false | 0 | 4 | 3 | 10 | 4 | 6 | null | null |
mhwombat/numeral-wains | src/ALife/Creatur/Wain/ImageID/Universe.hs | bsd-3-clause | cImageWidth :: Setting Int
cImageWidth = requiredSetting "imageWidth" | 69 | cImageWidth :: Setting Int
cImageWidth = requiredSetting "imageWidth" | 69 | cImageWidth = requiredSetting "imageWidth" | 42 | false | true | 0 | 5 | 7 | 17 | 8 | 9 | null | null |
unisonweb/platform | codebase2/codebase-sqlite/U/Codebase/Sqlite/Operations.hs | mit | x2cTType :: (LocalTextId -> Text) -> (LocalDefnId -> H.Hash) -> S.Term.Type -> C.Term.Type Symbol
x2cTType substText substHash = C.Type.rmap (bimap substText substHash) | 168 | x2cTType :: (LocalTextId -> Text) -> (LocalDefnId -> H.Hash) -> S.Term.Type -> C.Term.Type Symbol
x2cTType substText substHash = C.Type.rmap (bimap substText substHash) | 168 | x2cTType substText substHash = C.Type.rmap (bimap substText substHash) | 70 | false | true | 0 | 9 | 21 | 71 | 36 | 35 | null | null |
acarapetis/ttlizer | haskell/Timetable.hs | gpl-3.0 | combinations :: Int -> [a] -> [[a]]
combinations 0 _ = [ [] ] | 62 | combinations :: Int -> [a] -> [[a]]
combinations 0 _ = [ [] ] | 62 | combinations 0 _ = [ [] ] | 26 | false | true | 0 | 8 | 14 | 38 | 21 | 17 | null | null |
ghc-android/ghc | testsuite/tests/ghci/should_run/ghcirun004.hs | bsd-3-clause | 2898 = 2897 | 11 | 2898 = 2897 | 11 | 2898 = 2897 | 11 | false | false | 1 | 5 | 2 | 10 | 3 | 7 | null | null |
Valiev/contests | darkus/201509/Ant.hs | mit | change_price L P L K = 0 | 24 | change_price L P L K = 0 | 24 | change_price L P L K = 0 | 24 | false | false | 0 | 5 | 6 | 18 | 7 | 11 | null | null |
purcell/adventofcode2016 | src/Day20.hs | bsd-3-clause | main =
runDay $
Day
20
(many1 (parseIP <* newline))
(return . show . partA)
(return . show . partB) | 119 | main =
runDay $
Day
20
(many1 (parseIP <* newline))
(return . show . partA)
(return . show . partB) | 119 | main =
runDay $
Day
20
(many1 (parseIP <* newline))
(return . show . partA)
(return . show . partB) | 119 | false | false | 3 | 8 | 39 | 62 | 28 | 34 | null | null |
eijian/raytracer | src/Ray/Algebra.hs | bsd-3-clause | rr (c:cs) c0 rnd len
| rnd < c' = len
| otherwise = rr cs c' rnd (len-1)
where
c' = c0 + c
{- |
russianRouletteBinary
吟味値(0.0 - 1.0)より下ならTrue、そうでなければFalse
-} | 171 | rr (c:cs) c0 rnd len
| rnd < c' = len
| otherwise = rr cs c' rnd (len-1)
where
c' = c0 + c
{- |
russianRouletteBinary
吟味値(0.0 - 1.0)より下ならTrue、そうでなければFalse
-} | 171 | rr (c:cs) c0 rnd len
| rnd < c' = len
| otherwise = rr cs c' rnd (len-1)
where
c' = c0 + c
{- |
russianRouletteBinary
吟味値(0.0 - 1.0)より下ならTrue、そうでなければFalse
-} | 171 | false | false | 1 | 8 | 45 | 69 | 34 | 35 | null | null |
meiersi/scyther-proof | src/Scyther/Theory/Dot.hs | gpl-3.0 | graphvizDotToPng :: FilePath -- ^ Path to dot tool.
-> FilePath -- ^ Dot file to convert
-> FilePath -- ^ Png file to output
-> Chan String -- ^ Message channel
-> IO ()
graphvizDotToPng dotTool dotFile pngFile msgChan = do
let cmd = dotTool... | 455 | graphvizDotToPng :: FilePath -- ^ Path to dot tool.
-> FilePath -- ^ Dot file to convert
-> FilePath -- ^ Png file to output
-> Chan String -- ^ Message channel
-> IO ()
graphvizDotToPng dotTool dotFile pngFile msgChan = do
let cmd = dotTool... | 455 | graphvizDotToPng dotTool dotFile pngFile msgChan = do
let cmd = dotTool ++ " -Tpng -o " ++ pngFile ++ " " ++ dotFile
writeChan msgChan cmd
hProc <- runCommand cmd
_ <- waitForProcess hProc
return () | 208 | false | true | 0 | 14 | 157 | 114 | 52 | 62 | null | null |
rahulmutt/ghcvm | compiler/Eta/Prelude/PrelNames.hs | bsd-3-clause | gHC_LIST = mkBaseModule (fsLit "GHC.List") | 49 | gHC_LIST = mkBaseModule (fsLit "GHC.List") | 49 | gHC_LIST = mkBaseModule (fsLit "GHC.List") | 49 | false | false | 0 | 7 | 11 | 15 | 7 | 8 | null | null |
chris-wood/ccnx-pktgen | src/Writer.hs | mit | writeByteString :: String -> Maybe ByteString -> IO ()
writeByteString f (Just s) = Data.ByteString.writeFile f s | 113 | writeByteString :: String -> Maybe ByteString -> IO ()
writeByteString f (Just s) = Data.ByteString.writeFile f s | 113 | writeByteString f (Just s) = Data.ByteString.writeFile f s | 58 | false | true | 0 | 8 | 16 | 51 | 23 | 28 | null | null |
tjakway/ghcjvm | libraries/ghc-prim/GHC/Magic.hs | bsd-3-clause | runRW# m = m realWorld# | 23 | runRW# m = m realWorld# | 23 | runRW# m = m realWorld# | 23 | false | false | 0 | 5 | 4 | 12 | 5 | 7 | null | null |
olsner/ghc | compiler/nativeGen/SPARC/Ppr.hs | bsd-3-clause | pprData (CmmStaticLit lit) = pprDataItem lit | 50 | pprData (CmmStaticLit lit) = pprDataItem lit | 50 | pprData (CmmStaticLit lit) = pprDataItem lit | 50 | false | false | 0 | 6 | 11 | 19 | 8 | 11 | null | null |
DavidAlphaFox/ghc | libraries/Cabal/Cabal/Distribution/Simple/Program/Builtin.hs | bsd-3-clause | ghcjsPkgProgram :: Program
ghcjsPkgProgram = (simpleProgram "ghcjs-pkg") {
programFindVersion = findProgramVersion "--ghcjs-version" $ \str ->
-- Invoking "ghcjs-pkg --version" gives a string like
-- "GHCJS package manager version 6.4.1"
case words str of
(_:_:_:_:ver:_) -> ver
_ ... | 342 | ghcjsPkgProgram :: Program
ghcjsPkgProgram = (simpleProgram "ghcjs-pkg") {
programFindVersion = findProgramVersion "--ghcjs-version" $ \str ->
-- Invoking "ghcjs-pkg --version" gives a string like
-- "GHCJS package manager version 6.4.1"
case words str of
(_:_:_:_:ver:_) -> ver
_ ... | 342 | ghcjsPkgProgram = (simpleProgram "ghcjs-pkg") {
programFindVersion = findProgramVersion "--ghcjs-version" $ \str ->
-- Invoking "ghcjs-pkg --version" gives a string like
-- "GHCJS package manager version 6.4.1"
case words str of
(_:_:_:_:ver:_) -> ver
_ -> ""
} | 315 | false | true | 0 | 17 | 93 | 81 | 43 | 38 | null | null |
aaronc/Idris-dev | src/Idris/AbsSyntaxTree.hs | bsd-3-clause | toplevel :: ElabInfo
toplevel = EInfo [] emptyContext id Nothing Nothing (\_ _ _ -> fail "Not implemented") | 107 | toplevel :: ElabInfo
toplevel = EInfo [] emptyContext id Nothing Nothing (\_ _ _ -> fail "Not implemented") | 107 | toplevel = EInfo [] emptyContext id Nothing Nothing (\_ _ _ -> fail "Not implemented") | 86 | false | true | 0 | 8 | 17 | 41 | 21 | 20 | null | null |
silky/csound-expression | src/Csound/Air/Wav.hs | bsd-3-clause | - | Writes mono signals to wav files.
writeWav1 :: String -> Sig -> SE ()
writeWav1 file = writeWav file . \x -> (x, x)
| 120 | writeWav1 :: String -> Sig -> SE ()
writeWav1 file = writeWav file . \x -> (x, x) | 81 | writeWav1 file = writeWav file . \x -> (x, x) | 45 | true | true | 2 | 9 | 26 | 65 | 33 | 32 | null | null |
kvanberendonck/hsnx | src/Codec/NX/Parser.hs | mit | decodeFileHeader :: Get NXHeader
decodeFileHeader = NXHeader
<$> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord64le
<*> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord64le
<*> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWo... | 402 | decodeFileHeader :: Get NXHeader
decodeFileHeader = NXHeader
<$> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord64le
<*> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord64le
<*> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWo... | 402 | decodeFileHeader = NXHeader
<$> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord64le
<*> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord64le
<*> fmap fromIntegral getWord32le
<*> fmap fromIntegral getWord64le
<*> fmap fromIntegral ... | 369 | false | true | 26 | 6 | 78 | 135 | 60 | 75 | null | null |
jhoxray/muon | src/SSCSV.hs | bsd-3-clause | -- array of encoders suitable for sample*.csv files
encoders :: V.Vector (Text -> QValue)
encoders = V.fromList [toCSString, toCSInt, toCSString, toCSDate, toCSString, toCSString, toCSString, toCSString, toCSString, toCSDouble,
toCSString, toCSString, toCSString, toCSString, toCSString, toCSString, toCSDate, toCSSt... | 325 | encoders :: V.Vector (Text -> QValue)
encoders = V.fromList [toCSString, toCSInt, toCSString, toCSDate, toCSString, toCSString, toCSString, toCSString, toCSString, toCSDouble,
toCSString, toCSString, toCSString, toCSString, toCSString, toCSString, toCSDate, toCSString] | 273 | encoders = V.fromList [toCSString, toCSInt, toCSString, toCSDate, toCSString, toCSString, toCSString, toCSString, toCSString, toCSDouble,
toCSString, toCSString, toCSString, toCSString, toCSString, toCSString, toCSDate, toCSString] | 235 | true | true | 1 | 7 | 38 | 86 | 51 | 35 | null | null |
dgvncsz0f/nws | src/Jerimum/PostgreSQL/Types/Encoding.hs | bsd-3-clause | toStrictByteString :: CBORValue -> B.ByteString
toStrictByteString (CBOREncoding e) = W.toStrictByteString e | 108 | toStrictByteString :: CBORValue -> B.ByteString
toStrictByteString (CBOREncoding e) = W.toStrictByteString e | 108 | toStrictByteString (CBOREncoding e) = W.toStrictByteString e | 60 | false | true | 0 | 6 | 10 | 35 | 16 | 19 | null | null |
Heather/Idris-dev | src/Idris/Elab/Quasiquote.hs | bsd-3-clause | extractUnquotes n (PDoBlock steps)
= do steps' <- mapM (extractDoUnquotes n) steps
let (steps'', exs) = unzip steps'
return (PDoBlock steps'', concat exs) | 170 | extractUnquotes n (PDoBlock steps)
= do steps' <- mapM (extractDoUnquotes n) steps
let (steps'', exs) = unzip steps'
return (PDoBlock steps'', concat exs) | 170 | extractUnquotes n (PDoBlock steps)
= do steps' <- mapM (extractDoUnquotes n) steps
let (steps'', exs) = unzip steps'
return (PDoBlock steps'', concat exs) | 170 | false | false | 0 | 10 | 38 | 72 | 33 | 39 | null | null |
haskell/haddock | html-test/src/Table.hs | bsd-2-clause | -- | Fancy table.
--
-- +------------------------+------------+----------+----------+
-- | Header row, column 1 | Header 2 | Header 3 | Header 4 |
-- | (header rows optional) | | | |
-- +========================+============+==========+==========+
-- | body row 1, column 1 | column 2 ... | 838 | fancyTable :: a -> a
fancyTable x = x | 37 | fancyTable x = x | 16 | true | true | 0 | 5 | 226 | 32 | 23 | 9 | null | null |
ezyang/ghc | compiler/main/ErrUtils.hs | bsd-3-clause | errorsFound :: DynFlags -> Messages -> Bool
errorsFound _dflags (_warns, errs) = not (isEmptyBag errs) | 102 | errorsFound :: DynFlags -> Messages -> Bool
errorsFound _dflags (_warns, errs) = not (isEmptyBag errs) | 102 | errorsFound _dflags (_warns, errs) = not (isEmptyBag errs) | 58 | false | true | 0 | 7 | 14 | 39 | 20 | 19 | null | null |
osa1/chsc | Utilities.hs | bsd-3-clause | -- Argument of a function application
opPrec = 1 | 49 | opPrec = 1 | 11 | opPrec = 1 | 11 | true | false | 1 | 5 | 9 | 11 | 4 | 7 | null | null |
bgamari/pandoc | src/Text/Pandoc/Writers/HTML.hs | gpl-2.0 | -- | Like Text.XHtml's identifier, but adds the writerIdentifierPrefix
prefixedId :: WriterOptions -> String -> Attribute
prefixedId opts s =
case s of
"" -> mempty
_ -> A.id $ toValue $ writerIdentifierPrefix opts ++ s | 242 | prefixedId :: WriterOptions -> String -> Attribute
prefixedId opts s =
case s of
"" -> mempty
_ -> A.id $ toValue $ writerIdentifierPrefix opts ++ s | 171 | prefixedId opts s =
case s of
"" -> mempty
_ -> A.id $ toValue $ writerIdentifierPrefix opts ++ s | 120 | true | true | 3 | 7 | 58 | 61 | 29 | 32 | null | null |
NICTA/lets-lens | src/Lets/Lens.hs | bsd-3-clause | mapped ::
Functor f =>
Set (f a) (f b) a b
mapped =
error "todo: mapped" | 78 | mapped ::
Functor f =>
Set (f a) (f b) a b
mapped =
error "todo: mapped" | 78 | mapped =
error "todo: mapped" | 31 | false | true | 0 | 8 | 22 | 42 | 20 | 22 | null | null |
toddmohney/json-api | src/Network/JSONApi/Document.hs | mit | {- |
A function for document which do not require links or Meta data.
-}
mkSimpleDocument' :: ResourceData a -> Document a
mkSimpleDocument' res = mkDocument' res Nothing Nothing | 178 | mkSimpleDocument' :: ResourceData a -> Document a
mkSimpleDocument' res = mkDocument' res Nothing Nothing | 105 | mkSimpleDocument' res = mkDocument' res Nothing Nothing | 55 | true | true | 0 | 6 | 28 | 32 | 15 | 17 | null | null |
ddssff/pretty-listlike | src/Text/PrettyPrint/Annotated/HughesPJ.hs | bsd-3-clause | reduceHoriz doc = (NotEmpty, doc) | 44 | reduceHoriz doc = (NotEmpty, doc) | 44 | reduceHoriz doc = (NotEmpty, doc) | 44 | false | false | 0 | 5 | 15 | 15 | 8 | 7 | null | null |
flocc-net/flocc | v0.1/Compiler/Planner/InsertCasts.hs | apache-2.0 | -- check depth
findCasts2 depth funTys funIds ast = do
lift $ putStrE "entered findCasts"
-- find places where casts are needed (inserts dummy cast functions with type a -> b)
(sols1, msg1) <- findCasts1 [(["cast"], 1)] funTys funIds ast
let sols2 = sortBy (\(_,_,c1) -> \(_,_,c2) -> compare c1 c2) sols1
-- g... | 3,767 | findCasts2 depth funTys funIds ast = do
lift $ putStrE "entered findCasts"
-- find places where casts are needed (inserts dummy cast functions with type a -> b)
(sols1, msg1) <- findCasts1 [(["cast"], 1)] funTys funIds ast
let sols2 = sortBy (\(_,_,c1) -> \(_,_,c2) -> compare c1 c2) sols1
-- get eids and typ... | 3,752 | findCasts2 depth funTys funIds ast = do
lift $ putStrE "entered findCasts"
-- find places where casts are needed (inserts dummy cast functions with type a -> b)
(sols1, msg1) <- findCasts1 [(["cast"], 1)] funTys funIds ast
let sols2 = sortBy (\(_,_,c1) -> \(_,_,c2) -> compare c1 c2) sols1
-- get eids and typ... | 3,752 | true | false | 0 | 34 | 870 | 1,320 | 716 | 604 | null | null |
LouisJenkinsCS/Minimal-JVM | MateVMRuntime/Debug.hs | bsd-3-clause | showRefs :: [IntPtr] -> [String]
showRefs = map (show . intPtrToPtr) | 68 | showRefs :: [IntPtr] -> [String]
showRefs = map (show . intPtrToPtr) | 68 | showRefs = map (show . intPtrToPtr) | 35 | false | true | 0 | 7 | 10 | 31 | 17 | 14 | null | null |
cpennington/h4sh | testsuite/TestFramework.hs | gpl-2.0 | assertNotNull_ _ (_:_) = return () | 34 | assertNotNull_ _ (_:_) = return () | 34 | assertNotNull_ _ (_:_) = return () | 34 | false | false | 0 | 7 | 5 | 23 | 11 | 12 | null | null |
vikraman/ghc | compiler/basicTypes/OccName.hs | bsd-3-clause | mkRepEqOcc = mk_simple_deriv tvName "$r" | 51 | mkRepEqOcc = mk_simple_deriv tvName "$r" | 51 | mkRepEqOcc = mk_simple_deriv tvName "$r" | 51 | false | false | 0 | 5 | 15 | 11 | 5 | 6 | null | null |
vTurbine/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | constructorClassName = clsQual gHC_GENERICS (fsLit "Constructor") constructorClassKey | 85 | constructorClassName = clsQual gHC_GENERICS (fsLit "Constructor") constructorClassKey | 85 | constructorClassName = clsQual gHC_GENERICS (fsLit "Constructor") constructorClassKey | 85 | false | false | 0 | 7 | 6 | 19 | 9 | 10 | null | null |
geekingfrog/project-euler | Problem022.hs | gpl-3.0 | nameFile :: Parser [String]
nameFile = sepBy name (char ',') | 60 | nameFile :: Parser [String]
nameFile = sepBy name (char ',') | 60 | nameFile = sepBy name (char ',') | 32 | false | true | 0 | 7 | 9 | 28 | 14 | 14 | null | null |
bwire/checkers | app/Main.hs | bsd-3-clause | getConfig :: IO (Board, Player, Player)
getConfig = return (checkers8x8, randomComputer, randomComputer) | 105 | getConfig :: IO (Board, Player, Player)
getConfig = return (checkers8x8, randomComputer, randomComputer) | 104 | getConfig = return (checkers8x8, randomComputer, randomComputer) | 64 | false | true | 0 | 6 | 12 | 35 | 20 | 15 | null | null |
phaazon/OpenGLRaw | RegistryProcessor/src/Registry.hs | bsd-3-clause | xpEnums :: PU Enums
xpEnums =
xpWrap (\(a,b,c,d,e,f,g,h) -> Enums a b c d e f g h
,\(Enums a b c d e f g h) -> (a,b,c,d,e,f,g,h)) $
xpElem "enums" $
xp8Tuple
(xpAttrImplied "namespace" xpText)
(xpAttrImplied "group" xpText)
(xpAttrImplied "type" xpText)
(xpAttrImplied "start" xpInteger)
... | 447 | xpEnums :: PU Enums
xpEnums =
xpWrap (\(a,b,c,d,e,f,g,h) -> Enums a b c d e f g h
,\(Enums a b c d e f g h) -> (a,b,c,d,e,f,g,h)) $
xpElem "enums" $
xp8Tuple
(xpAttrImplied "namespace" xpText)
(xpAttrImplied "group" xpText)
(xpAttrImplied "type" xpText)
(xpAttrImplied "start" xpInteger)
... | 447 | xpEnums =
xpWrap (\(a,b,c,d,e,f,g,h) -> Enums a b c d e f g h
,\(Enums a b c d e f g h) -> (a,b,c,d,e,f,g,h)) $
xpElem "enums" $
xp8Tuple
(xpAttrImplied "namespace" xpText)
(xpAttrImplied "group" xpText)
(xpAttrImplied "type" xpText)
(xpAttrImplied "start" xpInteger)
(xpAttrImplied "e... | 427 | false | true | 0 | 11 | 104 | 217 | 113 | 104 | null | null |
hesselink/stack | src/System/Process/Read.hs | bsd-3-clause | -- | Get the list of directories searched
envSearchPath :: EnvOverride -> [FilePath]
envSearchPath = eoPath | 107 | envSearchPath :: EnvOverride -> [FilePath]
envSearchPath = eoPath | 65 | envSearchPath = eoPath | 22 | true | true | 0 | 8 | 15 | 26 | 12 | 14 | null | null |
hungaikev/learning-haskell | cis194/week1/intro.hs | apache-2.0 | -- The number of hailstone steps needed to reach 1 from a starting
-- number.
hailstoneLen :: Int -> Int
hailstoneLen n = intListLength (hailstoneSeq n) - 1 | 156 | hailstoneLen :: Int -> Int
hailstoneLen n = intListLength (hailstoneSeq n) - 1 | 78 | hailstoneLen n = intListLength (hailstoneSeq n) - 1 | 51 | true | true | 0 | 8 | 27 | 39 | 18 | 21 | null | null |
MaxwellBo/Advent_Of_Code_2016 | Day_7.hs | bsd-3-clause | main :: IO ()
main = do
fileContents <- readFile "inputs/Day_7_input.txt"
print ("Part 1", part 1 fileContents) -- 110 | 122 | main :: IO ()
main = do
fileContents <- readFile "inputs/Day_7_input.txt"
print ("Part 1", part 1 fileContents) -- 110 | 122 | main = do
fileContents <- readFile "inputs/Day_7_input.txt"
print ("Part 1", part 1 fileContents) -- 110 | 108 | false | true | 0 | 9 | 22 | 44 | 21 | 23 | null | null |
lally/orgmode | tests/Data/OrgModeSpec.hs | bsd-3-clause | propLinesOfNodeAreSequential :: FullyNumberedNode -> Bool
propLinesOfNodeAreSequential (FullyNumberedNode node) =
let linesSequential [] = True
linesSequential [Just _] = True
linesSequential lst@((Just x):(Just y):xs) =
(y == x+1) && linesSequential (tail lst)
in linesSequential$ map tlLineNum ... | 339 | propLinesOfNodeAreSequential :: FullyNumberedNode -> Bool
propLinesOfNodeAreSequential (FullyNumberedNode node) =
let linesSequential [] = True
linesSequential [Just _] = True
linesSequential lst@((Just x):(Just y):xs) =
(y == x+1) && linesSequential (tail lst)
in linesSequential$ map tlLineNum ... | 339 | propLinesOfNodeAreSequential (FullyNumberedNode node) =
let linesSequential [] = True
linesSequential [Just _] = True
linesSequential lst@((Just x):(Just y):xs) =
(y == x+1) && linesSequential (tail lst)
in linesSequential$ map tlLineNum $ getTextLines node | 281 | false | true | 2 | 15 | 61 | 131 | 63 | 68 | null | null |
anchor/rados-haskell | src/System/Rados/Monadic.hs | bsd-3-clause | askObjectPool :: MonadReader B.IOContext m => Object m (B.ByteString, B.IOContext)
askObjectPool =
liftM2 (,) ask (Object . lift $ ask) | 140 | askObjectPool :: MonadReader B.IOContext m => Object m (B.ByteString, B.IOContext)
askObjectPool =
liftM2 (,) ask (Object . lift $ ask) | 139 | askObjectPool =
liftM2 (,) ask (Object . lift $ ask) | 56 | false | true | 0 | 8 | 24 | 58 | 30 | 28 | null | null |
biegunka/terminal-size | src/System/Console/Terminal/Size.hs | bsd-3-clause | -- | /Not available on Windows:/
-- Get terminal window width and height for a specified file descriptor. If
-- it's not attached to a terminal then 'Nothing' is returned.
--
-- >>> import System.Console.Terminal.Size
-- >>> import System.Posix
-- >>> fdSize stdOutput
-- Just (Window {height = 56, width = 85})
-- >>> f... | 484 | fdSize :: Integral n => Fd -> IO (Maybe (Window n))
fdSize = Host.fdSize | 72 | fdSize = Host.fdSize | 20 | true | true | 0 | 11 | 81 | 50 | 30 | 20 | null | null |
facebookincubator/duckling | Duckling/Rules/MN.hs | bsd-3-clause | langRules (Seal Duration) = Duration.rules | 42 | langRules (Seal Duration) = Duration.rules | 42 | langRules (Seal Duration) = Duration.rules | 42 | false | false | 0 | 7 | 4 | 17 | 8 | 9 | null | null |
tensorflow/haskell | tensorflow-ops/src/TensorFlow/Gradient.hs | apache-2.0 | opGrad "VarHandleOp" _ _ _ = [] | 31 | opGrad "VarHandleOp" _ _ _ = [] | 31 | opGrad "VarHandleOp" _ _ _ = [] | 31 | false | false | 1 | 6 | 6 | 20 | 8 | 12 | null | null |
FranklinChen/NanoProlog | src/Language/Prolog/NanoProlog/Parser.hs | bsd-3-clause | pSepDot :: Parser String -> Parser [String]
pSepDot p = (:) <$> p <*> pList ((:) <$> pDot <*> p) | 96 | pSepDot :: Parser String -> Parser [String]
pSepDot p = (:) <$> p <*> pList ((:) <$> pDot <*> p) | 96 | pSepDot p = (:) <$> p <*> pList ((:) <$> pDot <*> p) | 52 | false | true | 0 | 9 | 19 | 53 | 28 | 25 | null | null |
GaloisInc/halvm-ghc | compiler/basicTypes/OccName.hs | bsd-3-clause | mk_simple_deriv_with :: NameSpace -> String -> Maybe String -> OccName -> OccName
mk_simple_deriv_with sp px Nothing occ = mk_deriv sp px (occNameString occ) | 178 | mk_simple_deriv_with :: NameSpace -> String -> Maybe String -> OccName -> OccName
mk_simple_deriv_with sp px Nothing occ = mk_deriv sp px (occNameString occ) | 178 | mk_simple_deriv_with sp px Nothing occ = mk_deriv sp px (occNameString occ) | 96 | false | true | 0 | 8 | 43 | 52 | 25 | 27 | null | null |
binesiyu/ifl | book/utils.hs | mit | -- in Gofer standard prelude
zip2 :: [a] -> [b] -> [(a,b)]
zip2 = zip | 70 | zip2 :: [a] -> [b] -> [(a,b)]
zip2 = zip | 41 | zip2 = zip | 11 | true | true | 0 | 8 | 15 | 35 | 21 | 14 | null | null |
apyrgio/ganeti | src/Ganeti/Constants.hs | bsd-2-clause | nrMaster :: String
nrMaster = Types.nodeRoleToRaw NRMaster | 58 | nrMaster :: String
nrMaster = Types.nodeRoleToRaw NRMaster | 58 | nrMaster = Types.nodeRoleToRaw NRMaster | 39 | false | true | 0 | 6 | 6 | 16 | 8 | 8 | null | null |
cavi-art/why3-hs | src/Why3/AsProcess.hs | bsd-3-clause | dischargeTheory :: ProverSpec a => a -> String -> SMTOutput
dischargeTheory prover = why3Output . getWhy3Output prover | 118 | dischargeTheory :: ProverSpec a => a -> String -> SMTOutput
dischargeTheory prover = why3Output . getWhy3Output prover | 118 | dischargeTheory prover = why3Output . getWhy3Output prover | 58 | false | true | 0 | 7 | 16 | 36 | 17 | 19 | null | null |
josuf107/Adverb | Adverb/Common.hs | gpl-3.0 | abidingly = id | 14 | abidingly = id | 14 | abidingly = id | 14 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
thomie/vector | Data/Vector/Storable.hs | bsd-3-clause | take = G.take | 13 | take = G.take | 13 | take = G.take | 13 | false | false | 1 | 6 | 2 | 12 | 4 | 8 | null | null |
Proclivis/wxHaskell | wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs | lgpl-2.1 | wxGREEN :: Int
wxGREEN = 4 | 26 | wxGREEN :: Int
wxGREEN = 4 | 26 | wxGREEN = 4 | 11 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
johnpmayer/elm-compiler | src/Parse/Helpers.hs | bsd-3-clause | dotSep1 :: IParser a -> IParser [a]
dotSep1 p =
(:) <$> p <*> many (try (char '.') >> p) | 90 | dotSep1 :: IParser a -> IParser [a]
dotSep1 p =
(:) <$> p <*> many (try (char '.') >> p) | 90 | dotSep1 p =
(:) <$> p <*> many (try (char '.') >> p) | 54 | false | true | 0 | 11 | 21 | 56 | 28 | 28 | null | null |
forste/haReFork | tools/base/SA/SCC.hs | bsd-3-clause | chop :: Set s -> Forest Vertex -> ST s (Forest Vertex)
chop m [] = return [] | 88 | chop :: Set s -> Forest Vertex -> ST s (Forest Vertex)
chop m [] = return [] | 88 | chop m [] = return [] | 25 | false | true | 0 | 10 | 29 | 53 | 23 | 30 | null | null |
kim/amazonka | gen/src/Gen/Names.hs | mpl-2.0 | instanceType :: Text -> Text
instanceType v
| Just (x, _) <- Text.uncons v
, isUpper x = v
| otherwise = Text.toUpper pre <> "_" <> suf
where
suf = upperHead . Text.replace "xl" "XL" $ Text.dropWhile (== '.') s
(pre, s) = Text.break (== '.') v | 266 | instanceType :: Text -> Text
instanceType v
| Just (x, _) <- Text.uncons v
, isUpper x = v
| otherwise = Text.toUpper pre <> "_" <> suf
where
suf = upperHead . Text.replace "xl" "XL" $ Text.dropWhile (== '.') s
(pre, s) = Text.break (== '.') v | 266 | instanceType v
| Just (x, _) <- Text.uncons v
, isUpper x = v
| otherwise = Text.toUpper pre <> "_" <> suf
where
suf = upperHead . Text.replace "xl" "XL" $ Text.dropWhile (== '.') s
(pre, s) = Text.break (== '.') v | 237 | false | true | 1 | 10 | 70 | 127 | 63 | 64 | null | null |
sajith/betty-web | Betty/Signup/Sendmail.hs | agpl-3.0 | ------------------------------------------------------------------------
sendVerificationEmail :: Email -> VerKey -> VerUrl -> HandlerT site IO ()
sendVerificationEmail email _ verurl =
liftIO $ renderSendMail (emptyMail $ Address Nothing "noreply")
{ mailTo = [Address Nothing email]
... | 437 | sendVerificationEmail :: Email -> VerKey -> VerUrl -> HandlerT site IO ()
sendVerificationEmail email _ verurl =
liftIO $ renderSendMail (emptyMail $ Address Nothing "noreply")
{ mailTo = [Address Nothing email]
, mailHeaders = verHeaders
, mailParts = [map ($ ve... | 363 | sendVerificationEmail email _ verurl =
liftIO $ renderSendMail (emptyMail $ Address Nothing "noreply")
{ mailTo = [Address Nothing email]
, mailHeaders = verHeaders
, mailParts = [map ($ verurl) [verText, verHtml]]
} | 289 | true | true | 0 | 11 | 118 | 105 | 57 | 48 | null | null |
lancelotsix/hs-tls | core/Network/TLS/Wire.hs | bsd-3-clause | putBigNum16 :: BigNum -> Put
putBigNum16 (BigNum b) = putOpaque16 b | 67 | putBigNum16 :: BigNum -> Put
putBigNum16 (BigNum b) = putOpaque16 b | 67 | putBigNum16 (BigNum b) = putOpaque16 b | 38 | false | true | 0 | 7 | 10 | 27 | 13 | 14 | null | null |
badp/ganeti | src/Ganeti/OpParams.hs | gpl-2.0 | pInstBeParams :: Field
pInstBeParams =
withDoc "Backend parameters for instance" .
renameField "InstBeParams" .
defaultField [| toJSObject [] |] $
simpleField "beparams" [t| JSObject JSValue |] | 201 | pInstBeParams :: Field
pInstBeParams =
withDoc "Backend parameters for instance" .
renameField "InstBeParams" .
defaultField [| toJSObject [] |] $
simpleField "beparams" [t| JSObject JSValue |] | 201 | pInstBeParams =
withDoc "Backend parameters for instance" .
renameField "InstBeParams" .
defaultField [| toJSObject [] |] $
simpleField "beparams" [t| JSObject JSValue |] | 178 | false | true | 0 | 8 | 33 | 44 | 24 | 20 | null | null |
mkm/sokoban | src/Set.hs | gpl-3.0 | empty :: (Ord a) => Set a
empty = Set Tree.empty | 48 | empty :: (Ord a) => Set a
empty = Set Tree.empty | 48 | empty = Set Tree.empty | 22 | false | true | 0 | 7 | 10 | 33 | 15 | 18 | null | null |
gbataille/pandoc | src/Text/Pandoc/Writers/MediaWiki.hs | gpl-2.0 | inlineToMediaWiki (Note contents) = do
contents' <- blockListToMediaWiki contents
modify (\s -> s { stNotes = True })
return $ "<ref>" ++ contents' ++ "</ref>"
-- note - may not work for notes with multiple blocks | 221 | inlineToMediaWiki (Note contents) = do
contents' <- blockListToMediaWiki contents
modify (\s -> s { stNotes = True })
return $ "<ref>" ++ contents' ++ "</ref>"
-- note - may not work for notes with multiple blocks | 221 | inlineToMediaWiki (Note contents) = do
contents' <- blockListToMediaWiki contents
modify (\s -> s { stNotes = True })
return $ "<ref>" ++ contents' ++ "</ref>"
-- note - may not work for notes with multiple blocks | 221 | false | false | 0 | 11 | 43 | 64 | 31 | 33 | null | null |
Bolt64/my_code | haskell/scheme/simpleparser1.hs | mit | isNumber _ = LispBool False | 27 | isNumber _ = LispBool False | 27 | isNumber _ = LispBool False | 27 | false | false | 0 | 5 | 4 | 12 | 5 | 7 | null | null |
abbradar/netwire | Control/Wire/Event.hs | bsd-3-clause | -- | Fold the given unique event.
eventU :: b -> (a -> b) -> UniqueEvent a -> b
eventU = event | 95 | eventU :: b -> (a -> b) -> UniqueEvent a -> b
eventU = event | 60 | eventU = event | 14 | true | true | 0 | 8 | 22 | 34 | 18 | 16 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.