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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
adept/hledger | hledger-lib/Hledger/Data/Amount.hs | gpl-3.0 | -- | Compact labelled trace of a mixed amount, for debugging.
ltraceamount :: String -> MixedAmount -> MixedAmount
ltraceamount s a = trace (s ++ ": " ++ showMixedAmount a) a | 174 | ltraceamount :: String -> MixedAmount -> MixedAmount
ltraceamount s a = trace (s ++ ": " ++ showMixedAmount a) a | 112 | ltraceamount s a = trace (s ++ ": " ++ showMixedAmount a) a | 59 | true | true | 0 | 8 | 30 | 44 | 22 | 22 | null | null |
brendanhay/gogol | gogol-cloudshell/gen/Network/Google/CloudShell/Types/Product.hs | mpl-2.0 | -- | Immutable. Full name of this resource, in the format
-- \`users\/{owner_email}\/environments\/{environment_id}\`.
-- \`{owner_email}\` is the email address of the user to whom this
-- environment belongs, and \`{environment_id}\` is the identifier of this
-- environment. For example,
-- \`users\/someone\'example.c... | 433 | eName :: Lens' Environment (Maybe Text)
eName = lens _eName (\ s a -> s{_eName = a}) | 84 | eName = lens _eName (\ s a -> s{_eName = a}) | 44 | true | true | 1 | 9 | 57 | 54 | 30 | 24 | null | null |
TomMD/cryptol | src/Cryptol/TypeCheck/Solver/CrySAT.hs | bsd-3-clause | tryImprove :: (Name,Integer) -> F
tryImprove (x,n) =
do s <- FM get
case satCheckSat (SAT.assert (satVar x SAT.:/= SAT.K n) (linear s)) of
Nothing -> doImprove x n
Just _ -> return () | 205 | tryImprove :: (Name,Integer) -> F
tryImprove (x,n) =
do s <- FM get
case satCheckSat (SAT.assert (satVar x SAT.:/= SAT.K n) (linear s)) of
Nothing -> doImprove x n
Just _ -> return () | 205 | tryImprove (x,n) =
do s <- FM get
case satCheckSat (SAT.assert (satVar x SAT.:/= SAT.K n) (linear s)) of
Nothing -> doImprove x n
Just _ -> return () | 171 | false | true | 0 | 14 | 55 | 108 | 52 | 56 | null | null |
Cahu/krpc-hs | src/KRPCHS/SpaceCenter.hs | gpl-3.0 | getContractTitleStream :: KRPCHS.SpaceCenter.Contract -> RPCContext (KRPCStream (Data.Text.Text))
getContractTitleStream thisArg = requestStream $ getContractTitleStreamReq thisArg | 180 | getContractTitleStream :: KRPCHS.SpaceCenter.Contract -> RPCContext (KRPCStream (Data.Text.Text))
getContractTitleStream thisArg = requestStream $ getContractTitleStreamReq thisArg | 180 | getContractTitleStream thisArg = requestStream $ getContractTitleStreamReq thisArg | 82 | false | true | 0 | 11 | 13 | 47 | 23 | 24 | null | null |
ashutoshrishi/blogserver | src/PostParser.hs | bsd-3-clause | withPostFile :: FilePath -> ([HeaderField] -> FilePath -> IO a) -> IO a
withPostFile pf action = do
let pre = parseFilePath pf
action pre pf
-----------------------------------------------------------------------------
-- Intermediate Types for a simple text Post structure --
--------------... | 383 | withPostFile :: FilePath -> ([HeaderField] -> FilePath -> IO a) -> IO a
withPostFile pf action = do
let pre = parseFilePath pf
action pre pf
-----------------------------------------------------------------------------
-- Intermediate Types for a simple text Post structure --
--------------... | 383 | withPostFile pf action = do
let pre = parseFilePath pf
action pre pf
-----------------------------------------------------------------------------
-- Intermediate Types for a simple text Post structure --
----------------------------------------------------------------------------- | 311 | false | true | 0 | 11 | 66 | 72 | 34 | 38 | null | null |
JanAhrens/xing-api-haskell | tests/Types/BirthDateTest.hs | bsd-3-clause | test_nullValuesAreNotAValidBirthDate :: IO ()
test_nullValuesAreNotAValidBirthDate
= assertInvalidBirthDate
" { \
\ \"day\": null, \
\ \"month\": null, \
\ \"year\": null \
\ } " | 259 | test_nullValuesAreNotAValidBirthDate :: IO ()
test_nullValuesAreNotAValidBirthDate
= assertInvalidBirthDate
" { \
\ \"day\": null, \
\ \"month\": null, \
\ \"year\": null \
\ } " | 259 | test_nullValuesAreNotAValidBirthDate
= assertInvalidBirthDate
" { \
\ \"day\": null, \
\ \"month\": null, \
\ \"year\": null \
\ } " | 213 | false | true | 0 | 7 | 105 | 21 | 9 | 12 | null | null |
stallmanifold/matasano-crypto-challenges | src/Set1/Challenge6.hs | apache-2.0 | guessedPlainText :: IO BS.ByteString
guessedPlainText = xorWithKey <$> secret <*> guessedKey | 92 | guessedPlainText :: IO BS.ByteString
guessedPlainText = xorWithKey <$> secret <*> guessedKey | 92 | guessedPlainText = xorWithKey <$> secret <*> guessedKey | 55 | false | true | 0 | 6 | 10 | 24 | 12 | 12 | null | null |
aurapm/aura | aura/exec/Aura/Flags.hs | gpl-3.0 | remove :: Parser PacmanOp
remove = bigR *> (Remove <$> mods <*> somePkgs)
where bigR = flag' () (long "remove" <> short 'R' <> help "Uninstall packages.")
mods = S.fromList <$> many (cascade <|> nosave <|> recurse <|> unneeded)
cascade = flag' RemoveCascade (long "cascade" <> short 'c' <> hid... | 749 | remove :: Parser PacmanOp
remove = bigR *> (Remove <$> mods <*> somePkgs)
where bigR = flag' () (long "remove" <> short 'R' <> help "Uninstall packages.")
mods = S.fromList <$> many (cascade <|> nosave <|> recurse <|> unneeded)
cascade = flag' RemoveCascade (long "cascade" <> short 'c' <> hid... | 749 | remove = bigR *> (Remove <$> mods <*> somePkgs)
where bigR = flag' () (long "remove" <> short 'R' <> help "Uninstall packages.")
mods = S.fromList <$> many (cascade <|> nosave <|> recurse <|> unneeded)
cascade = flag' RemoveCascade (long "cascade" <> short 'c' <> hidden <> help "Remove packag... | 723 | false | true | 8 | 10 | 164 | 254 | 112 | 142 | null | null |
iu-parfunc/criterion | Criterion/Report.hs | bsd-2-clause | includeFile searchPath name = liftIO $ foldr go (return T.empty) searchPath
where go dir next = do
let path = dir </> H.decodeStr name
T.readFile path `E.catch` \(_::IOException) -> next
-- | A problem arose with a template. | 253 | includeFile searchPath name = liftIO $ foldr go (return T.empty) searchPath
where go dir next = do
let path = dir </> H.decodeStr name
T.readFile path `E.catch` \(_::IOException) -> next
-- | A problem arose with a template. | 253 | includeFile searchPath name = liftIO $ foldr go (return T.empty) searchPath
where go dir next = do
let path = dir </> H.decodeStr name
T.readFile path `E.catch` \(_::IOException) -> next
-- | A problem arose with a template. | 253 | false | false | 1 | 12 | 66 | 96 | 44 | 52 | null | null |
wouwouwou/2017_module_8 | src/haskell/PP-project-2016/CodeGen.hs | apache-2.0 | insertFPointers :: [Instruction] -> ([ProcPointer], [CallPointer]) -> [Instruction]
insertFPointers [] _ = [] | 110 | insertFPointers :: [Instruction] -> ([ProcPointer], [CallPointer]) -> [Instruction]
insertFPointers [] _ = [] | 110 | insertFPointers [] _ = [] | 26 | false | true | 0 | 8 | 13 | 46 | 26 | 20 | null | null |
alexander-at-github/eta | compiler/ETA/SimplStg/UnariseStg.hs | bsd-3-clause | unarise :: UniqSupply -> [StgBinding] -> [StgBinding]
unarise us binds = zipWith (\us -> unariseBinding us init_env) (listSplitUniqSupply us) binds
where -- See Note [Nullary unboxed tuple] in Type.lhs
init_env = unitVarEnv ubxTupleId0 [realWorldPrimId] | 263 | unarise :: UniqSupply -> [StgBinding] -> [StgBinding]
unarise us binds = zipWith (\us -> unariseBinding us init_env) (listSplitUniqSupply us) binds
where -- See Note [Nullary unboxed tuple] in Type.lhs
init_env = unitVarEnv ubxTupleId0 [realWorldPrimId] | 263 | unarise us binds = zipWith (\us -> unariseBinding us init_env) (listSplitUniqSupply us) binds
where -- See Note [Nullary unboxed tuple] in Type.lhs
init_env = unitVarEnv ubxTupleId0 [realWorldPrimId] | 209 | false | true | 0 | 8 | 43 | 73 | 38 | 35 | null | null |
mrakgr/futhark | src/futhark-test.hs | bsd-3-clause | defaultConfig :: TestConfig
defaultConfig = TestConfig { configTestMode = Everything
, configExclude = [ "disable" ]
, configPrograms =
ProgConfig
{ configCompiler = Left "futhark-c"
... | 540 | defaultConfig :: TestConfig
defaultConfig = TestConfig { configTestMode = Everything
, configExclude = [ "disable" ]
, configPrograms =
ProgConfig
{ configCompiler = Left "futhark-c"
... | 540 | defaultConfig = TestConfig { configTestMode = Everything
, configExclude = [ "disable" ]
, configPrograms =
ProgConfig
{ configCompiler = Left "futhark-c"
, configInterpreter = Le... | 512 | false | true | 0 | 10 | 293 | 81 | 44 | 37 | null | null |
jasonbaker/hamt | Tests.hs | mit | test_empty_find = TestCase (assertEqual "Assert empty trie returns Nothing"
(find "asdf" htempty) Nothing) | 146 | test_empty_find = TestCase (assertEqual "Assert empty trie returns Nothing"
(find "asdf" htempty) Nothing) | 146 | test_empty_find = TestCase (assertEqual "Assert empty trie returns Nothing"
(find "asdf" htempty) Nothing) | 146 | false | false | 0 | 9 | 52 | 27 | 13 | 14 | null | null |
djeik/goto | libgoto/Language/GoLite/Parser/Stmt.hs | mit | breakStmtP :: Parser SrcAnnStatement
breakStmtP = do
(Ann a _) <- withSrcAnnConst $ kwBreak >>= requireSemiP
pure $ Fix $ Ann a $ BreakStmt
-- | Parses a fallthrough statement, which consists of the \"fallthrough\"
-- keyword. This parser always fails, since this keyword is unsupported in
-- GoLite. | 309 | breakStmtP :: Parser SrcAnnStatement
breakStmtP = do
(Ann a _) <- withSrcAnnConst $ kwBreak >>= requireSemiP
pure $ Fix $ Ann a $ BreakStmt
-- | Parses a fallthrough statement, which consists of the \"fallthrough\"
-- keyword. This parser always fails, since this keyword is unsupported in
-- GoLite. | 309 | breakStmtP = do
(Ann a _) <- withSrcAnnConst $ kwBreak >>= requireSemiP
pure $ Fix $ Ann a $ BreakStmt
-- | Parses a fallthrough statement, which consists of the \"fallthrough\"
-- keyword. This parser always fails, since this keyword is unsupported in
-- GoLite. | 272 | false | true | 0 | 9 | 57 | 64 | 30 | 34 | null | null |
norm2782/uuagc | src/TokenDef.hs | bsd-3-clause | shiftLeft :: [[(Pos, a)]] -> [[(Pos, a)]]
shiftLeft lns = let sh = let m = minimum . checkEmpty . filter (>=1) . map (column.fst.head) $ lns
checkEmpty [] = [1]
checkEmpty x = x
in if m >= 1 then m-1 else 0
... | 481 | shiftLeft :: [[(Pos, a)]] -> [[(Pos, a)]]
shiftLeft lns = let sh = let m = minimum . checkEmpty . filter (>=1) . map (column.fst.head) $ lns
checkEmpty [] = [1]
checkEmpty x = x
in if m >= 1 then m-1 else 0
... | 481 | shiftLeft lns = let sh = let m = minimum . checkEmpty . filter (>=1) . map (column.fst.head) $ lns
checkEmpty [] = [1]
checkEmpty x = x
in if m >= 1 then m-1 else 0
shift (p,t) = (i... | 439 | false | true | 0 | 18 | 236 | 214 | 114 | 100 | null | null |
spechub/Hets | Proofs/Global.hs | gpl-2.0 | addParentLinks :: DGraph -> Node -> Node -> [DGLinkLab] -> DGraph
addParentLinks dg src tgt ls =
let oldLinks = map (\ (_, _, l) -> l)
$ filter (\ (s, _, _) -> s == src) $ innDG dg tgt
newLinks = map (\ l -> l
{ dgl_id = defaultEdgeId
, dgl_type = invali... | 460 | addParentLinks :: DGraph -> Node -> Node -> [DGLinkLab] -> DGraph
addParentLinks dg src tgt ls =
let oldLinks = map (\ (_, _, l) -> l)
$ filter (\ (s, _, _) -> s == src) $ innDG dg tgt
newLinks = map (\ l -> l
{ dgl_id = defaultEdgeId
, dgl_type = invali... | 460 | addParentLinks dg src tgt ls =
let oldLinks = map (\ (_, _, l) -> l)
$ filter (\ (s, _, _) -> s == src) $ innDG dg tgt
newLinks = map (\ l -> l
{ dgl_id = defaultEdgeId
, dgl_type = invalidateProof $ dgl_type l }) ls
in if null oldLinks then
c... | 394 | false | true | 0 | 15 | 161 | 195 | 103 | 92 | null | null |
Soostone/bloodhound | src/Database/Bloodhound/Client.hs | bsd-3-clause | dispatchSearch :: MonadBH m => Text -> Search -> m Reply
dispatchSearch url search = post url' (Just (encode search))
where url' = appendSearchTypeParam url (searchType search)
-- | 'searchAll', given a 'Search', will perform that search against all indexes
-- on an Elasticsearch server. Try to avoid doing this if... | 496 | dispatchSearch :: MonadBH m => Text -> Search -> m Reply
dispatchSearch url search = post url' (Just (encode search))
where url' = appendSearchTypeParam url (searchType search)
-- | 'searchAll', given a 'Search', will perform that search against all indexes
-- on an Elasticsearch server. Try to avoid doing this if... | 496 | dispatchSearch url search = post url' (Just (encode search))
where url' = appendSearchTypeParam url (searchType search)
-- | 'searchAll', given a 'Search', will perform that search against all indexes
-- on an Elasticsearch server. Try to avoid doing this if it can be helped.
--
-- >>> let query = TermQuery (Term ... | 439 | false | true | 0 | 9 | 87 | 76 | 39 | 37 | null | null |
danr/hipspec | testsuite/prod/zeno_version/PropT08.hs | gpl-3.0 | -- Lists
length :: [a] -> Nat
length [] = Z | 44 | length :: [a] -> Nat
length [] = Z | 34 | length [] = Z | 13 | true | true | 0 | 6 | 11 | 24 | 13 | 11 | null | null |
ichistmeinname/holumbus | src/Holumbus/Index/Common/Occurences.hs | mit | updateOccurrences :: (DocId -> DocId) -> Occurrences -> Occurrences
updateOccurrences f = foldWithKeyDocIdMap
(\ d ps res -> insertWithDocIdMap IS.union (f d) ps res) emptyOccurrences | 219 | updateOccurrences :: (DocId -> DocId) -> Occurrences -> Occurrences
updateOccurrences f = foldWithKeyDocIdMap
(\ d ps res -> insertWithDocIdMap IS.union (f d) ps res) emptyOccurrences | 219 | updateOccurrences f = foldWithKeyDocIdMap
(\ d ps res -> insertWithDocIdMap IS.union (f d) ps res) emptyOccurrences | 145 | false | true | 0 | 10 | 60 | 63 | 32 | 31 | null | null |
ekmett/ekg | System/Remote/Gauge.hs | bsd-3-clause | -- | Set the gauge to the result of applying the given function to the
-- value.
modify :: (Int -> Int) -> Gauge -> IO ()
modify f (C ref) = do
!_ <- atomicModifyIORef ref $ \ i -> let i' = f i in (i', i')
return () | 223 | modify :: (Int -> Int) -> Gauge -> IO ()
modify f (C ref) = do
!_ <- atomicModifyIORef ref $ \ i -> let i' = f i in (i', i')
return () | 142 | modify f (C ref) = do
!_ <- atomicModifyIORef ref $ \ i -> let i' = f i in (i', i')
return () | 101 | true | true | 0 | 15 | 58 | 97 | 46 | 51 | null | null |
jgoerzen/dtmconv | HaXml-1.12/src/Text/XML/HaXml/Haskell2Xml.hs | gpl-2.0 | showConstr n _ = error "no constructors for builtin types" | 58 | showConstr n _ = error "no constructors for builtin types" | 58 | showConstr n _ = error "no constructors for builtin types" | 58 | false | false | 0 | 5 | 9 | 14 | 6 | 8 | null | null |
k-bx/snap-server | test/Snap/Internal/Http/Server/Parser/Tests.hs | bsd-3-clause | testMethods :: Test
testMethods = testCase "parser/methods" $ mapM_ testOne ms
where
ms = [ GET, POST, HEAD, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH
, Method "ZZZ" ]
mToStr (Method m) = m
mToStr m = S.pack $ show m
restOfRequest = [ " / HTTP/1.1\r\nz:b\r\nq:\r\nw\r\n", "foo: ",... | 955 | testMethods :: Test
testMethods = testCase "parser/methods" $ mapM_ testOne ms
where
ms = [ GET, POST, HEAD, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH
, Method "ZZZ" ]
mToStr (Method m) = m
mToStr m = S.pack $ show m
restOfRequest = [ " / HTTP/1.1\r\nz:b\r\nq:\r\nw\r\n", "foo: ",... | 955 | testMethods = testCase "parser/methods" $ mapM_ testOne ms
where
ms = [ GET, POST, HEAD, PUT, DELETE, TRACE, OPTIONS, CONNECT, PATCH
, Method "ZZZ" ]
mToStr (Method m) = m
mToStr m = S.pack $ show m
restOfRequest = [ " / HTTP/1.1\r\nz:b\r\nq:\r\nw\r\n", "foo: ", "bar"
... | 935 | false | true | 8 | 13 | 369 | 279 | 137 | 142 | null | null |
spechub/Hets | Proofs/HideTheoremShift.hs | gpl-2.0 | hideThmShiftRule :: EdgeId -> DGRule
hideThmShiftRule = DGRuleWithEdge "HideTheoremShift" | 89 | hideThmShiftRule :: EdgeId -> DGRule
hideThmShiftRule = DGRuleWithEdge "HideTheoremShift" | 89 | hideThmShiftRule = DGRuleWithEdge "HideTheoremShift" | 52 | false | true | 0 | 7 | 8 | 24 | 10 | 14 | null | null |
Pitometsu/bake | src/Development/Bake/Server/Database.hs | bsd-3-clause | save :: Connection -> FilePath -> IO ()
save conn file = void $ bracket (open file) close $ \dest -> bracket
(SQ.backupInit (connectionHandle dest) (fromString "main") (connectionHandle conn) (fromString "main"))
SQ.backupFinish $
\b -> SQ.backupStep b (-1) | 269 | save :: Connection -> FilePath -> IO ()
save conn file = void $ bracket (open file) close $ \dest -> bracket
(SQ.backupInit (connectionHandle dest) (fromString "main") (connectionHandle conn) (fromString "main"))
SQ.backupFinish $
\b -> SQ.backupStep b (-1) | 269 | save conn file = void $ bracket (open file) close $ \dest -> bracket
(SQ.backupInit (connectionHandle dest) (fromString "main") (connectionHandle conn) (fromString "main"))
SQ.backupFinish $
\b -> SQ.backupStep b (-1) | 229 | false | true | 0 | 9 | 49 | 120 | 59 | 61 | null | null |
qsn/rhcalc | src/Operators.hs | mit | op_inv :: Fct
op_inv [a] = case a of
Int n -> do_frac (n,1)
Frac (n,d) -> do_frac (n,d)
Real x -> [Real $ 1/x]
where do_frac (n,d) = op_rnd $ [Frac (d,n)] | 171 | op_inv :: Fct
op_inv [a] = case a of
Int n -> do_frac (n,1)
Frac (n,d) -> do_frac (n,d)
Real x -> [Real $ 1/x]
where do_frac (n,d) = op_rnd $ [Frac (d,n)] | 171 | op_inv [a] = case a of
Int n -> do_frac (n,1)
Frac (n,d) -> do_frac (n,d)
Real x -> [Real $ 1/x]
where do_frac (n,d) = op_rnd $ [Frac (d,n)] | 157 | false | true | 4 | 10 | 49 | 112 | 61 | 51 | null | null |
adnelson/semver-range | src/Data/SemVer/Parser.hs | mit | -- | Parse a semver from a haskell version. There must be exactly
-- three numbers in the versionBranch field.
fromHaskellVersion :: Version -> Either Text SemVer
fromHaskellVersion v = case versionBranch v of
[x, y, z] -> return (semver x y z) -- ignoring version tags since deprecated
bad -> do
let badVer = in... | 516 | fromHaskellVersion :: Version -> Either Text SemVer
fromHaskellVersion v = case versionBranch v of
[x, y, z] -> return (semver x y z) -- ignoring version tags since deprecated
bad -> do
let badVer = intercalate "." (map show bad)
Left $ pack ("Not a SemVer version: " <> badVer)
-- | Parses the first argume... | 405 | fromHaskellVersion v = case versionBranch v of
[x, y, z] -> return (semver x y z) -- ignoring version tags since deprecated
bad -> do
let badVer = intercalate "." (map show bad)
Left $ pack ("Not a SemVer version: " <> badVer)
-- | Parses the first argument as a range and the second argument as a semver,
-... | 353 | true | true | 2 | 13 | 104 | 110 | 55 | 55 | null | null |
CulpaBS/wbBach | src/Language/Futhark/Attributes.hs | bsd-3-clause | setUniqueness (Tuple ets) u =
Tuple $ map (`setUniqueness` u) ets | 67 | setUniqueness (Tuple ets) u =
Tuple $ map (`setUniqueness` u) ets | 67 | setUniqueness (Tuple ets) u =
Tuple $ map (`setUniqueness` u) ets | 67 | false | false | 2 | 7 | 12 | 33 | 17 | 16 | null | null |
stevezhee/grm | Grm/Lex.hs | bsd-3-clause | unTSymbol :: Token t -> String
unTSymbol (TSymbol _ b) = b | 58 | unTSymbol :: Token t -> String
unTSymbol (TSymbol _ b) = b | 58 | unTSymbol (TSymbol _ b) = b | 27 | false | true | 0 | 7 | 11 | 29 | 14 | 15 | null | null |
ancientlanguage/haskell-analysis | prepare/src/Prepare/Decompose.hs | mit | decomposeChar '\x2F846' = "\x5584" | 34 | decomposeChar '\x2F846' = "\x5584" | 34 | decomposeChar '\x2F846' = "\x5584" | 34 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
hjwylde/omnifmt | app/Main.hs | bsd-3-clause | ogFunction :: MonadLogger m => Status -> Text -> m ()
logFunction status
| status `elem` [Unknown, Error, Timeout] = logWarnN
| status `elem` [Unsupported, Pretty] = logDebugN
| otherwise = logInfoN
| 251 | logFunction :: MonadLogger m => Status -> Text -> m ()
logFunction status
| status `elem` [Unknown, Error, Timeout] = logWarnN
| status `elem` [Unsupported, Pretty] = logDebugN
| otherwise = logInfoN | 251 | logFunction status
| status `elem` [Unknown, Error, Timeout] = logWarnN
| status `elem` [Unsupported, Pretty] = logDebugN
| otherwise = logInfoN | 196 | false | true | 1 | 10 | 84 | 89 | 46 | 43 | null | null |
tjakway/blackjack-simulator | test/Jakway/Blackjack/Tests/DatabaseTests/Common.hs | mit | -- |initialize the database then run the transaction
-- don't forget to commit!
withSingleTableTestDatabase transaction = withTempDatabase test_db_name basicTestTableNames (\conn -> DB.enableForeignKeys conn >> DB.initializeDatabase conn [basicTestTableNames] >> DB.insertAllCards conn >> commit conn >> (handleSqlError ... | 340 | withSingleTableTestDatabase transaction = withTempDatabase test_db_name basicTestTableNames (\conn -> DB.enableForeignKeys conn >> DB.initializeDatabase conn [basicTestTableNames] >> DB.insertAllCards conn >> commit conn >> (handleSqlError $ transaction conn)) | 260 | withSingleTableTestDatabase transaction = withTempDatabase test_db_name basicTestTableNames (\conn -> DB.enableForeignKeys conn >> DB.initializeDatabase conn [basicTestTableNames] >> DB.insertAllCards conn >> commit conn >> (handleSqlError $ transaction conn)) | 260 | true | false | 0 | 13 | 37 | 75 | 37 | 38 | null | null |
jtojnar/haste-compiler | libraries/ghc-7.10/ghc-prim/GHC/PrimopWrappers.hs | bsd-3-clause | sizeofArray# :: Array# a -> Int#
sizeofArray# a1 = (GHC.Prim.sizeofArray#) a1 | 77 | sizeofArray# :: Array# a -> Int#
sizeofArray# a1 = (GHC.Prim.sizeofArray#) a1 | 77 | sizeofArray# a1 = (GHC.Prim.sizeofArray#) a1 | 44 | false | true | 0 | 7 | 10 | 35 | 16 | 19 | null | null |
green-haskell/ghc | compiler/simplCore/SetLevels.hs | bsd-3-clause | maxFvLevel :: (Var -> Bool) -> LevelEnv -> VarSet -> Level
maxFvLevel max_me (LE { le_lvl_env = lvl_env, le_env = id_env }) var_set
= foldVarSet max_in tOP_LEVEL var_set
where
max_in in_var lvl
= foldr max_out lvl (case lookupVarEnv id_env in_var of
Just (abs_vars, _) -> a... | 662 | maxFvLevel :: (Var -> Bool) -> LevelEnv -> VarSet -> Level
maxFvLevel max_me (LE { le_lvl_env = lvl_env, le_env = id_env }) var_set
= foldVarSet max_in tOP_LEVEL var_set
where
max_in in_var lvl
= foldr max_out lvl (case lookupVarEnv id_env in_var of
Just (abs_vars, _) -> a... | 662 | maxFvLevel max_me (LE { le_lvl_env = lvl_env, le_env = id_env }) var_set
= foldVarSet max_in tOP_LEVEL var_set
where
max_in in_var lvl
= foldr max_out lvl (case lookupVarEnv id_env in_var of
Just (abs_vars, _) -> abs_vars
Nothing ... | 603 | false | true | 2 | 11 | 263 | 182 | 88 | 94 | null | null |
keithodulaigh/Hets | Common/RunParsers.hs | gpl-2.0 | parseSpec :: GlobalAnnos -> StringParser -> IO ()
parseSpec ga p =
getContents >>= putStrLn . showParse
. runParser (p ga << eof) (emptyAnnos ()) "" | 154 | parseSpec :: GlobalAnnos -> StringParser -> IO ()
parseSpec ga p =
getContents >>= putStrLn . showParse
. runParser (p ga << eof) (emptyAnnos ()) "" | 154 | parseSpec ga p =
getContents >>= putStrLn . showParse
. runParser (p ga << eof) (emptyAnnos ()) "" | 104 | false | true | 0 | 9 | 31 | 66 | 32 | 34 | null | null |
juhp/stack | src/Stack/Package.hs | bsd-3-clause | -- | Executable-only packages which come pre-installed with GHC and do
-- not need to be built. Without this exception, we would either end
-- up unnecessarily rebuilding these packages, or failing because the
-- packages do not appear in the Stackage snapshot.
preInstalledPackages :: Set D.PackageName
preInstalledPack... | 400 | preInstalledPackages :: Set D.PackageName
preInstalledPackages = S.fromList
[ D.mkPackageName "hsc2hs"
, D.mkPackageName "haddock"
] | 138 | preInstalledPackages = S.fromList
[ D.mkPackageName "hsc2hs"
, D.mkPackageName "haddock"
] | 96 | true | true | 0 | 7 | 62 | 41 | 22 | 19 | null | null |
AlexeyRaga/eta | compiler/ETA/Prelude/PrelNames.hs | bsd-3-clause | sumTyConKey = mkPreludeTyConUnique 141 | 40 | sumTyConKey = mkPreludeTyConUnique 141 | 40 | sumTyConKey = mkPreludeTyConUnique 141 | 40 | false | false | 0 | 5 | 5 | 9 | 4 | 5 | null | null |
onponomarev/ganeti | test/hs/Test/Ganeti/TestCommon.hs | bsd-2-clause | -- | Maximum disk (8TiB, somewhat random value).
maxDsk :: Int
maxDsk = 1024 * 1024 * 8 | 87 | maxDsk :: Int
maxDsk = 1024 * 1024 * 8 | 38 | maxDsk = 1024 * 1024 * 8 | 24 | true | true | 0 | 6 | 17 | 20 | 11 | 9 | null | null |
energyflowanalysis/efa-2.1 | src/EFA/Application/Optimisation/Loop.hs | bsd-3-clause | showEtaLoop ::
(Show node, Show a, PrintfArg a, Arith.Constant a) =>
Params.Optimisation node [] Sweep UV.Vector a ->
[EtaLoopItem node Sweep UV.Vector a z] ->
[String]
showEtaLoop optParams loop =
iterateLoops optParams showEtaLoopItem showBalanceLoopItem (zip [0..] loop) | 283 | showEtaLoop ::
(Show node, Show a, PrintfArg a, Arith.Constant a) =>
Params.Optimisation node [] Sweep UV.Vector a ->
[EtaLoopItem node Sweep UV.Vector a z] ->
[String]
showEtaLoop optParams loop =
iterateLoops optParams showEtaLoopItem showBalanceLoopItem (zip [0..] loop) | 283 | showEtaLoop optParams loop =
iterateLoops optParams showEtaLoopItem showBalanceLoopItem (zip [0..] loop) | 106 | false | true | 0 | 10 | 46 | 109 | 55 | 54 | null | null |
brendanhay/gogol | gogol-dlp/gen/Network/Google/DLP/Types/Product.hs | mpl-2.0 | -- | The re-identified item.
gpdvrcrItem :: Lens' GooglePrivacyDlpV2ReidentifyContentResponse (Maybe GooglePrivacyDlpV2ContentItem)
gpdvrcrItem
= lens _gpdvrcrItem (\ s a -> s{_gpdvrcrItem = a}) | 196 | gpdvrcrItem :: Lens' GooglePrivacyDlpV2ReidentifyContentResponse (Maybe GooglePrivacyDlpV2ContentItem)
gpdvrcrItem
= lens _gpdvrcrItem (\ s a -> s{_gpdvrcrItem = a}) | 167 | gpdvrcrItem
= lens _gpdvrcrItem (\ s a -> s{_gpdvrcrItem = a}) | 64 | true | true | 0 | 9 | 23 | 48 | 25 | 23 | null | null |
peterokagey/haskellOEIS | src/Helpers/GrahamLinearAlgebra3.hs | apache-2.0 | tupleBuilder :: Int -- e.g. 5
-> Int -- e.g. 7
-> Int -- e.g. 3
-> Int -- e.g. 1
-> [(Int, Int)] -- e.g. [(1,1), (4,1), (7,1)] (5 + 1, 5 + 4, and 5 + 7 are all divisible by 3.)
tupleBuilder n terms modulus x = zip indexes [x,x..] wh... | 480 | tupleBuilder :: Int -- e.g. 5
-> Int -- e.g. 7
-> Int -- e.g. 3
-> Int -- e.g. 1
-> [(Int, Int)]
tupleBuilder n terms modulus x = zip indexes [x,x..] where
offset = modulus + n `mod` (-modulus)
numberOfIndices = (terms + offset)... | 400 | tupleBuilder n terms modulus x = zip indexes [x,x..] where
offset = modulus + n `mod` (-modulus)
numberOfIndices = (terms + offset) `div` modulus
indexes = map (\i -> modulus * i - offset) [1..numberOfIndices] | 215 | true | true | 0 | 12 | 172 | 137 | 77 | 60 | null | null |
palas/detparaminf | src/DetParamInf/DetParamInf.hs | bsd-2-clause | getGroupCharsAux2 (h:t) inThis onlyOnce severalTimes
| S.member h inThis = getGroupCharsAux2 t inThis onlyOnce severalTimes
| otherwise = case activeFind h onlyOnce of
Just newOnlyOnce2 -> getGroupCharsAux2 t newInThis newOnlyOnce2 newSeveralTimes
Nothing -> if S.member h several... | 660 | getGroupCharsAux2 (h:t) inThis onlyOnce severalTimes
| S.member h inThis = getGroupCharsAux2 t inThis onlyOnce severalTimes
| otherwise = case activeFind h onlyOnce of
Just newOnlyOnce2 -> getGroupCharsAux2 t newInThis newOnlyOnce2 newSeveralTimes
Nothing -> if S.member h several... | 660 | getGroupCharsAux2 (h:t) inThis onlyOnce severalTimes
| S.member h inThis = getGroupCharsAux2 t inThis onlyOnce severalTimes
| otherwise = case activeFind h onlyOnce of
Just newOnlyOnce2 -> getGroupCharsAux2 t newInThis newOnlyOnce2 newSeveralTimes
Nothing -> if S.member h several... | 660 | false | false | 3 | 10 | 210 | 156 | 74 | 82 | null | null |
GaloisInc/stack | src/Stack/Config.hs | bsd-3-clause | determineStackRoot :: (MonadIO m, MonadThrow m) => m (Path Abs Dir)
determineStackRoot = do
env <- liftIO getEnvironment
case lookup stackRootEnvVar env of
Nothing -> do
x <- liftIO $ getAppUserDataDirectory stackProgName
parseAbsDir x
Just x -> do
y <- liftIO... | 526 | determineStackRoot :: (MonadIO m, MonadThrow m) => m (Path Abs Dir)
determineStackRoot = do
env <- liftIO getEnvironment
case lookup stackRootEnvVar env of
Nothing -> do
x <- liftIO $ getAppUserDataDirectory stackProgName
parseAbsDir x
Just x -> do
y <- liftIO... | 526 | determineStackRoot = do
env <- liftIO getEnvironment
case lookup stackRootEnvVar env of
Nothing -> do
x <- liftIO $ getAppUserDataDirectory stackProgName
parseAbsDir x
Just x -> do
y <- liftIO $ do
createDirectoryIfMissing True x
... | 458 | false | true | 0 | 16 | 170 | 128 | 58 | 70 | null | null |
anwb/fp-one-on-one | lecture-06-hw.hs | mit | unfold :: (b -> Bool) -> (b -> a) -> (b -> b) -> b -> [a]
unfold p h t x
| p x = []
| otherwise = h x : unfold p h t (t x) | 134 | unfold :: (b -> Bool) -> (b -> a) -> (b -> b) -> b -> [a]
unfold p h t x
| p x = []
| otherwise = h x : unfold p h t (t x) | 134 | unfold p h t x
| p x = []
| otherwise = h x : unfold p h t (t x) | 76 | false | true | 2 | 11 | 50 | 111 | 52 | 59 | null | null |
three/codeworld | codeworld-server/src/Main.hs | apache-2.0 | loadXMLHandler :: Snap ()
loadXMLHandler = do
mode <- getBuildMode
unless (mode==BuildMode "blocklyXML") $ modifyResponse $ setResponseCode 500
programId <- getHashParam False mode
modifyResponse $ setContentType "text/plain"
serveFile (buildRootDir mode </> sourceXML programId) | 299 | loadXMLHandler :: Snap ()
loadXMLHandler = do
mode <- getBuildMode
unless (mode==BuildMode "blocklyXML") $ modifyResponse $ setResponseCode 500
programId <- getHashParam False mode
modifyResponse $ setContentType "text/plain"
serveFile (buildRootDir mode </> sourceXML programId) | 299 | loadXMLHandler = do
mode <- getBuildMode
unless (mode==BuildMode "blocklyXML") $ modifyResponse $ setResponseCode 500
programId <- getHashParam False mode
modifyResponse $ setContentType "text/plain"
serveFile (buildRootDir mode </> sourceXML programId) | 273 | false | true | 0 | 12 | 52 | 91 | 40 | 51 | null | null |
Lupino/dispatch-article | src/Article/RawAPI.hs | bsd-3-clause | addTimeline :: HasMySQL u => String -> ID -> GenHaxl u w ID
addTimeline name aid = uncachedRequest (AddTimeline name aid) | 121 | addTimeline :: HasMySQL u => String -> ID -> GenHaxl u w ID
addTimeline name aid = uncachedRequest (AddTimeline name aid) | 121 | addTimeline name aid = uncachedRequest (AddTimeline name aid) | 61 | false | true | 0 | 8 | 20 | 53 | 24 | 29 | null | null |
nau/lasca-compiler | src/lib/Lasca/Codegen.hs | bsd-3-clause | call :: Type -> SBS.ShortByteString -> [Operand] -> Codegen Operand
call ftype fname args = callOperand ftype (globalOp ftype fname) args | 137 | call :: Type -> SBS.ShortByteString -> [Operand] -> Codegen Operand
call ftype fname args = callOperand ftype (globalOp ftype fname) args | 137 | call ftype fname args = callOperand ftype (globalOp ftype fname) args | 69 | false | true | 0 | 8 | 20 | 53 | 26 | 27 | null | null |
bitemyapp/irc-core | driver/ClientState.hs | bsd-3-clause | filterTimerEvents :: (TimerEvent -> Bool) -> ClientState -> ClientState
filterTimerEvents p = over clientTimers (Map.mapMaybe aux)
where
aux xs
| null xs' = Nothing
| otherwise = Just xs'
where xs' = filter p xs | 227 | filterTimerEvents :: (TimerEvent -> Bool) -> ClientState -> ClientState
filterTimerEvents p = over clientTimers (Map.mapMaybe aux)
where
aux xs
| null xs' = Nothing
| otherwise = Just xs'
where xs' = filter p xs | 227 | filterTimerEvents p = over clientTimers (Map.mapMaybe aux)
where
aux xs
| null xs' = Nothing
| otherwise = Just xs'
where xs' = filter p xs | 155 | false | true | 1 | 8 | 50 | 85 | 40 | 45 | null | null |
Sgoettschkes/learning | haskell/RealWorldHaskell/ch04/EfficientList.hs | mit | -- file: ch04/EfficientList.hs
-- From chapter 4, http://book.realworldhaskell.org/read/functional-programming.html
myDumbExample xs = if length xs > 0
then head xs
else 'Z' | 214 | myDumbExample xs = if length xs > 0
then head xs
else 'Z' | 97 | myDumbExample xs = if length xs > 0
then head xs
else 'Z' | 97 | true | false | 0 | 7 | 61 | 29 | 15 | 14 | null | null |
HIPERFIT/futhark | src/Futhark/Optimise/Fusion.hs | isc | varEntryType :: VarEntry -> NameInfo SOACS
varEntryType (IsArray _ dec _ _) =
dec | 83 | varEntryType :: VarEntry -> NameInfo SOACS
varEntryType (IsArray _ dec _ _) =
dec | 83 | varEntryType (IsArray _ dec _ _) =
dec | 40 | false | true | 0 | 9 | 15 | 38 | 17 | 21 | null | null |
gdetrez/rgl-stats | Options.hs | gpl-3.0 | info :: String -> Sh ()
info = liftIO . infoM loggerName | 56 | info :: String -> Sh ()
info = liftIO . infoM loggerName | 56 | info = liftIO . infoM loggerName | 32 | false | true | 0 | 7 | 11 | 27 | 13 | 14 | null | null |
rzil/honours | LeavittPathAlgebras/LaurentPolynomial.hs | mit | simplify (LaurentPolynomial p d) = LaurentPolynomial (stripLeadingZeroes p) (d + zeroMultiplicity p) | 100 | simplify (LaurentPolynomial p d) = LaurentPolynomial (stripLeadingZeroes p) (d + zeroMultiplicity p) | 100 | simplify (LaurentPolynomial p d) = LaurentPolynomial (stripLeadingZeroes p) (d + zeroMultiplicity p) | 100 | false | false | 0 | 8 | 11 | 39 | 18 | 21 | null | null |
diku-dk/futhark | src/Futhark/IR/Parse.hs | isc | pSizeOp :: Parser GPU.SizeOp
pSizeOp =
choice
[ keyword "get_size"
*> parens (GPU.GetSize <$> pName <* pComma <*> pSizeClass),
keyword "get_size_max"
*> parens (GPU.GetSizeMax <$> pSizeClass),
keyword "cmp_size"
*> ( parens (GPU.CmpSizeLe <$> pName <* pComma <*> pSizeClass)
... | 995 | pSizeOp :: Parser GPU.SizeOp
pSizeOp =
choice
[ keyword "get_size"
*> parens (GPU.GetSize <$> pName <* pComma <*> pSizeClass),
keyword "get_size_max"
*> parens (GPU.GetSizeMax <$> pSizeClass),
keyword "cmp_size"
*> ( parens (GPU.CmpSizeLe <$> pName <* pComma <*> pSizeClass)
... | 995 | pSizeOp =
choice
[ keyword "get_size"
*> parens (GPU.GetSize <$> pName <* pComma <*> pSizeClass),
keyword "get_size_max"
*> parens (GPU.GetSizeMax <$> pSizeClass),
keyword "cmp_size"
*> ( parens (GPU.CmpSizeLe <$> pName <* pComma <*> pSizeClass)
<*> (lexeme "<=" ... | 966 | false | true | 0 | 19 | 388 | 260 | 128 | 132 | null | null |
adarqui/99problems-hs | Experimentation/P11.hs | gpl-3.0 | test_rleM_rec_3 = TestCase $ do
assertEqual "for (rleM_rec_3 $ rle_rec 'aaabbcda')" [Multiple 3 'a', Multiple 2 'b', Single 'c', Single 'd', Single 'a'] (rleM_rec_3 (rle_rec "aaabbcda")) | 187 | test_rleM_rec_3 = TestCase $ do
assertEqual "for (rleM_rec_3 $ rle_rec 'aaabbcda')" [Multiple 3 'a', Multiple 2 'b', Single 'c', Single 'd', Single 'a'] (rleM_rec_3 (rle_rec "aaabbcda")) | 187 | test_rleM_rec_3 = TestCase $ do
assertEqual "for (rleM_rec_3 $ rle_rec 'aaabbcda')" [Multiple 3 'a', Multiple 2 'b', Single 'c', Single 'd', Single 'a'] (rleM_rec_3 (rle_rec "aaabbcda")) | 187 | false | false | 0 | 12 | 26 | 66 | 32 | 34 | null | null |
FranklinChen/hugs98-plus-Sep2006 | packages/Cabal/Network/Hackage/CabalInstall/Dependency.hs | bsd-3-clause | depToUnresolvedDep :: Dependency -> UnresolvedDependency
depToUnresolvedDep dep
= UnresolvedDependency
{ dependency = dep
, depOptions = [] } | 157 | depToUnresolvedDep :: Dependency -> UnresolvedDependency
depToUnresolvedDep dep
= UnresolvedDependency
{ dependency = dep
, depOptions = [] } | 157 | depToUnresolvedDep dep
= UnresolvedDependency
{ dependency = dep
, depOptions = [] } | 100 | false | true | 0 | 7 | 33 | 34 | 19 | 15 | null | null |
vTurbine/ghc | compiler/typecheck/TcEvidence.hs | bsd-3-clause | mkWpEvApps :: [EvTerm] -> HsWrapper
mkWpEvApps args = mk_co_app_fn WpEvApp args | 79 | mkWpEvApps :: [EvTerm] -> HsWrapper
mkWpEvApps args = mk_co_app_fn WpEvApp args | 79 | mkWpEvApps args = mk_co_app_fn WpEvApp args | 43 | false | true | 0 | 6 | 10 | 26 | 13 | 13 | null | null |
Proclivis/wxHaskell | wx/src/Graphics/UI/WX/Events.hs | lgpl-2.1 | --------------------------------------------------------------------
AuiNotebook event filters
--------------------------------------------------------------------}
newAuiEvent :: String -> EventId -> Event (AuiNotebook a) (EventAuiNotebook -> IO ())
newAuiEvent s evId = newEvent s (auiNotebookGetOnAuiNotebookEven... | 367 | newAuiEvent :: String -> EventId -> Event (AuiNotebook a) (EventAuiNotebook -> IO ())
newAuiEvent s evId = newEvent s (auiNotebookGetOnAuiNotebookEvent evId) (auiNotebookOnAuiNotebookEvent s evId) | 197 | newAuiEvent s evId = newEvent s (auiNotebookGetOnAuiNotebookEvent evId) (auiNotebookOnAuiNotebookEvent s evId) | 110 | true | true | 0 | 12 | 34 | 83 | 39 | 44 | null | null |
jrockway/c2hs | src/C2HS/C/Attrs.hs | gpl-2.0 | applyPrefix :: AttrC -> String -> AttrC
applyPrefix ac prefix =
let
shadows = shadowsAC ac
names = map fst (nameSpaceToList (defObjsAC ac))
++ map fst (nameSpaceToList (defTagsAC ac))
newShadows = mapMaybe (strip prefix) names
in
ac {shadowsAC = foldl define shad... | 1,169 | applyPrefix :: AttrC -> String -> AttrC
applyPrefix ac prefix =
let
shadows = shadowsAC ac
names = map fst (nameSpaceToList (defObjsAC ac))
++ map fst (nameSpaceToList (defTagsAC ac))
newShadows = mapMaybe (strip prefix) names
in
ac {shadowsAC = foldl define shad... | 1,169 | applyPrefix ac prefix =
let
shadows = shadowsAC ac
names = map fst (nameSpaceToList (defObjsAC ac))
++ map fst (nameSpaceToList (defTagsAC ac))
newShadows = mapMaybe (strip prefix) names
in
ac {shadowsAC = foldl define shadows newShadows}
where
strip prefx ide = case... | 1,119 | false | true | 0 | 14 | 539 | 326 | 160 | 166 | null | null |
orion-42/cellular-automata-2d | CellularAutomata2D.hs | mit | -- | Creates a reversible rule from a non reversible rule by remembering the state and always
-- xoring the new state with the old one.
makeReversibleRule :: Rule Int -> Rule (Int, Int)
makeReversibleRule rule = Rule
(ruleNeighborhoodDeltas rule)
(\(c', c) cs -> ruleFunction rule c (map snd cs) >>= \nextC -> re... | 359 | makeReversibleRule :: Rule Int -> Rule (Int, Int)
makeReversibleRule rule = Rule
(ruleNeighborhoodDeltas rule)
(\(c', c) cs -> ruleFunction rule c (map snd cs) >>= \nextC -> return (c, if c' /= nextC then 1 else 0)) | 223 | makeReversibleRule rule = Rule
(ruleNeighborhoodDeltas rule)
(\(c', c) cs -> ruleFunction rule c (map snd cs) >>= \nextC -> return (c, if c' /= nextC then 1 else 0)) | 173 | true | true | 0 | 13 | 70 | 110 | 57 | 53 | null | null |
fgaz/shine | shine-examples/mountaincar/MountainCar.hs | mit | maxInitPos :: Double
maxInitPos = -0.4 | 38 | maxInitPos :: Double
maxInitPos = -0.4 | 38 | maxInitPos = -0.4 | 17 | false | true | 0 | 5 | 5 | 13 | 7 | 6 | null | null |
oldmanmike/ghc | compiler/codeGen/StgCmmPrim.hs | bsd-3-clause | -- WriteXXXoffAddr
emitPrimOp dflags res WriteOffAddrOp_Char args = doWriteOffAddrOp (Just (mo_WordTo8 dflags)) b8 res args | 137 | emitPrimOp dflags res WriteOffAddrOp_Char args = doWriteOffAddrOp (Just (mo_WordTo8 dflags)) b8 res args | 117 | emitPrimOp dflags res WriteOffAddrOp_Char args = doWriteOffAddrOp (Just (mo_WordTo8 dflags)) b8 res args | 117 | true | false | 0 | 9 | 28 | 37 | 18 | 19 | null | null |
zerobuzz/hs-webdriver | src/Test/WebDriver/Internal.hs | bsd-3-clause | sendHTTPRequest :: (WDSessionStateIO s) => Request -> s (Either SomeException (Response ByteString))
sendHTTPRequest req = do
s@WDSession{..} <- getSession
(nRetries, tryRes) <- liftBase . retryOnTimeout wdSessHTTPRetryCount $ httpLbs req wdSessHTTPManager
let h = SessionHistory { histRequest = req
... | 513 | sendHTTPRequest :: (WDSessionStateIO s) => Request -> s (Either SomeException (Response ByteString))
sendHTTPRequest req = do
s@WDSession{..} <- getSession
(nRetries, tryRes) <- liftBase . retryOnTimeout wdSessHTTPRetryCount $ httpLbs req wdSessHTTPManager
let h = SessionHistory { histRequest = req
... | 513 | sendHTTPRequest req = do
s@WDSession{..} <- getSession
(nRetries, tryRes) <- liftBase . retryOnTimeout wdSessHTTPRetryCount $ httpLbs req wdSessHTTPManager
let h = SessionHistory { histRequest = req
, histResponse = tryRes
, histRetryCount = nRetries
... | 412 | false | true | 0 | 11 | 143 | 143 | 72 | 71 | null | null |
swift-nav/plover | src/Language/Plover/QuoteTest.hs | mit | f :: Expr -> Expr
f [pexp| ~x + ~y |] = x * y | 45 | f :: Expr -> Expr
f [pexp| ~x + ~y |] = x * y | 45 | f [pexp| ~x + ~y |] = x * y | 27 | false | true | 0 | 7 | 14 | 32 | 16 | 16 | null | null |
byorgey/Idris-dev | src/IRTS/Lang.hs | bsd-3-clause | lift env (LError str) = return $ LError str | 43 | lift env (LError str) = return $ LError str | 43 | lift env (LError str) = return $ LError str | 43 | false | false | 0 | 6 | 8 | 26 | 11 | 15 | null | null |
tjakway/ghcjvm | compiler/types/Coercion.hs | bsd-3-clause | mkSymCo (SymCo co) = co | 38 | mkSymCo (SymCo co) = co | 38 | mkSymCo (SymCo co) = co | 38 | false | false | 0 | 6 | 19 | 16 | 7 | 9 | null | null |
Fuuzetsu/haddock | haddock-api/src/Haddock/Backends/Hyperlinker/Ast.hs | bsd-2-clause | -- | Add more detailed information to token stream using GHC API.
enrich :: GHC.RenamedSource -> [Token] -> [RichToken]
enrich src =
map $ \token -> RichToken
{ rtkToken = token
, rtkDetails = enrichToken token detailsMap
}
where
detailsMap =
mkDetailsMap (concatMap ($ src)
... | 489 | enrich :: GHC.RenamedSource -> [Token] -> [RichToken]
enrich src =
map $ \token -> RichToken
{ rtkToken = token
, rtkDetails = enrichToken token detailsMap
}
where
detailsMap =
mkDetailsMap (concatMap ($ src)
[ variables
, types
... | 423 | enrich src =
map $ \token -> RichToken
{ rtkToken = token
, rtkDetails = enrichToken token detailsMap
}
where
detailsMap =
mkDetailsMap (concatMap ($ src)
[ variables
, types
, decls
, binds
... | 369 | true | true | 3 | 9 | 221 | 110 | 57 | 53 | null | null |
spockz/lhs2texhl | src/Base/CLI.hs | mit | usage :: String
usage = unlines
[ programName ++" "++ programVersion ++" - A lhs2TeX Syntax Colouring preprocessor"
, "Consult the README file for extra information or visit:\n"
, " https://github.com/spockz/lhs2texhl"
, " and "
, " http://alessandrovermeulen.me... | 423 | usage :: String
usage = unlines
[ programName ++" "++ programVersion ++" - A lhs2TeX Syntax Colouring preprocessor"
, "Consult the README file for extra information or visit:\n"
, " https://github.com/spockz/lhs2texhl"
, " and "
, " http://alessandrovermeulen.me... | 423 | usage = unlines
[ programName ++" "++ programVersion ++" - A lhs2TeX Syntax Colouring preprocessor"
, "Consult the README file for extra information or visit:\n"
, " https://github.com/spockz/lhs2texhl"
, " and "
, " http://alessandrovermeulen.me/projects/lhs2te... | 407 | false | true | 0 | 9 | 112 | 51 | 26 | 25 | null | null |
tom-szczarkowski/matasano-crypto-puzzles-solutions | set4/Main.hs | mit | main = p25 >> p26 >> p27 >> p28 >> p29 >> p30 >> p31 >> p32 | 59 | main = p25 >> p26 >> p27 >> p28 >> p29 >> p30 >> p31 >> p32 | 59 | main = p25 >> p26 >> p27 >> p28 >> p29 >> p30 >> p31 >> p32 | 59 | false | false | 0 | 11 | 16 | 34 | 17 | 17 | null | null |
triplepointfive/cereal | src/Data/Serialize/Get.hs | bsd-3-clause | moreLength :: More -> Int
moreLength m = case m of
Complete -> 0
Incomplete mb -> fromMaybe 0 mb | 105 | moreLength :: More -> Int
moreLength m = case m of
Complete -> 0
Incomplete mb -> fromMaybe 0 mb | 105 | moreLength m = case m of
Complete -> 0
Incomplete mb -> fromMaybe 0 mb | 79 | false | true | 0 | 8 | 28 | 42 | 20 | 22 | null | null |
snoyberg/ghc | compiler/utils/Outputable.hs | bsd-3-clause | -- | Special combinator for showing bytestring literals.
pprHsBytes :: ByteString -> SDoc
pprHsBytes bs = let escaped = concatMap escape $ BS.unpack bs
in vcat (map text (showMultiLineString escaped)) <> char '#'
where escape :: Word8 -> String
escape w = let c = chr (fromIntegral w)
... | 542 | pprHsBytes :: ByteString -> SDoc
pprHsBytes bs = let escaped = concatMap escape $ BS.unpack bs
in vcat (map text (showMultiLineString escaped)) <> char '#'
where escape :: Word8 -> String
escape w = let c = chr (fromIntegral w)
in if isAscii c
t... | 485 | pprHsBytes bs = let escaped = concatMap escape $ BS.unpack bs
in vcat (map text (showMultiLineString escaped)) <> char '#'
where escape :: Word8 -> String
escape w = let c = chr (fromIntegral w)
in if isAscii c
then [c]
e... | 452 | true | true | 2 | 12 | 174 | 129 | 63 | 66 | null | null |
sdiehl/ghc | compiler/GHC/Hs/Expr.hs | bsd-3-clause | ppr_expr (HsTick _ tickish exp)
= pprTicks (ppr exp) $
ppr tickish <+> ppr_lexpr exp | 90 | ppr_expr (HsTick _ tickish exp)
= pprTicks (ppr exp) $
ppr tickish <+> ppr_lexpr exp | 90 | ppr_expr (HsTick _ tickish exp)
= pprTicks (ppr exp) $
ppr tickish <+> ppr_lexpr exp | 90 | false | false | 0 | 9 | 20 | 42 | 19 | 23 | null | null |
Peaker/lamdu | src/Lamdu/Fuzzy.hs | gpl-3.0 | trieMatch n (c:cs) t@(Fuzzy _ m) =
(m ^.. Lens.ix (toLower c) <&> trieMatch n cs)
++ [trieMatch (n-1) cs t | n > 0] -- <-- try skipping a char
& mconcat | 164 | trieMatch n (c:cs) t@(Fuzzy _ m) =
(m ^.. Lens.ix (toLower c) <&> trieMatch n cs)
++ [trieMatch (n-1) cs t | n > 0] -- <-- try skipping a char
& mconcat | 164 | trieMatch n (c:cs) t@(Fuzzy _ m) =
(m ^.. Lens.ix (toLower c) <&> trieMatch n cs)
++ [trieMatch (n-1) cs t | n > 0] -- <-- try skipping a char
& mconcat | 164 | false | false | 4 | 10 | 44 | 95 | 47 | 48 | null | null |
AstraFIN/fields | Example.hs | bsd-3-clause | abdul = Person "Abdul" "Alhazred" 71 Nothing | 49 | abdul = Person "Abdul" "Alhazred" 71 Nothing | 49 | abdul = Person "Abdul" "Alhazred" 71 Nothing | 49 | false | false | 0 | 5 | 11 | 15 | 7 | 8 | null | null |
grandpascorpion/canon | Math/NumberTheory/Canon/Internals.hs | gpl-3.0 | crCmp x y | x == y = EQ
| xN && yN = crCmp (tail y) (tail x)
| xN = LT
| yN = GT
| eqZero x = LT
| eqZero y = GT
| otherwise = case compare (crLogDouble x) (crLogDouble y) of
EQ -> compare (cr... | 646 | crCmp x y | x == y = EQ
| xN && yN = crCmp (tail y) (tail x)
| xN = LT
| yN = GT
| eqZero x = LT
| eqZero y = GT
| otherwise = case compare (crLogDouble x) (crLogDouble y) of
EQ -> compare (cr... | 646 | crCmp x y | x == y = EQ
| xN && yN = crCmp (tail y) (tail x)
| xN = LT
| yN = GT
| eqZero x = LT
| eqZero y = GT
| otherwise = case compare (crLogDouble x) (crLogDouble y) of
EQ -> compare (cr... | 646 | false | false | 5 | 10 | 333 | 187 | 91 | 96 | null | null |
zalora/tinc | src/Util.hs | bsd-3-clause | unlessM :: Monad m => m Bool -> m () -> m ()
unlessM condition action = condition >>= (`unless` action) | 103 | unlessM :: Monad m => m Bool -> m () -> m ()
unlessM condition action = condition >>= (`unless` action) | 103 | unlessM condition action = condition >>= (`unless` action) | 58 | false | true | 0 | 10 | 20 | 59 | 28 | 31 | null | null |
Mahdi89/eTeak | src/Misc.hs | bsd-3-clause | mapOverSome _ (Some []) ys = (Some [], ys) | 42 | mapOverSome _ (Some []) ys = (Some [], ys) | 42 | mapOverSome _ (Some []) ys = (Some [], ys) | 42 | false | false | 0 | 8 | 8 | 32 | 16 | 16 | null | null |
nikivazou/prover | src/Prover/Pretty.hs | gpl-2.0 | sep _ [x] = x | 16 | sep _ [x] = x | 16 | sep _ [x] = x | 16 | false | false | 0 | 6 | 7 | 14 | 7 | 7 | null | null |
JPMoresmau/haskell-ide-engine | test/JsonSpec.hs | bsd-3-clause | -- -- |Used when running from ghci, and it sets the current directory to ./tests
-- tt :: IO ()
-- tt = do
-- cd ".."
-- hspec spec
-- ---------------------------------------------------------------------
jsonSpec :: Spec
jsonSpec = do
describe "Valid Response JSON Object round trip" $ do
prop "Text" (prope... | 1,850 | jsonSpec :: Spec
jsonSpec = do
describe "Valid Response JSON Object round trip" $ do
prop "Text" (propertyValidRoundtrip :: Text -> Bool)
prop "[Text]" (propertyValidRoundtrip :: [Text] -> Bool)
prop "()" (propertyValidRoundtrip :: () -> Bool)
prop "Aeson.Object" (propertyValidRoundtrip :: Object -> B... | 1,639 | jsonSpec = do
describe "Valid Response JSON Object round trip" $ do
prop "Text" (propertyValidRoundtrip :: Text -> Bool)
prop "[Text]" (propertyValidRoundtrip :: [Text] -> Bool)
prop "()" (propertyValidRoundtrip :: () -> Bool)
prop "Aeson.Object" (propertyValidRoundtrip :: Object -> Bool)
prop "Co... | 1,622 | true | true | 0 | 13 | 288 | 403 | 204 | 199 | null | null |
GaloisInc/halvm-ghc | utils/hpc/HpcCombine.hs | bsd-3-clause | mergeTixFile :: Flags -> (Integer -> Integer -> Integer) -> Tix -> String -> IO Tix
mergeTixFile flags fn tix file_name = do
Just new_tix <- readTix file_name
return $! strict $ mergeTix (mergeModule flags) fn tix (filterTix flags new_tix)
-- could allow different numbering on the module info,
-- as long as the to... | 364 | mergeTixFile :: Flags -> (Integer -> Integer -> Integer) -> Tix -> String -> IO Tix
mergeTixFile flags fn tix file_name = do
Just new_tix <- readTix file_name
return $! strict $ mergeTix (mergeModule flags) fn tix (filterTix flags new_tix)
-- could allow different numbering on the module info,
-- as long as the to... | 364 | mergeTixFile flags fn tix file_name = do
Just new_tix <- readTix file_name
return $! strict $ mergeTix (mergeModule flags) fn tix (filterTix flags new_tix)
-- could allow different numbering on the module info,
-- as long as the total is the same; will require normalization. | 280 | false | true | 0 | 11 | 65 | 104 | 49 | 55 | null | null |
kim/amazonka | amazonka-redshift/gen/Network/AWS/Redshift/DescribeResize.hs | mpl-2.0 | -- | The estimated total amount of data, in megabytes, on the cluster before the
-- resize operation began.
drrTotalResizeDataInMegaBytes :: Lens' DescribeResizeResponse (Maybe Integer)
drrTotalResizeDataInMegaBytes =
lens _drrTotalResizeDataInMegaBytes
(\s a -> s { _drrTotalResizeDataInMegaBytes = a }) | 316 | drrTotalResizeDataInMegaBytes :: Lens' DescribeResizeResponse (Maybe Integer)
drrTotalResizeDataInMegaBytes =
lens _drrTotalResizeDataInMegaBytes
(\s a -> s { _drrTotalResizeDataInMegaBytes = a }) | 208 | drrTotalResizeDataInMegaBytes =
lens _drrTotalResizeDataInMegaBytes
(\s a -> s { _drrTotalResizeDataInMegaBytes = a }) | 130 | true | true | 0 | 9 | 49 | 47 | 26 | 21 | null | null |
DeTeam/h-queue | src/HQueue/Queue.hs | mit | -- | IO action for pushing stuff into queue
pushToQueue queue job = atomically . (writeTQueue queue) $ job | 106 | pushToQueue queue job = atomically . (writeTQueue queue) $ job | 62 | pushToQueue queue job = atomically . (writeTQueue queue) $ job | 62 | true | false | 1 | 8 | 18 | 31 | 13 | 18 | null | null |
da-x/lamdu | Lamdu/Sugar/Convert/Record.hs | gpl-3.0 | makeAddField :: Monad m =>
ExprIRef.ValIProperty m ->
ConvertM m (Transaction m RecordAddFieldResult)
makeAddField stored =
do
typeProtect <- ConvertM.typeProtectTransaction
do
mResultI <- DataOps.recExtend stored & typeProtect
case mResultI of
Just ex... | 1,005 | makeAddField :: Monad m =>
ExprIRef.ValIProperty m ->
ConvertM m (Transaction m RecordAddFieldResult)
makeAddField stored =
do
typeProtect <- ConvertM.typeProtectTransaction
do
mResultI <- DataOps.recExtend stored & typeProtect
case mResultI of
Just ex... | 1,005 | makeAddField stored =
do
typeProtect <- ConvertM.typeProtectTransaction
do
mResultI <- DataOps.recExtend stored & typeProtect
case mResultI of
Just extendRes -> return extendRes
Nothing ->
do
extendRe... | 895 | false | true | 0 | 20 | 388 | 220 | 104 | 116 | null | null |
ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/enumFromTo_2.hs | mit | takeWhile p (Cons x xs) = takeWhile2 p (Cons x xs) | 50 | takeWhile p (Cons x xs) = takeWhile2 p (Cons x xs) | 50 | takeWhile p (Cons x xs) = takeWhile2 p (Cons x xs) | 50 | false | false | 0 | 7 | 10 | 32 | 15 | 17 | null | null |
gchrupala/morfette | src/Main.hs | bsd-2-clause | prep :: Token -> ROW
prep t =
Row { input = Input { inputForm = tokenForm t
, inputEmb = tokenEmb t }
, output = [ POS (maybe (error "Main: missing POS") id (tokenPOS t))
, L.make (tokenForm t) (maybe (error "Main: missing lemma") id (tokenLemma t))
... | 331 | prep :: Token -> ROW
prep t =
Row { input = Input { inputForm = tokenForm t
, inputEmb = tokenEmb t }
, output = [ POS (maybe (error "Main: missing POS") id (tokenPOS t))
, L.make (tokenForm t) (maybe (error "Main: missing lemma") id (tokenLemma t))
... | 331 | prep t =
Row { input = Input { inputForm = tokenForm t
, inputEmb = tokenEmb t }
, output = [ POS (maybe (error "Main: missing POS") id (tokenPOS t))
, L.make (tokenForm t) (maybe (error "Main: missing lemma") id (tokenLemma t))
]
} | 310 | false | true | 0 | 12 | 128 | 118 | 62 | 56 | null | null |
rahulmutt/ghcvm | compiler/Eta/SimplCore/OccurAnal.hs | bsd-3-clause | addOneOcc :: UsageDetails -> Id -> OccInfo -> UsageDetails
addOneOcc usage id info
= plusVarEnv_C addOccInfo usage (unitVarEnv id info) | 137 | addOneOcc :: UsageDetails -> Id -> OccInfo -> UsageDetails
addOneOcc usage id info
= plusVarEnv_C addOccInfo usage (unitVarEnv id info) | 137 | addOneOcc usage id info
= plusVarEnv_C addOccInfo usage (unitVarEnv id info) | 78 | false | true | 0 | 7 | 21 | 45 | 22 | 23 | null | null |
emwap/feldspar-language | src/Feldspar/SimpleVector/Push.hs | bsd-3-clause | freezePush (Push k l) = runMutableArray $ do
arr <- newArr_ l
k (\i a -> setArr arr i (resugar a))
return arr
-- | Store a push vector to memory and return it as an ordinary vector. | 260 | freezePush (Push k l) = runMutableArray $ do
arr <- newArr_ l
k (\i a -> setArr arr i (resugar a))
return arr
-- | Store a push vector to memory and return it as an ordinary vector. | 260 | freezePush (Push k l) = runMutableArray $ do
arr <- newArr_ l
k (\i a -> setArr arr i (resugar a))
return arr
-- | Store a push vector to memory and return it as an ordinary vector. | 260 | false | false | 0 | 13 | 116 | 68 | 31 | 37 | null | null |
rueshyna/gogol | gogol-analytics/gen/Network/Google/Analytics/Types/Product.hs | mpl-2.0 | -- | Time this custom data source was created.
cCreated :: Lens' CustomDataSource (Maybe UTCTime)
cCreated
= lens _cCreated (\ s a -> s{_cCreated = a}) .
mapping _DateTime | 179 | cCreated :: Lens' CustomDataSource (Maybe UTCTime)
cCreated
= lens _cCreated (\ s a -> s{_cCreated = a}) .
mapping _DateTime | 132 | cCreated
= lens _cCreated (\ s a -> s{_cCreated = a}) .
mapping _DateTime | 81 | true | true | 0 | 10 | 36 | 55 | 28 | 27 | null | null |
netogallo/Microsoft-Translator-Haskell | src/Language/Bing.hs | bsd-3-clause | toSym Indonesian = "id" | 23 | toSym Indonesian = "id" | 23 | toSym Indonesian = "id" | 23 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
drhodes/jade2hdl | jade-decode/src/Jade/Decode/ModTest.hs | bsd-3-clause | lineBinVals = many $ do b <- binVal
hspaces
return b | 100 | lineBinVals = many $ do b <- binVal
hspaces
return b | 100 | lineBinVals = many $ do b <- binVal
hspaces
return b | 100 | false | false | 3 | 8 | 58 | 31 | 11 | 20 | null | null |
akfidjeland/NeMo | src/api/autogen/Common.hs | gpl-2.0 | functionCall
:: LineWrap
-> Doc -- ^ function name
-> Maybe Doc -- ^ output assignment
-> Int -- ^ allowed text width before wrapping
-> [Doc] -- ^ arguments
-> Doc
functionCall = functionGeneric (text " = ") | 260 | functionCall
:: LineWrap
-> Doc -- ^ function name
-> Maybe Doc -- ^ output assignment
-> Int -- ^ allowed text width before wrapping
-> [Doc] -- ^ arguments
-> Doc
functionCall = functionGeneric (text " = ") | 260 | functionCall = functionGeneric (text " = ") | 43 | false | true | 0 | 11 | 90 | 56 | 28 | 28 | null | null |
swoertz/pia | src/Util.hs | gpl-3.0 | -- | @'right' = 'fillRight' ' '@
right :: Int -> String -> String
right = fillRight ' ' | 87 | right :: Int -> String -> String
right = fillRight ' ' | 54 | right = fillRight ' ' | 21 | true | true | 0 | 6 | 18 | 23 | 12 | 11 | null | null |
romanb/amazonka | amazonka-s3/gen/Network/AWS/S3/Types.hs | mpl-2.0 | qcdEvent :: Lens' QueueConfigurationDeprecated (Maybe Event)
qcdEvent = lens _qcdEvent (\s a -> s { _qcdEvent = a }) | 116 | qcdEvent :: Lens' QueueConfigurationDeprecated (Maybe Event)
qcdEvent = lens _qcdEvent (\s a -> s { _qcdEvent = a }) | 116 | qcdEvent = lens _qcdEvent (\s a -> s { _qcdEvent = a }) | 55 | false | true | 0 | 9 | 18 | 45 | 24 | 21 | null | null |
nevrenato/HetsAlloy | CommonLogic/Parse_CLIF.hs | gpl-2.0 | phrase :: CharParser st ([PHRASE], [PrefixMapping])
phrase = many white >> (do
try (oParenT >> clModuleKey)
(m, prfxs) <- pModule
cParenT
return ([Module m], prfxs)
<|> do
try (oParenT >> clImportsKey)
i <- importation
cParenT
return ([Importation i], [])
<|> do
try (oParenT >> c... | 728 | phrase :: CharParser st ([PHRASE], [PrefixMapping])
phrase = many white >> (do
try (oParenT >> clModuleKey)
(m, prfxs) <- pModule
cParenT
return ([Module m], prfxs)
<|> do
try (oParenT >> clImportsKey)
i <- importation
cParenT
return ([Importation i], [])
<|> do
try (oParenT >> c... | 728 | phrase = many white >> (do
try (oParenT >> clModuleKey)
(m, prfxs) <- pModule
cParenT
return ([Module m], prfxs)
<|> do
try (oParenT >> clImportsKey)
i <- importation
cParenT
return ([Importation i], [])
<|> do
try (oParenT >> clCommentKey)
c <- (quotedstring <|> enclosedname... | 676 | false | true | 0 | 17 | 182 | 293 | 144 | 149 | null | null |
shuhei/wv | src/Word2Vec.hs | bsd-3-clause | mostSimilar words = do
i2h <- normalizeMatrix <$> loadMatrix i2hFile
i2w <- loadI2W i2wFile
w2i <- loadW2I w2iFile
mapM_ print $ take 5 $ findMostSimilar i2w w2i i2h words | 179 | mostSimilar words = do
i2h <- normalizeMatrix <$> loadMatrix i2hFile
i2w <- loadI2W i2wFile
w2i <- loadW2I w2iFile
mapM_ print $ take 5 $ findMostSimilar i2w w2i i2h words | 179 | mostSimilar words = do
i2h <- normalizeMatrix <$> loadMatrix i2hFile
i2w <- loadI2W i2wFile
w2i <- loadW2I w2iFile
mapM_ print $ take 5 $ findMostSimilar i2w w2i i2h words | 179 | false | false | 0 | 9 | 36 | 69 | 29 | 40 | null | null |
lennart/tidal-midi | Sound/Tidal/Rytm.hs | gpl-3.0 | revhpf = makeF oscKeys "revhpf" | 37 | revhpf = makeF oscKeys "revhpf" | 37 | revhpf = makeF oscKeys "revhpf" | 37 | false | false | 1 | 5 | 10 | 14 | 5 | 9 | null | null |
hyPiRion/hs-codeforces | 347/b.hs | mit | foldla :: (b -> Int -> a -> b) -> b -> Array Int a -> b
foldla f z0 ar = go z0 lo
where go z i
| i > hi = z
| otherwise = go (f z i (ar ! i)) $ i + 1
(lo, hi) = bounds ar | 200 | foldla :: (b -> Int -> a -> b) -> b -> Array Int a -> b
foldla f z0 ar = go z0 lo
where go z i
| i > hi = z
| otherwise = go (f z i (ar ! i)) $ i + 1
(lo, hi) = bounds ar | 200 | foldla f z0 ar = go z0 lo
where go z i
| i > hi = z
| otherwise = go (f z i (ar ! i)) $ i + 1
(lo, hi) = bounds ar | 144 | false | true | 0 | 10 | 83 | 143 | 66 | 77 | null | null |
BeerAndProgramming/BeerAndProgrammingSite | devel.hs | bsd-2-clause | loop :: IO ()
loop = do
threadDelay 100000
e <- doesFileExist "dist/devel-terminate"
if e then terminateDevel else loop | 125 | loop :: IO ()
loop = do
threadDelay 100000
e <- doesFileExist "dist/devel-terminate"
if e then terminateDevel else loop | 125 | loop = do
threadDelay 100000
e <- doesFileExist "dist/devel-terminate"
if e then terminateDevel else loop | 111 | false | true | 0 | 8 | 24 | 49 | 21 | 28 | null | null |
acowley/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | shiftRIntegerIdKey = mkPreludeMiscIdUnique 96 | 56 | shiftRIntegerIdKey = mkPreludeMiscIdUnique 96 | 56 | shiftRIntegerIdKey = mkPreludeMiscIdUnique 96 | 56 | false | false | 0 | 5 | 14 | 9 | 4 | 5 | null | null |
nastya13/Dinner-Order | dist/build/autogen/Paths_Dinner_Order.hs | gpl-3.0 | datadir = "/home/anastasia/Haskell/Dinner-Order/.cabal-sandbox/share/x86_64-linux-ghc-7.8.3/Dinner-Order-0.1.0.0" | 116 | datadir = "/home/anastasia/Haskell/Dinner-Order/.cabal-sandbox/share/x86_64-linux-ghc-7.8.3/Dinner-Order-0.1.0.0" | 116 | datadir = "/home/anastasia/Haskell/Dinner-Order/.cabal-sandbox/share/x86_64-linux-ghc-7.8.3/Dinner-Order-0.1.0.0" | 116 | false | false | 1 | 5 | 5 | 10 | 3 | 7 | null | null |
axnion/playground | random/haskell/syntaxInFunctions.hs | mit | sayMe 5 = "Five!" | 17 | sayMe 5 = "Five!" | 17 | sayMe 5 = "Five!" | 17 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
lally/orgmode | tests/Data/ArbOrgNode.hs | bsd-3-clause | maxDepth = 5 | 12 | maxDepth = 5 | 12 | maxDepth = 5 | 12 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.