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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ekmett/ghc | compiler/llvmGen/LlvmCodeGen/CodeGen.hs | bsd-3-clause | genMachOp_slow opt op [x, y] = case op of
MO_Eq _ -> genBinComp opt LM_CMP_Eq
MO_Ne _ -> genBinComp opt LM_CMP_Ne
MO_S_Gt _ -> genBinComp opt LM_CMP_Sgt
MO_S_Ge _ -> genBinComp opt LM_CMP_Sge
MO_S_Lt _ -> genBinComp opt LM_CMP_Slt
MO_S_Le _ -> genBinComp opt LM_CMP_Sle
MO_U_Gt _ -> ge... | 7,260 | genMachOp_slow opt op [x, y] = case op of
MO_Eq _ -> genBinComp opt LM_CMP_Eq
MO_Ne _ -> genBinComp opt LM_CMP_Ne
MO_S_Gt _ -> genBinComp opt LM_CMP_Sgt
MO_S_Ge _ -> genBinComp opt LM_CMP_Sge
MO_S_Lt _ -> genBinComp opt LM_CMP_Slt
MO_S_Le _ -> genBinComp opt LM_CMP_Sle
MO_U_Gt _ -> ge... | 7,260 | genMachOp_slow opt op [x, y] = case op of
MO_Eq _ -> genBinComp opt LM_CMP_Eq
MO_Ne _ -> genBinComp opt LM_CMP_Ne
MO_S_Gt _ -> genBinComp opt LM_CMP_Sgt
MO_S_Ge _ -> genBinComp opt LM_CMP_Sge
MO_S_Lt _ -> genBinComp opt LM_CMP_Slt
MO_S_Le _ -> genBinComp opt LM_CMP_Sle
MO_U_Gt _ -> ge... | 7,260 | false | false | 107 | 18 | 2,522 | 2,052 | 1,053 | 999 | null | null |
mainland/dph | icebox/examples/concomp/Graph.hs | bsd-3-clause | storeGraph :: FilePath -> Graph -> IO ()
storeGraph file g = withBinaryFile file WriteMode (`hPutGraph` g) | 106 | storeGraph :: FilePath -> Graph -> IO ()
storeGraph file g = withBinaryFile file WriteMode (`hPutGraph` g) | 106 | storeGraph file g = withBinaryFile file WriteMode (`hPutGraph` g) | 65 | false | true | 0 | 8 | 16 | 42 | 22 | 20 | null | null |
lukexi/ghc-7.8-arm64 | compiler/cmm/CmmSink.hs | bsd-3-clause | okToInline _ _ _ = True | 23 | okToInline _ _ _ = True | 23 | okToInline _ _ _ = True | 23 | false | false | 0 | 5 | 5 | 13 | 6 | 7 | null | null |
joelburget/haskell-ipld | src/Network/IPLD/Internal.hs | bsd-3-clause | object :: [Row] -> Value
object = DagObject . HashMap.fromList . map makeTuple where
makeTuple :: Row -> (Text, Value)
makeTuple (LinkRow l) = ("/", LinkValue l) -- TODO this line is wrong
makeTuple (ValueRow k v) = (k, v) | 228 | object :: [Row] -> Value
object = DagObject . HashMap.fromList . map makeTuple where
makeTuple :: Row -> (Text, Value)
makeTuple (LinkRow l) = ("/", LinkValue l) -- TODO this line is wrong
makeTuple (ValueRow k v) = (k, v) | 228 | object = DagObject . HashMap.fromList . map makeTuple where
makeTuple :: Row -> (Text, Value)
makeTuple (LinkRow l) = ("/", LinkValue l) -- TODO this line is wrong
makeTuple (ValueRow k v) = (k, v) | 203 | false | true | 1 | 9 | 45 | 108 | 53 | 55 | null | null |
tamarin-prover/tamarin-prover | lib/term/src/Term/Builtin/Convenience.hs | gpl-3.0 | x3 = var "x" 3 | 14 | x3 = var "x" 3 | 14 | x3 = var "x" 3 | 14 | false | false | 1 | 5 | 4 | 14 | 5 | 9 | null | null |
jwoudenberg/elm-editor-tools | src/ElmTools/FindDefinition.hs | bsd-3-clause | getDefinition :: Declaration -> Maybe Definition
getDefinition declaration =
case declaration of
Definition definition -> Just definition
Import _ -> Nothing | 167 | getDefinition :: Declaration -> Maybe Definition
getDefinition declaration =
case declaration of
Definition definition -> Just definition
Import _ -> Nothing | 167 | getDefinition declaration =
case declaration of
Definition definition -> Just definition
Import _ -> Nothing | 118 | false | true | 0 | 8 | 30 | 51 | 22 | 29 | null | null |
rodrigo-machado/verigraph | tests/Data/TypedGraph/Morphism/FindMorphismSpec/FindCospanCommuterTest.hs | gpl-3.0 | g6' :: G a b
g6' = build [1,2] [(1,1,2),(2,1,2),(3,1,2)] | 56 | g6' :: G a b
g6' = build [1,2] [(1,1,2),(2,1,2),(3,1,2)] | 56 | g6' = build [1,2] [(1,1,2),(2,1,2),(3,1,2)] | 43 | false | true | 0 | 7 | 9 | 63 | 38 | 25 | null | null |
impega/vart | Mondrian/src/Mondrian.hs | gpl-3.0 | crop :: Int -> Int -> Painting -> Painting
crop w h = Painting . fmap (uncurry cropCol) . cropAt w . grid
where
cropCol :: Int -> Column -> (Int, Column)
cropCol w' = (w',) . fmap (uncurry $ cropCell w') . cropAt h
cropCell :: Int -> Int -> Cell -> (Int, Cell)
cropCell w' h' = (h',) . fmap (crop w' h'... | 385 | crop :: Int -> Int -> Painting -> Painting
crop w h = Painting . fmap (uncurry cropCol) . cropAt w . grid
where
cropCol :: Int -> Column -> (Int, Column)
cropCol w' = (w',) . fmap (uncurry $ cropCell w') . cropAt h
cropCell :: Int -> Int -> Cell -> (Int, Cell)
cropCell w' h' = (h',) . fmap (crop w' h'... | 385 | crop w h = Painting . fmap (uncurry cropCol) . cropAt w . grid
where
cropCol :: Int -> Column -> (Int, Column)
cropCol w' = (w',) . fmap (uncurry $ cropCell w') . cropAt h
cropCell :: Int -> Int -> Cell -> (Int, Cell)
cropCell w' h' = (h',) . fmap (crop w' h')
-- We may introduce a grid by adding Bla... | 342 | false | true | 2 | 10 | 95 | 180 | 87 | 93 | null | null |
vTurbine/ghc | compiler/basicTypes/PatSyn.hs | bsd-3-clause | patSynInstArgTys :: PatSyn -> [Type] -> [Type]
-- Return the types of the argument patterns
-- e.g. data D a = forall b. MkD a b (b->a)
-- pattern P f x y = MkD (x,True) y f
-- D :: forall a. forall b. a -> b -> (b->a) -> D a
-- P :: forall c. forall b. (b->(c,Bool)) -> c -> b -> P c
-- patSy... | 821 | patSynInstArgTys :: PatSyn -> [Type] -> [Type]
patSynInstArgTys (MkPatSyn { psName = name, psUnivTyVars = univ_tvs
, psExTyVars = ex_tvs, psArgs = arg_tys })
inst_tys
= ASSERT2( length tyvars == length inst_tys
, text "patSynInstArgTys" <+> ppr name $$ ppr tyvars ... | 436 | patSynInstArgTys (MkPatSyn { psName = name, psUnivTyVars = univ_tvs
, psExTyVars = ex_tvs, psArgs = arg_tys })
inst_tys
= ASSERT2( length tyvars == length inst_tys
, text "patSynInstArgTys" <+> ppr name $$ ppr tyvars $$ ppr inst_tys )
map (substTyWith tyvars i... | 389 | true | true | 0 | 10 | 228 | 142 | 77 | 65 | null | null |
sixohsix/tak | src/Tak/Editor.hs | mit | defaultModeHandler :: Event -> GlobalState -> IO GlobalState
defaultModeHandler evt = findWithDefault (insertIfChar evt) evt (editCommands `Map.union` readOnlyCommands) | 168 | defaultModeHandler :: Event -> GlobalState -> IO GlobalState
defaultModeHandler evt = findWithDefault (insertIfChar evt) evt (editCommands `Map.union` readOnlyCommands) | 168 | defaultModeHandler evt = findWithDefault (insertIfChar evt) evt (editCommands `Map.union` readOnlyCommands) | 107 | false | true | 0 | 7 | 17 | 52 | 26 | 26 | null | null |
yu-i9/thih | TypingHaskellInHaskell.hs | bsd-3-clause | scEntail :: ClassEnv -> [Pred] -> Pred -> Bool
scEntail ce ps p = any (p `elem`) (map (bySuper ce) ps) | 109 | scEntail :: ClassEnv -> [Pred] -> Pred -> Bool
scEntail ce ps p = any (p `elem`) (map (bySuper ce) ps) | 109 | scEntail ce ps p = any (p `elem`) (map (bySuper ce) ps) | 55 | false | true | 0 | 9 | 27 | 64 | 32 | 32 | null | null |
Vlix/wechat | Web/WeChat/XMLParse.hs | mit | parseVideoMessage elt = do
inMediaID <- textTag "MediaId" elt
inThumbMediaID <- textTag "ThumbMediaId" elt
return InVideo{..} | 131 | parseVideoMessage elt = do
inMediaID <- textTag "MediaId" elt
inThumbMediaID <- textTag "ThumbMediaId" elt
return InVideo{..} | 131 | parseVideoMessage elt = do
inMediaID <- textTag "MediaId" elt
inThumbMediaID <- textTag "ThumbMediaId" elt
return InVideo{..} | 131 | false | false | 0 | 8 | 21 | 44 | 19 | 25 | null | null |
brendanhay/gogol | gogol-datafusion/gen/Network/Google/Resource/DataFusion/Projects/Locations/Versions/List.hs | mpl-2.0 | -- | The maximum number of items to return.
plvlPageSize :: Lens' ProjectsLocationsVersionsList (Maybe Int32)
plvlPageSize
= lens _plvlPageSize (\ s a -> s{_plvlPageSize = a})
. mapping _Coerce | 201 | plvlPageSize :: Lens' ProjectsLocationsVersionsList (Maybe Int32)
plvlPageSize
= lens _plvlPageSize (\ s a -> s{_plvlPageSize = a})
. mapping _Coerce | 157 | plvlPageSize
= lens _plvlPageSize (\ s a -> s{_plvlPageSize = a})
. mapping _Coerce | 91 | true | true | 1 | 9 | 36 | 56 | 28 | 28 | null | null |
ghcjs/ghcjs | src/Compiler/JMacro/Base.hs | mit | expr2stat :: JExpr -> JStat
expr2stat (ApplExpr x y) = (ApplStat x y) | 69 | expr2stat :: JExpr -> JStat
expr2stat (ApplExpr x y) = (ApplStat x y) | 69 | expr2stat (ApplExpr x y) = (ApplStat x y) | 41 | false | true | 0 | 7 | 12 | 34 | 17 | 17 | null | null |
abuiles/turbinado-blog | tmp/dependencies/hs-plugins-1.3.1/testsuite/pdynload/bayley1/Load.hs | bsd-3-clause | --
-- load doesn't seem to behave nicely when using dirname on hier names
--
-- make, and maybe other places, use dirname to work out various names
-- from paths, which is invalid when hier names are used..
--
testload = do
s <- make "../Plugin1.hs" ["-i../api"]
o1 <- case s of
MakeSuccess _ o -> return ... | 1,087 | testload = do
s <- make "../Plugin1.hs" ["-i../api"]
o1 <- case s of
MakeSuccess _ o -> return o
MakeFailure e -> mapM_ putStrLn e >> fail "o1"
s <- make "../Sub/Plugin2.hs" ["-i../api","-hidir.."] -- !
o2 <- case s of
MakeSuccess _ o -> return o
MakeFailure e -> mapM_ putStrLn e... | 876 | testload = do
s <- make "../Plugin1.hs" ["-i../api"]
o1 <- case s of
MakeSuccess _ o -> return o
MakeFailure e -> mapM_ putStrLn e >> fail "o1"
s <- make "../Sub/Plugin2.hs" ["-i../api","-hidir.."] -- !
o2 <- case s of
MakeSuccess _ o -> return o
MakeFailure e -> mapM_ putStrLn e... | 876 | true | false | 1 | 17 | 288 | 339 | 157 | 182 | null | null |
jarlah/blackjack | src/Main.hs | gpl-2.0 | main :: IO()
main = MAIN_FUNCTION | 33 | main :: IO()
main = MAIN_FUNCTION | 33 | main = MAIN_FUNCTION | 20 | false | true | 0 | 7 | 5 | 22 | 9 | 13 | null | null |
markus-git/PBKDF2 | src/Main.hs | bsd-3-clause | test :: Int -> IO ()
test n =
do start <- getCPUTime
((iterate sha1 msg) !! n) `deepseq` return ()
end <- getCPUTime
let diff = (fromIntegral (end - start)) / (10^12)
printf "iter %d, time %0.6f sec\n" (n :: Int) (diff :: Double) | 251 | test :: Int -> IO ()
test n =
do start <- getCPUTime
((iterate sha1 msg) !! n) `deepseq` return ()
end <- getCPUTime
let diff = (fromIntegral (end - start)) / (10^12)
printf "iter %d, time %0.6f sec\n" (n :: Int) (diff :: Double) | 251 | test n =
do start <- getCPUTime
((iterate sha1 msg) !! n) `deepseq` return ()
end <- getCPUTime
let diff = (fromIntegral (end - start)) / (10^12)
printf "iter %d, time %0.6f sec\n" (n :: Int) (diff :: Double) | 230 | false | true | 0 | 15 | 66 | 125 | 62 | 63 | null | null |
notogawa/VideoCore4 | src/VideoCore4/QPU/Instruction/SemaphoreAccess.hs | bsd-3-clause | sa_Dec :: SemaphoreAccess
sa_Dec = SemaphoreAccess 1 | 52 | sa_Dec :: SemaphoreAccess
sa_Dec = SemaphoreAccess 1 | 52 | sa_Dec = SemaphoreAccess 1 | 26 | false | true | 0 | 5 | 6 | 14 | 7 | 7 | null | null |
tom-szczarkowski/matasano-crypto-puzzles-solutions | set6/DSA.hs | mit | sign params@(Params p q g h) (PrivateKey x) msg = do
let digest = encode (h msg) :: Integer
k <- cryptoRandomInteger 0 (q-1)
let r = (modexp g k p) `mod` q
if (r == 0)
then sign params (PrivateKey x) msg
else let s = ((invmod k q) * (digest + x*r)) `mod` q
in if (s == 0)
then sig... | 387 | sign params@(Params p q g h) (PrivateKey x) msg = do
let digest = encode (h msg) :: Integer
k <- cryptoRandomInteger 0 (q-1)
let r = (modexp g k p) `mod` q
if (r == 0)
then sign params (PrivateKey x) msg
else let s = ((invmod k q) * (digest + x*r)) `mod` q
in if (s == 0)
then sig... | 387 | sign params@(Params p q g h) (PrivateKey x) msg = do
let digest = encode (h msg) :: Integer
k <- cryptoRandomInteger 0 (q-1)
let r = (modexp g k p) `mod` q
if (r == 0)
then sign params (PrivateKey x) msg
else let s = ((invmod k q) * (digest + x*r)) `mod` q
in if (s == 0)
then sig... | 387 | false | false | 0 | 17 | 124 | 210 | 107 | 103 | null | null |
geekingfrog/advent-of-code | src/Y2015/Day20.hs | bsd-3-clause | answer2 :: IO ()
answer2 =
let presents = map numberOfPresents' [1 ..]
pairs = zip [1 ..] presents
in print $ fst . head $ dropWhile ((>=) targetPresent . snd) pairs | 185 | answer2 :: IO ()
answer2 =
let presents = map numberOfPresents' [1 ..]
pairs = zip [1 ..] presents
in print $ fst . head $ dropWhile ((>=) targetPresent . snd) pairs | 185 | answer2 =
let presents = map numberOfPresents' [1 ..]
pairs = zip [1 ..] presents
in print $ fst . head $ dropWhile ((>=) targetPresent . snd) pairs | 168 | false | true | 1 | 11 | 51 | 82 | 41 | 41 | null | null |
brendanhay/gogol | gogol-dataproc/gen/Network/Google/Dataproc/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'ClusterSelector' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'csZone'
--
-- * 'csClusterLabels'
clusterSelector
:: ClusterSelector
clusterSelector =
ClusterSelector' {_csZone = Nothing, _csClusterLabe... | 333 | clusterSelector
:: ClusterSelector
clusterSelector =
ClusterSelector' {_csZone = Nothing, _csClusterLabels = Nothing} | 123 | clusterSelector =
ClusterSelector' {_csZone = Nothing, _csClusterLabels = Nothing} | 84 | true | true | 0 | 6 | 55 | 32 | 22 | 10 | null | null |
nushio3/ghc | compiler/hsSyn/HsExpr.hs | bsd-3-clause | pprMatchContextNoun PatSyn = text "pattern synonym declaration" | 72 | pprMatchContextNoun PatSyn = text "pattern synonym declaration" | 72 | pprMatchContextNoun PatSyn = text "pattern synonym declaration" | 72 | false | false | 0 | 5 | 15 | 12 | 5 | 7 | null | null |
gambogi/csh-eval | src/CSH/Eval/DB/Statements.hs | mit | -- *** Freshman Project
-- | Fetch a freshman project by ID.
getFreshmanProjectIDP :: Word64 -- ^ Freshman Project ID
-> H.Stmt HP.Postgres
getFreshmanProjectIDP = [H.stmt|select * from "freshman_project" where "id" = ?|] | 244 | getFreshmanProjectIDP :: Word64 -- ^ Freshman Project ID
-> H.Stmt HP.Postgres
getFreshmanProjectIDP = [H.stmt|select * from "freshman_project" where "id" = ?|] | 182 | getFreshmanProjectIDP = [H.stmt|select * from "freshman_project" where "id" = ?|] | 81 | true | true | 0 | 7 | 55 | 31 | 19 | 12 | null | null |
keithodulaigh/Hets | CommonLogic/Lexer_CLIF.hs | gpl-2.0 | forallKey :: CharParser st Id.Token
forallKey = pToken (string forallS) <?> "universal quantification" | 102 | forallKey :: CharParser st Id.Token
forallKey = pToken (string forallS) <?> "universal quantification" | 102 | forallKey = pToken (string forallS) <?> "universal quantification" | 66 | false | true | 0 | 8 | 12 | 31 | 15 | 16 | null | null |
brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/SSLPolicies/Insert.hs | mpl-2.0 | -- | Creates a value of 'SSLPoliciesInsert' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'sslpiRequestId'
--
-- * 'sslpiProject'
--
-- * 'sslpiPayload'
sslPoliciesInsert
:: Text -- ^ 'sslpiProject'
-> SSLPolicy -- ^ 'sslpiPa... | 534 | sslPoliciesInsert
:: Text -- ^ 'sslpiProject'
-> SSLPolicy -- ^ 'sslpiPayload'
-> SSLPoliciesInsert
sslPoliciesInsert pSslpiProject_ pSslpiPayload_ =
SSLPoliciesInsert'
{ _sslpiRequestId = Nothing
, _sslpiProject = pSslpiProject_
, _sslpiPayload = pSslpiPayload_
} | 294 | sslPoliciesInsert pSslpiProject_ pSslpiPayload_ =
SSLPoliciesInsert'
{ _sslpiRequestId = Nothing
, _sslpiProject = pSslpiProject_
, _sslpiPayload = pSslpiPayload_
} | 182 | true | true | 0 | 6 | 102 | 55 | 36 | 19 | null | null |
xmonad/xmonad-contrib | XMonad/Config/Mate.hs | bsd-3-clause | -- | Display MATE shutdown dialog. You can override mod-q to invoke this, or bind it
-- to another key if you prefer.
mateShutdown :: MonadIO m => m ()
mateShutdown = spawn "mate-session-save --shutdown-dialog" | 210 | mateShutdown :: MonadIO m => m ()
mateShutdown = spawn "mate-session-save --shutdown-dialog" | 92 | mateShutdown = spawn "mate-session-save --shutdown-dialog" | 58 | true | true | 0 | 8 | 34 | 34 | 15 | 19 | null | null |
ekmett/ghc | compiler/cmm/PprC.hs | bsd-3-clause | machRep_U_CType :: Width -> SDoc
machRep_U_CType w
= sdocWithDynFlags $ \dflags ->
case w of
_ | w == wordWidth dflags -> ptext (sLit "W_")
W8 -> ptext (sLit "StgWord8")
W16 -> ptext (sLit "StgWord16")
W32 -> ptext (sLit "StgWord32")
W64 -> ptext (sLit "StgWord64")
_ -> panic "machRep_U_CType" | 319 | machRep_U_CType :: Width -> SDoc
machRep_U_CType w
= sdocWithDynFlags $ \dflags ->
case w of
_ | w == wordWidth dflags -> ptext (sLit "W_")
W8 -> ptext (sLit "StgWord8")
W16 -> ptext (sLit "StgWord16")
W32 -> ptext (sLit "StgWord32")
W64 -> ptext (sLit "StgWord64")
_ -> panic "machRep_U_CType" | 319 | machRep_U_CType w
= sdocWithDynFlags $ \dflags ->
case w of
_ | w == wordWidth dflags -> ptext (sLit "W_")
W8 -> ptext (sLit "StgWord8")
W16 -> ptext (sLit "StgWord16")
W32 -> ptext (sLit "StgWord32")
W64 -> ptext (sLit "StgWord64")
_ -> panic "machRep_U_CType" | 286 | false | true | 2 | 13 | 73 | 134 | 61 | 73 | null | null |
mightymoose/liquidhaskell | src/Language/Haskell/Liquid/TransformRec.hs | bsd-3-clause | nonPoly = null . fst . splitForAllTys . exprType | 48 | nonPoly = null . fst . splitForAllTys . exprType | 48 | nonPoly = null . fst . splitForAllTys . exprType | 48 | false | false | 0 | 7 | 8 | 18 | 9 | 9 | null | null |
cdxr/haskell-interface | src/Data/Interface/Type/Diff.hs | bsd-3-clause | -- TODO: rewrite diffTopTypeF in terms of maybeSameTypeF
-- | @maybeSameTypeF t0 t1@ is @Just t@ when the topmost terms of @t0@ and
-- @t1@ are considered equal.
maybeSameTypeF :: (Eq t, Diff t c) => TypeF t -> TypeF t -> Maybe (TypeF c)
maybeSameTypeF a b = case (a, b) of
(ConF c0, ConF c1)
| c0 == c1 -> ... | 975 | maybeSameTypeF :: (Eq t, Diff t c) => TypeF t -> TypeF t -> Maybe (TypeF c)
maybeSameTypeF a b = case (a, b) of
(ConF c0, ConF c1)
| c0 == c1 -> Just $ ConF c1
(ApplyF a0, ApplyF a1)
| a0 == a1 -> Just $ fmap noDiff b
(FunF a0 b0, FunF a1 b1)
| a0 == a1 -> Just $ FunF (noDiff a0) (di... | 812 | maybeSameTypeF a b = case (a, b) of
(ConF c0, ConF c1)
| c0 == c1 -> Just $ ConF c1
(ApplyF a0, ApplyF a1)
| a0 == a1 -> Just $ fmap noDiff b
(FunF a0 b0, FunF a1 b1)
| a0 == a1 -> Just $ FunF (noDiff a0) (diff b0 b1)
(VarF v0, VarF v1)
| v0 == v1 -> Just $ VarF v1
(F... | 736 | true | true | 6 | 10 | 272 | 337 | 165 | 172 | null | null |
adk9/haskell-streamit | Language/StreamIt/Compile.hs | bsd-3-clause | callTbb file = do
fp <- createTempDirectory "." "streamit.d"
bracket getCurrentDirectory setCurrentDirectory
(\_ -> do
setCurrentDirectory fp
exitCode <- rawSystem "g++" ["-O2 -DNDEBUG", "../" ++ file, "-ltbb -lrt"]
S.when (exitCode /= ExitSuccess) $ do
(ignoringIOErrors . remo... | 386 | callTbb file = do
fp <- createTempDirectory "." "streamit.d"
bracket getCurrentDirectory setCurrentDirectory
(\_ -> do
setCurrentDirectory fp
exitCode <- rawSystem "g++" ["-O2 -DNDEBUG", "../" ++ file, "-ltbb -lrt"]
S.when (exitCode /= ExitSuccess) $ do
(ignoringIOErrors . remo... | 386 | callTbb file = do
fp <- createTempDirectory "." "streamit.d"
bracket getCurrentDirectory setCurrentDirectory
(\_ -> do
setCurrentDirectory fp
exitCode <- rawSystem "g++" ["-O2 -DNDEBUG", "../" ++ file, "-ltbb -lrt"]
S.when (exitCode /= ExitSuccess) $ do
(ignoringIOErrors . remo... | 386 | false | false | 0 | 17 | 96 | 114 | 52 | 62 | null | null |
radekm/simple-prop-prover | PropProver.hs | bsd-3-clause | handleConflict :: Clause -> DLL Result
handleConflict cl = do
st <- get
let assig = head $ dsAssigned st
ante = head $ dsAntecendents st
lastId = dsLastClauseId st
if dsLevel st > 0
then do
let x@(assertCl, _) = assertingClause cl assig ante lastId
put $ st { ... | 807 | handleConflict :: Clause -> DLL Result
handleConflict cl = do
st <- get
let assig = head $ dsAssigned st
ante = head $ dsAntecendents st
lastId = dsLastClauseId st
if dsLevel st > 0
then do
let x@(assertCl, _) = assertingClause cl assig ante lastId
put $ st { ... | 807 | handleConflict cl = do
st <- get
let assig = head $ dsAssigned st
ante = head $ dsAntecendents st
lastId = dsLastClauseId st
if dsLevel st > 0
then do
let x@(assertCl, _) = assertingClause cl assig ante lastId
put $ st { dsLastClauseId = cId assertCl
... | 768 | false | true | 0 | 15 | 275 | 225 | 109 | 116 | null | null |
OwenGraves/Hangman | src/Lib.hs | bsd-3-clause | runGame :: Puzzle -> IO ()
runGame puzzle = forever $ do
gameOver puzzle
gameWin puzzle
-- putStrLn $ "Number wrong: " ++ (show $ numberWrong puzzle)
putStrLn $ "Current puzzle is: " ++ show puzzle
putStr "Guess a letter: "
hFlush stdout --Flushes to print in correct order
guess <- getLine
... | 437 | runGame :: Puzzle -> IO ()
runGame puzzle = forever $ do
gameOver puzzle
gameWin puzzle
-- putStrLn $ "Number wrong: " ++ (show $ numberWrong puzzle)
putStrLn $ "Current puzzle is: " ++ show puzzle
putStr "Guess a letter: "
hFlush stdout --Flushes to print in correct order
guess <- getLine
... | 437 | runGame puzzle = forever $ do
gameOver puzzle
gameWin puzzle
-- putStrLn $ "Number wrong: " ++ (show $ numberWrong puzzle)
putStrLn $ "Current puzzle is: " ++ show puzzle
putStr "Guess a letter: "
hFlush stdout --Flushes to print in correct order
guess <- getLine
case guess of
[c] ->... | 410 | false | true | 0 | 12 | 113 | 108 | 48 | 60 | null | null |
dorchard/camfort | src/Camfort/Specification/Units/InferenceBackendSBV.hs | apache-2.0 | basicOptimisations :: Constraints -> Constraints
basicOptimisations cons = cons'
where
cons' = filter (not . identicalSides) cons
identicalSides (ConEq lhs rhs) = lhs == rhs
identicalSides _ = False | 226 | basicOptimisations :: Constraints -> Constraints
basicOptimisations cons = cons'
where
cons' = filter (not . identicalSides) cons
identicalSides (ConEq lhs rhs) = lhs == rhs
identicalSides _ = False | 226 | basicOptimisations cons = cons'
where
cons' = filter (not . identicalSides) cons
identicalSides (ConEq lhs rhs) = lhs == rhs
identicalSides _ = False | 177 | false | true | 1 | 7 | 56 | 78 | 34 | 44 | null | null |
jyp/inox | LLVM.hs | gpl-3.0 | -- | Function type getting an env and an arg
funType env t = ptr (cFun "" t "" (ptr env)) | 89 | funType env t = ptr (cFun "" t "" (ptr env)) | 44 | funType env t = ptr (cFun "" t "" (ptr env)) | 44 | true | false | 0 | 9 | 20 | 33 | 16 | 17 | null | null |
dimara/ganeti | src/Ganeti/Constants.hs | bsd-2-clause | oobStatusWarning :: String
oobStatusWarning = Types.oobStatusToRaw OobStatusWarning | 83 | oobStatusWarning :: String
oobStatusWarning = Types.oobStatusToRaw OobStatusWarning | 83 | oobStatusWarning = Types.oobStatusToRaw OobStatusWarning | 56 | false | true | 0 | 6 | 6 | 22 | 9 | 13 | null | null |
UCSD-PL/nano-js | Language/Nano/Typecheck/Parse.hs | bsd-3-clause | refasP :: Parser [Refa]
refasP = (try (brackets $ sepBy (RConc <$> predP) semi))
<|> liftM ((:[]) . RConc) predP | 122 | refasP :: Parser [Refa]
refasP = (try (brackets $ sepBy (RConc <$> predP) semi))
<|> liftM ((:[]) . RConc) predP | 122 | refasP = (try (brackets $ sepBy (RConc <$> predP) semi))
<|> liftM ((:[]) . RConc) predP | 98 | false | true | 0 | 12 | 29 | 64 | 34 | 30 | null | null |
gereeter/bounded-intmap | src/Data/WordMap/Lazy.hs | mit | adjust :: (a -> a) -> Key -> WordMap a -> WordMap a
adjust f k = k `seq` start
where
start (WordMap Empty) = WordMap Empty
start m@(WordMap (NonEmpty min minV node))
| k > min = WordMap (NonEmpty min minV (goL (xor min k) min node))
| k < min = m
| otherwise = WordMap (NonEmpty min (f ... | 1,459 | adjust :: (a -> a) -> Key -> WordMap a -> WordMap a
adjust f k = k `seq` start
where
start (WordMap Empty) = WordMap Empty
start m@(WordMap (NonEmpty min minV node))
| k > min = WordMap (NonEmpty min minV (goL (xor min k) min node))
| k < min = m
| otherwise = WordMap (NonEmpty min (f ... | 1,459 | adjust f k = k `seq` start
where
start (WordMap Empty) = WordMap Empty
start m@(WordMap (NonEmpty min minV node))
| k > min = WordMap (NonEmpty min minV (goL (xor min k) min node))
| k < min = m
| otherwise = WordMap (NonEmpty min (f minV) node)
goL !_ _ Tip = Tip
... | 1,407 | false | true | 6 | 10 | 513 | 521 | 241 | 280 | null | null |
vincenthz/cryptonite | tests/KAT_Blowfish.hs | bsd-3-clause | tests = testBlockCipher kats (undefined :: Blowfish64) | 54 | tests = testBlockCipher kats (undefined :: Blowfish64) | 54 | tests = testBlockCipher kats (undefined :: Blowfish64) | 54 | false | false | 1 | 6 | 6 | 20 | 9 | 11 | null | null |
enolan/Idris-dev | test/TestRun.hs | bsd-3-clause | runTest :: String -> Flags -> IO ()
runTest path flags = do
let run = (proc "bash" ("run" : flags)) {cwd = Just path}
(_, output, error_out) <- readCreateProcessWithExitCode run ""
writeFile (path </> "output") (normalise output)
when (error_out /= "") $ hPutStrLn stderr ("\nError: " ++ path ++ "\n" ++ error_ou... | 675 | runTest :: String -> Flags -> IO ()
runTest path flags = do
let run = (proc "bash" ("run" : flags)) {cwd = Just path}
(_, output, error_out) <- readCreateProcessWithExitCode run ""
writeFile (path </> "output") (normalise output)
when (error_out /= "") $ hPutStrLn stderr ("\nError: " ++ path ++ "\n" ++ error_ou... | 675 | runTest path flags = do
let run = (proc "bash" ("run" : flags)) {cwd = Just path}
(_, output, error_out) <- readCreateProcessWithExitCode run ""
writeFile (path </> "output") (normalise output)
when (error_out /= "") $ hPutStrLn stderr ("\nError: " ++ path ++ "\n" ++ error_out)
where
-- Normalise path... | 639 | false | true | 1 | 14 | 157 | 262 | 125 | 137 | null | null |
hackern/halfs | Halfs/Inode.hs | bsd-3-clause | buildEmptyInode :: (Serialize t, Timed t m, Show t) =>
BlockDevice m
-> FileType -- ^ This inode's filetype
-> FileMode -- ^ This inode's access mode
-> InodeRef -- ^ This inode's block address
-> InodeRef -- ^ Parent... | 822 | buildEmptyInode :: (Serialize t, Timed t m, Show t) =>
BlockDevice m
-> FileType -- ^ This inode's filetype
-> FileMode -- ^ This inode's access mode
-> InodeRef -- ^ This inode's block address
-> InodeRef -- ^ Parent... | 822 | buildEmptyInode bd ftype fmode me mommy usr grp = do
now <- getTime
minSize <- computeMinimalInodeSize =<< return now
minimalExtSize >>= (`assert` return ()) . (==) minSize
nAddrs <- computeNumAddrs (bdBlockSize bd) minInodeBlocks minSize
return $ emptyInode nAddrs now ftype fmode me mommy usr gr... | 321 | false | true | 0 | 15 | 293 | 187 | 94 | 93 | null | null |
ctford/Idris-Elba-dev | src/Idris/Core/CaseTree.hs | bsd-3-clause | isConPat (PCon _ _ _ : ps, _) = True | 36 | isConPat (PCon _ _ _ : ps, _) = True | 36 | isConPat (PCon _ _ _ : ps, _) = True | 36 | false | false | 0 | 8 | 9 | 26 | 13 | 13 | null | null |
seanparsons/app-base | src/Entities.hs | bsd-3-clause | makeFromRow :: Text -> [Field] -> ExpQ
makeFromRow entityName [] = conE $ mkTextName entityName | 101 | makeFromRow :: Text -> [Field] -> ExpQ
makeFromRow entityName [] = conE $ mkTextName entityName | 101 | makeFromRow entityName [] = conE $ mkTextName entityName | 62 | false | true | 0 | 7 | 20 | 36 | 18 | 18 | null | null |
YoshikuniJujo/hake_haskell | examples/nutshell/chap5/2/disp/fig/hakeMain.hs | gpl-3.0 | mods = [ "fill.o", "rotat.o" ] | 30 | mods = [ "fill.o", "rotat.o" ] | 30 | mods = [ "fill.o", "rotat.o" ] | 30 | false | false | 1 | 5 | 5 | 15 | 7 | 8 | null | null |
cauterize-tools/cauterize | tests/Cauterize/Specification/CompileSpec.hs | bsd-3-clause | typeIsRecord :: Either a Specification -> Bool
typeIsRecord (Right
(Specification { specTypes = [ Type { typeDesc = Record {} } ] })) = True | 154 | typeIsRecord :: Either a Specification -> Bool
typeIsRecord (Right
(Specification { specTypes = [ Type { typeDesc = Record {} } ] })) = True | 154 | typeIsRecord (Right
(Specification { specTypes = [ Type { typeDesc = Record {} } ] })) = True | 107 | false | true | 0 | 16 | 38 | 57 | 30 | 27 | null | null |
ra1u/lambdaya-bus | src/System/RedPitaya/Bus/ClientBind.hs | lgpl-3.0 | writeCoreV :: ((n * 32) ~ (m + k), FpgaSetGet rp, KnownNat k, KnownNat n)
=> SNat n -> Offset -> Vec m Bit -> rp ()
writeCoreV n offset d = writeCoreNice n offset $ extendSize n d | 191 | writeCoreV :: ((n * 32) ~ (m + k), FpgaSetGet rp, KnownNat k, KnownNat n)
=> SNat n -> Offset -> Vec m Bit -> rp ()
writeCoreV n offset d = writeCoreNice n offset $ extendSize n d | 191 | writeCoreV n offset d = writeCoreNice n offset $ extendSize n d | 63 | false | true | 0 | 10 | 50 | 101 | 49 | 52 | null | null |
christiaanb/ghc | compiler/coreSyn/CoreSyn.hs | bsd-3-clause | -- | Return @True@ if this source annotation compiles to some backend
-- code. Without this flag, the tickish is seen as a simple annotation
-- that does not have any associated evaluation code.
--
-- What this means that we are allowed to disregard the tick if doing
-- so means that we can skip generating any code in ... | 712 | tickishIsCode :: Tickish id -> Bool
tickishIsCode SourceNote{} = False | 70 | tickishIsCode SourceNote{} = False | 34 | true | true | 2 | 5 | 136 | 40 | 28 | 12 | null | null |
forste/haReFork | tools/base/tests/tiTest0.hs | bsd-3-clause | {-
eq = (==) :: Eq a => a->a->Bool
addff = fst ff+snd ff
-}
ff :: Num a => (a,a)
ff = (four,four)
where four = 4 | 115 | ff :: Num a => (a,a)
ff = (four,four)
where four = 4 | 54 | ff = (four,four)
where four = 4 | 33 | true | true | 0 | 8 | 30 | 46 | 23 | 23 | null | null |
mfpi/thecardgame | src/Main.hs | mit | runRng :: State StdGen a -> GameS m a
runRng action = pass rndGen (runState action) | 83 | runRng :: State StdGen a -> GameS m a
runRng action = pass rndGen (runState action) | 83 | runRng action = pass rndGen (runState action) | 45 | false | true | 0 | 7 | 15 | 39 | 18 | 21 | null | null |
olorin/amazonka | amazonka-rds/gen/Network/AWS/RDS/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'OptionGroupMembership' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'ogmStatus'
--
-- * 'ogmOptionGroupName'
optionGroupMembership
:: OptionGroupMembership
optionGroupMembership =
OptionGroupMembersh... | 392 | optionGroupMembership
:: OptionGroupMembership
optionGroupMembership =
OptionGroupMembership'
{ _ogmStatus = Nothing
, _ogmOptionGroupName = Nothing
} | 170 | optionGroupMembership =
OptionGroupMembership'
{ _ogmStatus = Nothing
, _ogmOptionGroupName = Nothing
} | 119 | true | true | 0 | 6 | 72 | 32 | 22 | 10 | null | null |
joozek78/stack | src/Stack/Setup.hs | bsd-3-clause | bytesfmt :: Integral a => String -> a -> String
bytesfmt formatter bs = printf (formatter <> " %s")
(fromIntegral (signum bs) * dec :: Double)
(bytesSuffixes !! i)
where
(dec,i) = getSuffix (abs bs)
getSuffix n = until p (\(x,y) -> (x / 1024, y+1))... | 828 | bytesfmt :: Integral a => String -> a -> String
bytesfmt formatter bs = printf (formatter <> " %s")
(fromIntegral (signum bs) * dec :: Double)
(bytesSuffixes !! i)
where
(dec,i) = getSuffix (abs bs)
getSuffix n = until p (\(x,y) -> (x / 1024, y+1))... | 828 | bytesfmt formatter bs = printf (formatter <> " %s")
(fromIntegral (signum bs) * dec :: Double)
(bytesSuffixes !! i)
where
(dec,i) = getSuffix (abs bs)
getSuffix n = until p (\(x,y) -> (x / 1024, y+1)) (fromIntegral n,0)
where p (n',numDivs) =... | 780 | false | true | 0 | 10 | 206 | 230 | 128 | 102 | null | null |
snoyberg/ghc | compiler/cmm/CmmUtils.hs | bsd-3-clause | primRepCmmType _ Word64Rep = b64 | 44 | primRepCmmType _ Word64Rep = b64 | 44 | primRepCmmType _ Word64Rep = b64 | 44 | false | false | 0 | 5 | 16 | 11 | 5 | 6 | null | null |
rul/lazymail | src/Lazymail/Utils.hs | gpl-3.0 | drawCroppedString st str = drawString $ normalizeLen (screenColumns st) str | 75 | drawCroppedString st str = drawString $ normalizeLen (screenColumns st) str | 75 | drawCroppedString st str = drawString $ normalizeLen (screenColumns st) str | 75 | false | false | 0 | 8 | 9 | 26 | 12 | 14 | null | null |
ptol/oczor | src/Oczor/Converter/Converter.hs | mit | identAddInstancesArgs ident exprTp = do
ctx <- ask
-- instancesArgs <- getIdentInstancesArgs ident exprTp
identTp <- identType ident -- <&> trac (unwords ["ident tp", ident, show exprTp] )
expr2 <- newIdent ident >>= checkExprTypeChange identTp exprTp
-- if exprTp == identTp then return expr2
-- else addIns... | 439 | identAddInstancesArgs ident exprTp = do
ctx <- ask
-- instancesArgs <- getIdentInstancesArgs ident exprTp
identTp <- identType ident -- <&> trac (unwords ["ident tp", ident, show exprTp] )
expr2 <- newIdent ident >>= checkExprTypeChange identTp exprTp
-- if exprTp == identTp then return expr2
-- else addIns... | 439 | identAddInstancesArgs ident exprTp = do
ctx <- ask
-- instancesArgs <- getIdentInstancesArgs ident exprTp
identTp <- identType ident -- <&> trac (unwords ["ident tp", ident, show exprTp] )
expr2 <- newIdent ident >>= checkExprTypeChange identTp exprTp
-- if exprTp == identTp then return expr2
-- else addIns... | 439 | false | false | 0 | 9 | 71 | 69 | 32 | 37 | null | null |
bitemyapp/7startups | Startups/CardList.hs | bsd-3-clause | communities :: [Card]
communities = [ community "Workers Union" "FFDOM" [perCard 1 neighbors [BaseResource]]
, community "Hipster Bar" "FFOO" [perCard 2 neighbors [AdvancedResource]]
, community "Caviar Restaurant" "YVA" [perCard 1 neighbors [Commercial]]
... | 1,071 | communities :: [Card]
communities = [ community "Workers Union" "FFDOM" [perCard 1 neighbors [BaseResource]]
, community "Hipster Bar" "FFOO" [perCard 2 neighbors [AdvancedResource]]
, community "Caviar Restaurant" "YVA" [perCard 1 neighbors [Commercial]]
... | 1,071 | communities = [ community "Workers Union" "FFDOM" [perCard 1 neighbors [BaseResource]]
, community "Hipster Bar" "FFOO" [perCard 2 neighbors [AdvancedResource]]
, community "Caviar Restaurant" "YVA" [perCard 1 neighbors [Commercial]]
, community "Train ... | 1,049 | false | true | 0 | 13 | 307 | 256 | 134 | 122 | null | null |
sdiehl/ghc | compiler/main/DynFlags.hs | bsd-3-clause | checkTemplateHaskellOk :: TurnOnFlag -> DynP ()
checkTemplateHaskellOk _turn_on
= getCurLoc >>= \l -> upd (\d -> d { thOnLoc = l }) | 133 | checkTemplateHaskellOk :: TurnOnFlag -> DynP ()
checkTemplateHaskellOk _turn_on
= getCurLoc >>= \l -> upd (\d -> d { thOnLoc = l }) | 133 | checkTemplateHaskellOk _turn_on
= getCurLoc >>= \l -> upd (\d -> d { thOnLoc = l }) | 85 | false | true | 0 | 11 | 23 | 51 | 27 | 24 | null | null |
pascal-knodel/haskell-craft | Examples/· Ιet … in … constructs/Unzip.hs | mit | unzip ((leftItem , rightItem) : remainingItems)
= let (remainingLeftItems , remainingRightItems) = (unzip remainingItems)
in (leftItem : remainingLeftItems , rightItem : remainingRightItems) | 196 | unzip ((leftItem , rightItem) : remainingItems)
= let (remainingLeftItems , remainingRightItems) = (unzip remainingItems)
in (leftItem : remainingLeftItems , rightItem : remainingRightItems) | 196 | unzip ((leftItem , rightItem) : remainingItems)
= let (remainingLeftItems , remainingRightItems) = (unzip remainingItems)
in (leftItem : remainingLeftItems , rightItem : remainingRightItems) | 196 | false | false | 0 | 10 | 27 | 60 | 32 | 28 | null | null |
geekingfrog/advent-of-code | src/Y2015/Day16.hs | bsd-3-clause | knownInfo :: [Attr]
knownInfo =
[ ("children" , 3)
, ("cats" , 7)
, ("samoyeds" , 2)
, ("pomeranians", 3)
, ("akitas" , 0)
, ("vizslas" , 0)
, ("goldfish" , 5)
, ("trees" , 3)
, ("cars" , 2)
, ("perfumes" , 1)
] | 287 | knownInfo :: [Attr]
knownInfo =
[ ("children" , 3)
, ("cats" , 7)
, ("samoyeds" , 2)
, ("pomeranians", 3)
, ("akitas" , 0)
, ("vizslas" , 0)
, ("goldfish" , 5)
, ("trees" , 3)
, ("cars" , 2)
, ("perfumes" , 1)
] | 287 | knownInfo =
[ ("children" , 3)
, ("cats" , 7)
, ("samoyeds" , 2)
, ("pomeranians", 3)
, ("akitas" , 0)
, ("vizslas" , 0)
, ("goldfish" , 5)
, ("trees" , 3)
, ("cars" , 2)
, ("perfumes" , 1)
] | 267 | false | true | 0 | 6 | 120 | 104 | 68 | 36 | null | null |
DavidAlphaFox/ghc | libraries/filepath/System/FilePath/Internal.hs | bsd-3-clause | normaliseDrive drive = if isJust $ readDriveLetter x2
then map toUpper x2
else x2
where
x2 = map repSlash drive
repSlash x = if isPathSeparator x then pathSeparator else x
-- Information for validity functions on Windows. See [1]. | 298 | normaliseDrive drive = if isJust $ readDriveLetter x2
then map toUpper x2
else x2
where
x2 = map repSlash drive
repSlash x = if isPathSeparator x then pathSeparator else x
-- Information for validity functions on Windows. See [1]. | 298 | normaliseDrive drive = if isJust $ readDriveLetter x2
then map toUpper x2
else x2
where
x2 = map repSlash drive
repSlash x = if isPathSeparator x then pathSeparator else x
-- Information for validity functions on Windows. See [1]. | 298 | false | false | 1 | 7 | 106 | 62 | 31 | 31 | null | null |
forked-upstream-packages-for-ghcjs/ghc | compiler/typecheck/TcEvidence.hs | bsd-3-clause | maybeTcSubCo :: EqRel -> TcCoercion -> TcCoercion
maybeTcSubCo NomEq = id | 74 | maybeTcSubCo :: EqRel -> TcCoercion -> TcCoercion
maybeTcSubCo NomEq = id | 74 | maybeTcSubCo NomEq = id | 24 | false | true | 0 | 6 | 11 | 22 | 11 | 11 | null | null |
vTurbine/ghc | compiler/typecheck/TcType.hs | bsd-3-clause | (<!>) :: Maybe Bool -> Maybe Bool -> Maybe Bool
Nothing <!> x = x | 80 | (<!>) :: Maybe Bool -> Maybe Bool -> Maybe Bool
Nothing <!> x = x | 80 | Nothing <!> x = x | 32 | false | true | 0 | 9 | 29 | 40 | 18 | 22 | null | null |
headprogrammingczar/Data | data-eval/IRC/Data/L.hs | bsd-3-clause | north = undefined | 17 | north = undefined | 17 | north = undefined | 17 | false | false | 1 | 5 | 2 | 10 | 3 | 7 | null | null |
dmcclean/HaTeX | Text/LaTeX/Packages/AMSMath.hs | bsd-3-clause | -- | Centered-dot operator (⋅).
cdot :: LaTeXC l => l -> l -> l
cdot = between $ comm0 "cdot" | 94 | cdot :: LaTeXC l => l -> l -> l
cdot = between $ comm0 "cdot" | 62 | cdot = between $ comm0 "cdot" | 30 | true | true | 2 | 9 | 21 | 42 | 18 | 24 | null | null |
forked-upstream-packages-for-ghcjs/ghc | utils/genprimopcode/Main.hs | bsd-3-clause | ppType (TyApp (TyCon "StableName#") [x]) = "mkStableNamePrimTy " ++ ppType x | 76 | ppType (TyApp (TyCon "StableName#") [x]) = "mkStableNamePrimTy " ++ ppType x | 76 | ppType (TyApp (TyCon "StableName#") [x]) = "mkStableNamePrimTy " ++ ppType x | 76 | false | false | 0 | 8 | 10 | 34 | 16 | 18 | null | null |
green-haskell/ghc | compiler/prelude/TysPrim.hs | bsd-3-clause | realWorldStatePrimTy :: Type
realWorldStatePrimTy = mkStatePrimTy realWorldTy | 77 | realWorldStatePrimTy :: Type
realWorldStatePrimTy = mkStatePrimTy realWorldTy | 77 | realWorldStatePrimTy = mkStatePrimTy realWorldTy | 48 | false | true | 0 | 5 | 6 | 14 | 7 | 7 | null | null |
cocreature/leksah | src/IDE/Utils/GUIUtils.hs | gpl-2.0 | getForgetSession :: PaneMonad alpha => alpha Bool
getForgetSession = do
ui <- getUIAction "ui/menubar/_Configuration/Forget Session" castToToggleAction
liftIO $toggleActionGetActive ui | 192 | getForgetSession :: PaneMonad alpha => alpha Bool
getForgetSession = do
ui <- getUIAction "ui/menubar/_Configuration/Forget Session" castToToggleAction
liftIO $toggleActionGetActive ui | 192 | getForgetSession = do
ui <- getUIAction "ui/menubar/_Configuration/Forget Session" castToToggleAction
liftIO $toggleActionGetActive ui | 142 | false | true | 0 | 8 | 26 | 42 | 18 | 24 | null | null |
zerobuzz/hs-webdriver | src/Test/WebDriver/Commands.hs | bsd-3-clause | -- |Set the current screen orientation for rotatable display devices.
setOrientation :: WebDriver wd => Orientation -> wd ()
setOrientation = noReturn . doSessCommand methodPost "/orientation" . single "orientation" | 215 | setOrientation :: WebDriver wd => Orientation -> wd ()
setOrientation = noReturn . doSessCommand methodPost "/orientation" . single "orientation" | 145 | setOrientation = noReturn . doSessCommand methodPost "/orientation" . single "orientation" | 90 | true | true | 0 | 8 | 28 | 44 | 21 | 23 | null | null |
vTurbine/ghc | compiler/typecheck/TcType.hs | bsd-3-clause | legalFEResultTyCon :: TyCon -> Validity
legalFEResultTyCon tc
| tc == unitTyCon = IsValid
| otherwise = boxedMarshalableTyCon tc | 154 | legalFEResultTyCon :: TyCon -> Validity
legalFEResultTyCon tc
| tc == unitTyCon = IsValid
| otherwise = boxedMarshalableTyCon tc | 154 | legalFEResultTyCon tc
| tc == unitTyCon = IsValid
| otherwise = boxedMarshalableTyCon tc | 114 | false | true | 1 | 8 | 43 | 43 | 19 | 24 | null | null |
jasonzoladz/parconc-examples | parinfer/Substitution.hs | bsd-3-clause | freeVars = freeTVarMono | 53 | freeVars = freeTVarMono | 53 | freeVars = freeTVarMono | 53 | false | false | 0 | 4 | 32 | 6 | 3 | 3 | null | null |
jtdaugherty/vty-ui-builder | src/Graphics/Vty/Widgets/Builder.hs | bsd-3-clause | mkBuilderFunction :: A.Doc -> GenState -> [Hs.Decl]
mkBuilderFunction doc st =
let theParamTypes = map (S.mkTyp "Widget" . (:[])) $ (S.parseType . A.paramName) <$> A.documentParams doc
theParamNames = map (Hs.PVar . S.mkName) $ A.paramName <$> A.documentParams doc
typeStr = intercalate " -> " $
... | 1,422 | mkBuilderFunction :: A.Doc -> GenState -> [Hs.Decl]
mkBuilderFunction doc st =
let theParamTypes = map (S.mkTyp "Widget" . (:[])) $ (S.parseType . A.paramName) <$> A.documentParams doc
theParamNames = map (Hs.PVar . S.mkName) $ A.paramName <$> A.documentParams doc
typeStr = intercalate " -> " $
... | 1,422 | mkBuilderFunction doc st =
let theParamTypes = map (S.mkTyp "Widget" . (:[])) $ (S.parseType . A.paramName) <$> A.documentParams doc
theParamNames = map (Hs.PVar . S.mkName) $ A.paramName <$> A.documentParams doc
typeStr = intercalate " -> " $
map Hs.prettyPrint theParamTypes ++ [... | 1,370 | false | true | 0 | 22 | 802 | 296 | 148 | 148 | null | null |
haroldcarr/juno | src/Apps/X/Client.hs | bsd-3-clause | mainProgrammatic :: IO ()
mainProgrammatic = mainBase runProgram | 64 | mainProgrammatic :: IO ()
mainProgrammatic = mainBase runProgram | 64 | mainProgrammatic = mainBase runProgram | 38 | false | true | 0 | 6 | 7 | 19 | 9 | 10 | null | null |
markflorisson/hpack | testrepo/bytestring-0.9.1.9/Data/ByteString/Lazy/Internal.hs | bsd-3-clause | smallChunkSize :: Int
smallChunkSize = 4 * k - chunkOverhead
where k = 1024
-- | The memory management overhead. Currently this is tuned for GHC only. | 154 | smallChunkSize :: Int
smallChunkSize = 4 * k - chunkOverhead
where k = 1024
-- | The memory management overhead. Currently this is tuned for GHC only. | 154 | smallChunkSize = 4 * k - chunkOverhead
where k = 1024
-- | The memory management overhead. Currently this is tuned for GHC only. | 132 | false | true | 2 | 6 | 30 | 40 | 16 | 24 | null | null |
GaloisInc/saw-script | src/SAWScript/Prover/MRSolver/Term.hs | bsd-3-clause | asCompM _ = fail "not a CompM type!" | 36 | asCompM _ = fail "not a CompM type!" | 36 | asCompM _ = fail "not a CompM type!" | 36 | false | false | 0 | 5 | 7 | 12 | 5 | 7 | null | null |
cryptica/slapnet | src/Parser/PNET.hs | gpl-3.0 | propertyType :: Parser PropertyType
propertyType =
(reserved "safety" *> return SafetyType) <|>
(reserved "liveness" *> return LivenessType) <|>
(reserved "structural" *> return StructuralType) | 217 | propertyType :: Parser PropertyType
propertyType =
(reserved "safety" *> return SafetyType) <|>
(reserved "liveness" *> return LivenessType) <|>
(reserved "structural" *> return StructuralType) | 217 | propertyType =
(reserved "safety" *> return SafetyType) <|>
(reserved "liveness" *> return LivenessType) <|>
(reserved "structural" *> return StructuralType) | 181 | false | true | 0 | 9 | 46 | 61 | 29 | 32 | null | null |
ivan-m/paraphrase | benchmarks/CopyAttoparsecState.hs | bsd-3-clause | -- | Terminal failure continuation.
failK :: Failure a
failK i0 _a0 _m0 _st stack msg = Fail (unI i0) stack msg | 111 | failK :: Failure a
failK i0 _a0 _m0 _st stack msg = Fail (unI i0) stack msg | 75 | failK i0 _a0 _m0 _st stack msg = Fail (unI i0) stack msg | 56 | true | true | 1 | 7 | 21 | 47 | 20 | 27 | null | null |
olorin/amazonka | amazonka-ec2/gen/Network/AWS/EC2/Types/Product.hs | mpl-2.0 | -- | Any block device mapping entries for the instance.
insBlockDeviceMappings :: Lens' Instance [InstanceBlockDeviceMapping]
insBlockDeviceMappings = lens _insBlockDeviceMappings (\ s a -> s{_insBlockDeviceMappings = a}) . _Default . _Coerce | 242 | insBlockDeviceMappings :: Lens' Instance [InstanceBlockDeviceMapping]
insBlockDeviceMappings = lens _insBlockDeviceMappings (\ s a -> s{_insBlockDeviceMappings = a}) . _Default . _Coerce | 186 | insBlockDeviceMappings = lens _insBlockDeviceMappings (\ s a -> s{_insBlockDeviceMappings = a}) . _Default . _Coerce | 116 | true | true | 0 | 11 | 29 | 51 | 28 | 23 | null | null |
kRITZCREEK/clippy-api | clippy-lib/Clippy.hs | gpl-3.0 | hashYankHex :: Yank -> Text
hashYankHex = pack . toHex . hashYank | 65 | hashYankHex :: Yank -> Text
hashYankHex = pack . toHex . hashYank | 65 | hashYankHex = pack . toHex . hashYank | 37 | false | true | 0 | 6 | 11 | 23 | 12 | 11 | null | null |
lpeterse/crprover | Prover.hs | gpl-2.0 | runProver :: Prover -> Assumptions -> Strategy -> Maybe ((Proof, Assumptions), Strategy)
runProver m as ps = runStateT (runStateT m as) ps | 149 | runProver :: Prover -> Assumptions -> Strategy -> Maybe ((Proof, Assumptions), Strategy)
runProver m as ps = runStateT (runStateT m as) ps | 149 | runProver m as ps = runStateT (runStateT m as) ps | 51 | false | true | 0 | 11 | 32 | 62 | 31 | 31 | null | null |
rfranek/duckling | Duckling/Time/KO/Rules.hs | bsd-3-clause | ruleChildrensDay :: Rule
ruleChildrensDay = Rule
{ name = "Children's Day"
, pattern =
[ regex "\xc5b4\xb9b0\xc774\xb0a0"
]
, prod = \_ -> tt $ monthDay 5 5
} | 174 | ruleChildrensDay :: Rule
ruleChildrensDay = Rule
{ name = "Children's Day"
, pattern =
[ regex "\xc5b4\xb9b0\xc774\xb0a0"
]
, prod = \_ -> tt $ monthDay 5 5
} | 174 | ruleChildrensDay = Rule
{ name = "Children's Day"
, pattern =
[ regex "\xc5b4\xb9b0\xc774\xb0a0"
]
, prod = \_ -> tt $ monthDay 5 5
} | 149 | false | true | 0 | 10 | 44 | 55 | 30 | 25 | null | null |
ancientlanguage/haskell-analysis | grammar/src/Grammar/Common/Decompose.hs | mit | decomposeChar '\xFB4D' = "\x05DB\x05BF" | 39 | decomposeChar '\xFB4D' = "\x05DB\x05BF" | 39 | decomposeChar '\xFB4D' = "\x05DB\x05BF" | 39 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
TomMD/ghc | utils/deriveConstants/DeriveConstants.hs | bsd-3-clause | constantWord :: Where -> Name -> String -> Wanteds
constantWord w name expr = [(w, GetWord name (Fst (CExpr expr)))] | 116 | constantWord :: Where -> Name -> String -> Wanteds
constantWord w name expr = [(w, GetWord name (Fst (CExpr expr)))] | 116 | constantWord w name expr = [(w, GetWord name (Fst (CExpr expr)))] | 65 | false | true | 0 | 11 | 19 | 56 | 29 | 27 | null | null |
johannesgerer/buchhaltung | src/Buchhaltung/Import.hs | mit | assertParseEqual' :: (Either ParseError a) -> String
assertParseEqual' = const "a" | 83 | assertParseEqual' :: (Either ParseError a) -> String
assertParseEqual' = const "a" | 83 | assertParseEqual' = const "a" | 29 | false | true | 0 | 8 | 11 | 33 | 14 | 19 | null | null |
sherwoodwang/wxHaskell | wxdirect/src/ParseC.hs | lgpl-2.1 | parseDecl :: FilePath -> (String,String) -> IO [Decl]
parseDecl fname (comment,line)
= case parse pdecl fname line of
Left err -> do putStrLn ("ignore: parse error : " ++ show err ++ ", on : " ++ line)
return []
Right mbd -> case mbd of
Just d -> return [d{ dec... | 669 | parseDecl :: FilePath -> (String,String) -> IO [Decl]
parseDecl fname (comment,line)
= case parse pdecl fname line of
Left err -> do putStrLn ("ignore: parse error : " ++ show err ++ ", on : " ++ line)
return []
Right mbd -> case mbd of
Just d -> return [d{ dec... | 669 | parseDecl fname (comment,line)
= case parse pdecl fname line of
Left err -> do putStrLn ("ignore: parse error : " ++ show err ++ ", on : " ++ line)
return []
Right mbd -> case mbd of
Just d -> return [d{ declComment = comment }]
Nothing -> ... | 615 | false | true | 0 | 15 | 164 | 148 | 73 | 75 | null | null |
ryantrinkle/ghcjs | lib/ghcjs-prim/GHCJS/Prim/TH/Serialized.hs | mit | deserializeConstr :: [Word8] -> (ConstrRep -> [Word8] -> a) -> a
deserializeConstr bytes k = deserializeWord8 bytes $ \constr_ix bytes ->
case constr_ix of
1 -> deserializeInt bytes $ \ix -> k (AlgConstr ix)
2 -> deserializ... | 689 | deserializeConstr :: [Word8] -> (ConstrRep -> [Word8] -> a) -> a
deserializeConstr bytes k = deserializeWord8 bytes $ \constr_ix bytes ->
case constr_ix of
1 -> deserializeInt bytes $ \ix -> k (AlgConstr ix)
2 -> deserializ... | 689 | deserializeConstr bytes k = deserializeWord8 bytes $ \constr_ix bytes ->
case constr_ix of
1 -> deserializeInt bytes $ \ix -> k (AlgConstr ix)
2 -> deserializeInteger bytes $ \i -> k (IntConstr i)
... | 624 | false | true | 0 | 14 | 285 | 200 | 97 | 103 | null | null |
iustin/prefix-units | Data/Prefix/Units.hs | bsd-3-clause | unitRange FormatBinary = Right binaryUnits | 50 | unitRange FormatBinary = Right binaryUnits | 50 | unitRange FormatBinary = Right binaryUnits | 50 | false | false | 0 | 5 | 12 | 12 | 5 | 7 | null | null |
wavewave/gnuplot | src/Graphics/Gnuplot/Simple.hs | bsd-3-clause | attrToProg (Grid (Just x)) = "set grid " ++ unwords x | 59 | attrToProg (Grid (Just x)) = "set grid " ++ unwords x | 59 | attrToProg (Grid (Just x)) = "set grid " ++ unwords x | 59 | false | false | 0 | 8 | 16 | 29 | 13 | 16 | null | null |
lifengsun/haskell-exercise | scheme/05/equalparser.hs | gpl-3.0 | parseAtom :: Parser LispVal
parseAtom = do
first <- letter <|> symbol
rest <- many (letter <|> symbol <|> digit)
let atom = first : rest
return $ case atom of
"#t" -> Bool True
"#f" -> Bool False
_ -> Atom atom | 234 | parseAtom :: Parser LispVal
parseAtom = do
first <- letter <|> symbol
rest <- many (letter <|> symbol <|> digit)
let atom = first : rest
return $ case atom of
"#t" -> Bool True
"#f" -> Bool False
_ -> Atom atom | 234 | parseAtom = do
first <- letter <|> symbol
rest <- many (letter <|> symbol <|> digit)
let atom = first : rest
return $ case atom of
"#t" -> Bool True
"#f" -> Bool False
_ -> Atom atom | 206 | false | true | 0 | 11 | 66 | 97 | 45 | 52 | null | null |
arkeet/difference | src/Data/Semigroup/Difference.hs | bsd-3-clause | improve :: Semigroup a => a -> Diff a
improve a = Diff (a <>) a | 63 | improve :: Semigroup a => a -> Diff a
improve a = Diff (a <>) a | 63 | improve a = Diff (a <>) a | 25 | false | true | 0 | 7 | 15 | 37 | 18 | 19 | null | null |
fpco/cabal | cabal-install/Main.hs | bsd-3-clause | updateAction :: Flag Verbosity -> [String] -> GlobalFlags -> IO ()
updateAction verbosityFlag extraArgs globalFlags = do
unless (null extraArgs) $
die $ "'update' doesn't take any extra arguments: " ++ unwords extraArgs
let verbosity = fromFlag verbosityFlag
config <- loadConfig verbosity (globalConfigFile gl... | 450 | updateAction :: Flag Verbosity -> [String] -> GlobalFlags -> IO ()
updateAction verbosityFlag extraArgs globalFlags = do
unless (null extraArgs) $
die $ "'update' doesn't take any extra arguments: " ++ unwords extraArgs
let verbosity = fromFlag verbosityFlag
config <- loadConfig verbosity (globalConfigFile gl... | 450 | updateAction verbosityFlag extraArgs globalFlags = do
unless (null extraArgs) $
die $ "'update' doesn't take any extra arguments: " ++ unwords extraArgs
let verbosity = fromFlag verbosityFlag
config <- loadConfig verbosity (globalConfigFile globalFlags) mempty
let globalFlags' = savedGlobalFlags config `map... | 383 | false | true | 0 | 12 | 69 | 132 | 61 | 71 | null | null |
haskellGardener/yusic | src/Yusic.hs | mit | toSigPitch G4 = G | 21 | toSigPitch G4 = G | 21 | toSigPitch G4 = G | 21 | false | false | 0 | 5 | 7 | 9 | 4 | 5 | null | null |
zaxtax/hakaru-old | Language/Hakaru/Symbolic.hs | bsd-3-clause | binder :: (String -> String -> Maybe String) ->
(String -> String -> VarCounter -> Maybe String) ->
String ->
Maple a -> Maple a -> Maple (Dist a)
binder pr1 pr2 oper e1 e2 = Maple $ pr_
where
pr_ Front h = let x1 = unMaple e1 Front h
x2 = unMaple e2 Front h i... | 769 | binder :: (String -> String -> Maybe String) ->
(String -> String -> VarCounter -> Maybe String) ->
String ->
Maple a -> Maple a -> Maple (Dist a)
binder pr1 pr2 oper e1 e2 = Maple $ pr_
where
pr_ Front h = let x1 = unMaple e1 Front h
x2 = unMaple e2 Front h i... | 769 | binder pr1 pr2 oper e1 e2 = Maple $ pr_
where
pr_ Front h = let x1 = unMaple e1 Front h
x2 = unMaple e2 Front h in
case (pr1 x1 x2, pr2 x1 x2 h) of
(Just z, Just w) -> z ++ " * " ++ oper ++ " (" ++ w ++ " * "
(Nothing, Just w) -> o... | 590 | false | true | 0 | 14 | 333 | 322 | 159 | 163 | null | null |
siddhanathan/yi | yi-keymap-vim/tests/Vim/EditorManipulations/BufferExCommand.hs | gpl-2.0 | tests :: Config -> KeyEval -> TestTree
tests c ev =
testGroup ":buffer" [
testCase ":buffer {bufname} switches to the named buffer" $ do
let setupActions = createInitialBuffers
preConditions editor buffers =
assertNotCurrentBuffer (nthBufferRef 1 buffers) edi... | 5,422 | tests :: Config -> KeyEval -> TestTree
tests c ev =
testGroup ":buffer" [
testCase ":buffer {bufname} switches to the named buffer" $ do
let setupActions = createInitialBuffers
preConditions editor buffers =
assertNotCurrentBuffer (nthBufferRef 1 buffers) edi... | 5,422 | tests c ev =
testGroup ":buffer" [
testCase ":buffer {bufname} switches to the named buffer" $ do
let setupActions = createInitialBuffers
preConditions editor buffers =
assertNotCurrentBuffer (nthBufferRef 1 buffers) editor
testActions buffer... | 5,383 | false | true | 0 | 19 | 2,026 | 1,021 | 474 | 547 | null | null |
CindyLinz/Haskell.js | trans/src/Desugar/String.hs | mit | deStringExp (App l exp1 exp2) = App (id l) (deStringExp exp1) (deStringExp exp2) | 80 | deStringExp (App l exp1 exp2) = App (id l) (deStringExp exp1) (deStringExp exp2) | 80 | deStringExp (App l exp1 exp2) = App (id l) (deStringExp exp1) (deStringExp exp2) | 80 | false | false | 0 | 7 | 12 | 44 | 21 | 23 | null | null |
mapinguari/SC_HS_Proxy | src/Proxy/Math/DeltaGraph.hs | mit | handleDelta g@(Gamma n v pi upsilon delta) d@(PlusND (n', v', n'', e, v'')) | n == n'' = Gamma n v pi' upsilon delta
| otherwise = propD g d
where pi' = applyAddEdgeP (e, v'', undefined, undefined) (Gamma n' v' [] [] Seq.empty) pi | 308 | handleDelta g@(Gamma n v pi upsilon delta) d@(PlusND (n', v', n'', e, v'')) | n == n'' = Gamma n v pi' upsilon delta
| otherwise = propD g d
where pi' = applyAddEdgeP (e, v'', undefined, undefined) (Gamma n' v' [] [] Seq.empty) pi | 308 | handleDelta g@(Gamma n v pi upsilon delta) d@(PlusND (n', v', n'', e, v'')) | n == n'' = Gamma n v pi' upsilon delta
| otherwise = propD g d
where pi' = applyAddEdgeP (e, v'', undefined, undefined) (Gamma n' v' [] [] Seq.empty) pi | 308 | false | false | 0 | 9 | 122 | 134 | 69 | 65 | null | null |
AlexeyRaga/eta | compiler/ETA/CodeGen/Types.hs | bsd-3-clause | maybeDataConClass _ _ = Nothing | 31 | maybeDataConClass _ _ = Nothing | 31 | maybeDataConClass _ _ = Nothing | 31 | false | false | 0 | 5 | 4 | 11 | 5 | 6 | null | null |
hsinewu/Nand2tetris | 06/Decode.hs | mit | bin 1 = "1" | 11 | bin 1 = "1" | 11 | bin 1 = "1" | 11 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
brendanhay/gogol | gogol-tpu/gen/Network/Google/TPU/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'TensorFlowVersion' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'tfvName'
--
-- * 'tfvVersion'
tensorFlowVersion
:: TensorFlowVersion
tensorFlowVersion =
TensorFlowVersion' {_tfvName = Nothing, _tfvVer... | 335 | tensorFlowVersion
:: TensorFlowVersion
tensorFlowVersion =
TensorFlowVersion' {_tfvName = Nothing, _tfvVersion = Nothing} | 127 | tensorFlowVersion =
TensorFlowVersion' {_tfvName = Nothing, _tfvVersion = Nothing} | 84 | true | true | 0 | 7 | 55 | 42 | 24 | 18 | null | null |
yamadapc/battlelogs | src/Main.hs | gpl-2.0 | battleLogsPthOf :: FilePath -> FilePath
battleLogsPthOf = (</> ".battlelogs.md") | 80 | battleLogsPthOf :: FilePath -> FilePath
battleLogsPthOf = (</> ".battlelogs.md") | 80 | battleLogsPthOf = (</> ".battlelogs.md") | 40 | false | true | 0 | 5 | 8 | 19 | 11 | 8 | null | null |
conal/shady-gen | src/Shady/Play/Deriv.hs | agpl-3.0 | -- dot(vec2(3.0,- (sin(3.0 * u))),vec2(cos(u),3.0))
tc = 3 * sin z + cos (3 * z) | 82 | tc = 3 * sin z + cos (3 * z) | 28 | tc = 3 * sin z + cos (3 * z) | 28 | true | false | 1 | 8 | 17 | 31 | 14 | 17 | null | null |
diku-dk/futhark | src/Language/Futhark/Prop.hs | isc | -- | Create a record type corresponding to a tuple with the given
-- element types.
tupleRecord :: [TypeBase dim as] -> ScalarTypeBase dim as
tupleRecord = Record . M.fromList . zip tupleFieldNames | 197 | tupleRecord :: [TypeBase dim as] -> ScalarTypeBase dim as
tupleRecord = Record . M.fromList . zip tupleFieldNames | 113 | tupleRecord = Record . M.fromList . zip tupleFieldNames | 55 | true | true | 0 | 7 | 32 | 43 | 22 | 21 | null | null |
nushio3/formura | exe-src/c-incubator.hs | mit | mainServer :: IO ()
mainServer = do
argv <- getArgs
putStrLn "Qppy!"
writeYaml "izanagi.idv" defaultIndividual
Just qbc0 <- readYaml qbConfigFilePath
let ?qbc = qbc0 :: QBConfig
let
noteDir = ?qbc ^. qbLabNotePath
withCurrentDirectory noteDir $
cmd "git pull"
findIdvs <- readCmd $ "find " ++ no... | 944 | mainServer :: IO ()
mainServer = do
argv <- getArgs
putStrLn "Qppy!"
writeYaml "izanagi.idv" defaultIndividual
Just qbc0 <- readYaml qbConfigFilePath
let ?qbc = qbc0 :: QBConfig
let
noteDir = ?qbc ^. qbLabNotePath
withCurrentDirectory noteDir $
cmd "git pull"
findIdvs <- readCmd $ "find " ++ no... | 944 | mainServer = do
argv <- getArgs
putStrLn "Qppy!"
writeYaml "izanagi.idv" defaultIndividual
Just qbc0 <- readYaml qbConfigFilePath
let ?qbc = qbc0 :: QBConfig
let
noteDir = ?qbc ^. qbLabNotePath
withCurrentDirectory noteDir $
cmd "git pull"
findIdvs <- readCmd $ "find " ++ noteDir ++ " -name '*.... | 924 | false | true | 0 | 19 | 220 | 318 | 144 | 174 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.