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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
iblumenfeld/cryptol | src/Cryptol/Parser/LexerUtils.hs | bsd-3-clause | alexGetByte :: AlexInput -> Maybe (Word8, AlexInput)
alexGetByte i =
do (c,rest) <- T.uncons (input i)
let i' = i { alexPos = move (alexPos i) c, input = rest }
b = byteForChar c
return (b,i') | 214 | alexGetByte :: AlexInput -> Maybe (Word8, AlexInput)
alexGetByte i =
do (c,rest) <- T.uncons (input i)
let i' = i { alexPos = move (alexPos i) c, input = rest }
b = byteForChar c
return (b,i') | 214 | alexGetByte i =
do (c,rest) <- T.uncons (input i)
let i' = i { alexPos = move (alexPos i) c, input = rest }
b = byteForChar c
return (b,i') | 161 | false | true | 0 | 14 | 58 | 105 | 54 | 51 | null | null |
Haskell-Praxis/core-catcher | src/Config/GameConfig.hs | mit | initialEnergiesPerPlayer :: EnergyMap
initialEnergiesPerPlayer =
mapFromList
[ ( Orange, 7 )
, ( Blue, 4 )
, ( Red, 2 )
] | 157 | initialEnergiesPerPlayer :: EnergyMap
initialEnergiesPerPlayer =
mapFromList
[ ( Orange, 7 )
, ( Blue, 4 )
, ( Red, 2 )
] | 157 | initialEnergiesPerPlayer =
mapFromList
[ ( Orange, 7 )
, ( Blue, 4 )
, ( Red, 2 )
] | 119 | false | true | 0 | 7 | 57 | 41 | 25 | 16 | null | null |
hargettp/raft | tests/TestRaft.hs | mit | testsFor1 :: String -> (IO Transport) -> RaftConfiguration -> [Test.Framework.Test]
testsFor1 base transportF cfg = [
testCase (nameTest base "performAction") $ testPerformAction transportF,
testCase (nameTest base "goPerformAction") $ testGoPerformAction transportF,
testCase (nameTest base "clientPerformAction") $ testClientPerformAction transportF cfg,
testCase (nameTest base "withClientPerformAction") $ testWithClientPerformAction transportF cfg
] | 495 | testsFor1 :: String -> (IO Transport) -> RaftConfiguration -> [Test.Framework.Test]
testsFor1 base transportF cfg = [
testCase (nameTest base "performAction") $ testPerformAction transportF,
testCase (nameTest base "goPerformAction") $ testGoPerformAction transportF,
testCase (nameTest base "clientPerformAction") $ testClientPerformAction transportF cfg,
testCase (nameTest base "withClientPerformAction") $ testWithClientPerformAction transportF cfg
] | 495 | testsFor1 base transportF cfg = [
testCase (nameTest base "performAction") $ testPerformAction transportF,
testCase (nameTest base "goPerformAction") $ testGoPerformAction transportF,
testCase (nameTest base "clientPerformAction") $ testClientPerformAction transportF cfg,
testCase (nameTest base "withClientPerformAction") $ testWithClientPerformAction transportF cfg
] | 411 | false | true | 0 | 9 | 87 | 130 | 64 | 66 | null | null |
adept/hledger | hledger/Hledger/Cli/Commands/Commodities.hs | gpl-3.0 | commodities :: CliOpts -> Journal -> IO ()
commodities _copts =
-- TODO support --declared/--used like accounts, payees
mapM_ T.putStrLn . S.filter (/= "AUTO") . journalCommodities | 184 | commodities :: CliOpts -> Journal -> IO ()
commodities _copts =
-- TODO support --declared/--used like accounts, payees
mapM_ T.putStrLn . S.filter (/= "AUTO") . journalCommodities | 184 | commodities _copts =
-- TODO support --declared/--used like accounts, payees
mapM_ T.putStrLn . S.filter (/= "AUTO") . journalCommodities | 141 | false | true | 0 | 8 | 29 | 50 | 25 | 25 | null | null |
shlevy/ghc | compiler/hsSyn/HsBinds.hs | bsd-3-clause | hsSigDoc (SCCFunSig {}) = text "SCC pragma" | 51 | hsSigDoc (SCCFunSig {}) = text "SCC pragma" | 51 | hsSigDoc (SCCFunSig {}) = text "SCC pragma" | 51 | false | false | 0 | 6 | 14 | 20 | 9 | 11 | null | null |
ghc-android/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | foldr_RDR, build_RDR, returnM_RDR, bindM_RDR, failM_RDR :: RdrName
foldr_RDR = nameRdrName foldrName | 114 | foldr_RDR, build_RDR, returnM_RDR, bindM_RDR, failM_RDR :: RdrName
foldr_RDR = nameRdrName foldrName | 114 | foldr_RDR = nameRdrName foldrName | 47 | false | true | 0 | 5 | 24 | 22 | 15 | 7 | null | null |
rnons/lord | Web/Radio/Cmd.hs | unlicense | pprGenres gs = do
putStrLn $ foldr1 f (take 4 gs)
pprGenres $ drop 4 gs
where
f a b = a ++ concat (replicate (20 - length a) " ") ++ b | 148 | pprGenres gs = do
putStrLn $ foldr1 f (take 4 gs)
pprGenres $ drop 4 gs
where
f a b = a ++ concat (replicate (20 - length a) " ") ++ b | 148 | pprGenres gs = do
putStrLn $ foldr1 f (take 4 gs)
pprGenres $ drop 4 gs
where
f a b = a ++ concat (replicate (20 - length a) " ") ++ b | 148 | false | false | 0 | 12 | 46 | 82 | 38 | 44 | null | null |
jwiegley/ghc-release | libraries/Cabal/cabal/Distribution/Simple/InstallDirs.hs | gpl-3.0 | absoluteInstallDirs :: PackageIdentifier -> CompilerId -> CopyDest -> Platform
-> InstallDirs PathTemplate
-> InstallDirs FilePath
absoluteInstallDirs pkgId compilerId copydest platform dirs =
(case copydest of
CopyTo destdir -> fmap ((destdir </>) . dropDrive)
_ -> id)
. appendSubdirs (</>)
. fmap fromPathTemplate
$ substituteInstallDirTemplates env dirs
where
env = initialPathTemplateEnv pkgId compilerId platform
-- |The location prefix for the /copy/ command. | 551 | absoluteInstallDirs :: PackageIdentifier -> CompilerId -> CopyDest -> Platform
-> InstallDirs PathTemplate
-> InstallDirs FilePath
absoluteInstallDirs pkgId compilerId copydest platform dirs =
(case copydest of
CopyTo destdir -> fmap ((destdir </>) . dropDrive)
_ -> id)
. appendSubdirs (</>)
. fmap fromPathTemplate
$ substituteInstallDirTemplates env dirs
where
env = initialPathTemplateEnv pkgId compilerId platform
-- |The location prefix for the /copy/ command. | 551 | absoluteInstallDirs pkgId compilerId copydest platform dirs =
(case copydest of
CopyTo destdir -> fmap ((destdir </>) . dropDrive)
_ -> id)
. appendSubdirs (</>)
. fmap fromPathTemplate
$ substituteInstallDirTemplates env dirs
where
env = initialPathTemplateEnv pkgId compilerId platform
-- |The location prefix for the /copy/ command. | 380 | false | true | 4 | 12 | 145 | 130 | 63 | 67 | null | null |
slpopejoy/fadno-xml | src/Fadno/MusicXml/MusicXml30.hs | bsd-2-clause | parseEncoding :: P.XParse Encoding
parseEncoding =
Encoding
<$> P.many (parseChxEncoding) | 104 | parseEncoding :: P.XParse Encoding
parseEncoding =
Encoding
<$> P.many (parseChxEncoding) | 104 | parseEncoding =
Encoding
<$> P.many (parseChxEncoding) | 69 | false | true | 0 | 7 | 24 | 28 | 14 | 14 | null | null |
feliposz/project-euler-solutions | haskell/euler12.hs | mit | -- 1 My first simple implementation (slow)
-- nub is to account for perfect squares
divisors n = nub $ concat [ [d, n `div` d] | d <- [1..sqn], n `mod` d == 0 ]
where sqn = (floor (sqrt (fromIntegral n))) | 206 | divisors n = nub $ concat [ [d, n `div` d] | d <- [1..sqn], n `mod` d == 0 ]
where sqn = (floor (sqrt (fromIntegral n))) | 121 | divisors n = nub $ concat [ [d, n `div` d] | d <- [1..sqn], n `mod` d == 0 ]
where sqn = (floor (sqrt (fromIntegral n))) | 121 | true | false | 2 | 11 | 44 | 89 | 48 | 41 | null | null |
barrucadu/spec | Test/CoCo/Logic.hs | mit | equalAndIsInstanceOf :: (Eq a, Eq b)
=> (a, b, Maybe Observation)
-> (a, b, Maybe Observation)
-> Bool
equalAndIsInstanceOf (ab1, ba1, ob1) (ab2, ba2, ob2) =
ab1 == ab2 && ba1 == ba2 && case (,) <$> ob1 <*> ob2 of
Just (Equiv lr1 t1 t2, Equiv lr2 t3 t4) -> lr1 == lr2 && t3 `isInstanceOf` t1 && t4 `isInstanceOf` t2
Just (Refines lr1 t1 t2, Refines lr2 t3 t4) -> lr1 == lr2 && t3 `isInstanceOf` t1 && t4 `isInstanceOf` t2
_ -> False
-- | Given two equal observations, check if the first has a more general naming than the right. | 553 | equalAndIsInstanceOf :: (Eq a, Eq b)
=> (a, b, Maybe Observation)
-> (a, b, Maybe Observation)
-> Bool
equalAndIsInstanceOf (ab1, ba1, ob1) (ab2, ba2, ob2) =
ab1 == ab2 && ba1 == ba2 && case (,) <$> ob1 <*> ob2 of
Just (Equiv lr1 t1 t2, Equiv lr2 t3 t4) -> lr1 == lr2 && t3 `isInstanceOf` t1 && t4 `isInstanceOf` t2
Just (Refines lr1 t1 t2, Refines lr2 t3 t4) -> lr1 == lr2 && t3 `isInstanceOf` t1 && t4 `isInstanceOf` t2
_ -> False
-- | Given two equal observations, check if the first has a more general naming than the right. | 553 | equalAndIsInstanceOf (ab1, ba1, ob1) (ab2, ba2, ob2) =
ab1 == ab2 && ba1 == ba2 && case (,) <$> ob1 <*> ob2 of
Just (Equiv lr1 t1 t2, Equiv lr2 t3 t4) -> lr1 == lr2 && t3 `isInstanceOf` t1 && t4 `isInstanceOf` t2
Just (Refines lr1 t1 t2, Refines lr2 t3 t4) -> lr1 == lr2 && t3 `isInstanceOf` t1 && t4 `isInstanceOf` t2
_ -> False
-- | Given two equal observations, check if the first has a more general naming than the right. | 444 | false | true | 9 | 10 | 128 | 195 | 109 | 86 | null | null |
mightymoose/liquidhaskell | benchmarks/text-0.11.2.3/Data/Text/Read.hs | bsd-3-clause | hexadecimal txt
| h == "0x" || h == "0X" = hex t
| otherwise = hex txt
where (h,t) = T.splitAt 2 txt | 122 | hexadecimal txt
| h == "0x" || h == "0X" = hex t
| otherwise = hex txt
where (h,t) = T.splitAt 2 txt | 122 | hexadecimal txt
| h == "0x" || h == "0X" = hex t
| otherwise = hex txt
where (h,t) = T.splitAt 2 txt | 122 | false | false | 1 | 10 | 45 | 61 | 29 | 32 | null | null |
JacquesCarette/literate-scientific-software | code/drasil-docLang/Drasil/Sections/Stakeholders.hs | bsd-2-clause | customerIntro :: (Idea a) => a -> Contents
customerIntro kWord = foldlSP [atStartNP' $ the customer,
S "are the", phrase endUser `sOf` short kWord] | 149 | customerIntro :: (Idea a) => a -> Contents
customerIntro kWord = foldlSP [atStartNP' $ the customer,
S "are the", phrase endUser `sOf` short kWord] | 149 | customerIntro kWord = foldlSP [atStartNP' $ the customer,
S "are the", phrase endUser `sOf` short kWord] | 106 | false | true | 0 | 8 | 25 | 61 | 31 | 30 | null | null |
johnpmayer/elm-protoc | src/Templates.hs | agpl-3.0 | elmRecordField prefix (name, typename) =
[text|
${prefix} ${name} : ${typename}
|] | 90 | elmRecordField prefix (name, typename) =
[text|
${prefix} ${name} : ${typename}
|] | 90 | elmRecordField prefix (name, typename) =
[text|
${prefix} ${name} : ${typename}
|] | 90 | false | false | 0 | 6 | 18 | 21 | 13 | 8 | null | null |
kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/CreateSecurityGroup.hs | mpl-2.0 | -- | [EC2-VPC] The ID of the VPC. Required for EC2-VPC.
csgVpcId :: Lens' CreateSecurityGroup (Maybe Text)
csgVpcId = lens _csgVpcId (\s a -> s { _csgVpcId = a }) | 162 | csgVpcId :: Lens' CreateSecurityGroup (Maybe Text)
csgVpcId = lens _csgVpcId (\s a -> s { _csgVpcId = a }) | 106 | csgVpcId = lens _csgVpcId (\s a -> s { _csgVpcId = a }) | 55 | true | true | 0 | 9 | 29 | 46 | 25 | 21 | null | null |
fpco/serial-bench | binary-0.4.3.1/tests/NewBenchmark.hs | bsd-3-clause | putWord16be :: BinHandle -> Word16 -> IO ()
putWord16be = put_ | 62 | putWord16be :: BinHandle -> Word16 -> IO ()
putWord16be = put_ | 62 | putWord16be = put_ | 18 | false | true | 0 | 8 | 10 | 24 | 12 | 12 | null | null |
da-x/ghc | compiler/main/HscMain.hs | bsd-3-clause | hscMaybeWriteIface :: DynFlags -> ModIface -> Bool -> ModSummary -> IO ()
hscMaybeWriteIface dflags iface changed summary =
let force_write_interface = gopt Opt_WriteInterface dflags
write_interface = case hscTarget dflags of
HscNothing -> False
HscInterpreted -> False
_ -> True
in when (write_interface || force_write_interface) $
hscWriteIface dflags iface changed summary | 507 | hscMaybeWriteIface :: DynFlags -> ModIface -> Bool -> ModSummary -> IO ()
hscMaybeWriteIface dflags iface changed summary =
let force_write_interface = gopt Opt_WriteInterface dflags
write_interface = case hscTarget dflags of
HscNothing -> False
HscInterpreted -> False
_ -> True
in when (write_interface || force_write_interface) $
hscWriteIface dflags iface changed summary | 507 | hscMaybeWriteIface dflags iface changed summary =
let force_write_interface = gopt Opt_WriteInterface dflags
write_interface = case hscTarget dflags of
HscNothing -> False
HscInterpreted -> False
_ -> True
in when (write_interface || force_write_interface) $
hscWriteIface dflags iface changed summary | 433 | false | true | 0 | 11 | 181 | 110 | 53 | 57 | null | null |
kazu-yamamoto/http-types | Network/HTTP/Types/Status.hs | bsd-3-clause | -- | Bad Gateway 502
status502 :: Status
status502 = mkStatus 502 "Bad Gateway" | 79 | status502 :: Status
status502 = mkStatus 502 "Bad Gateway" | 58 | status502 = mkStatus 502 "Bad Gateway" | 38 | true | true | 0 | 6 | 13 | 25 | 10 | 15 | null | null |
eligottlieb/Shannon | src/Statistics/Information/Discrete/Entropy.hs | bsd-3-clause | centropy :: Eq a => Int -> Matrix a -> Matrix a -> Double
centropy base xs ys = entropy base (xs <|> ys) - entropy base ys | 122 | centropy :: Eq a => Int -> Matrix a -> Matrix a -> Double
centropy base xs ys = entropy base (xs <|> ys) - entropy base ys | 122 | centropy base xs ys = entropy base (xs <|> ys) - entropy base ys | 64 | false | true | 0 | 9 | 27 | 64 | 30 | 34 | null | null |
christiannolte/tip-toi-reveng | src/GMEParser.hs | mit | indirectBS :: String -> SGet B.ByteString
indirectBS desc = do
offset <- getWord32
length <- getWord32
getSegAt offset desc (getBS length) | 150 | indirectBS :: String -> SGet B.ByteString
indirectBS desc = do
offset <- getWord32
length <- getWord32
getSegAt offset desc (getBS length) | 150 | indirectBS desc = do
offset <- getWord32
length <- getWord32
getSegAt offset desc (getBS length) | 108 | false | true | 0 | 9 | 32 | 53 | 24 | 29 | null | null |
Elastifile/git-sling | server/src/Sling/Proposal.hs | gpl-2.0 | formatRef :: Git.Ref -> Text
formatRef (Git.RefParent r n) = (T.pack . show $ fromNatInt n) <> "#" <> formatRef r | 113 | formatRef :: Git.Ref -> Text
formatRef (Git.RefParent r n) = (T.pack . show $ fromNatInt n) <> "#" <> formatRef r | 113 | formatRef (Git.RefParent r n) = (T.pack . show $ fromNatInt n) <> "#" <> formatRef r | 84 | false | true | 0 | 10 | 20 | 62 | 29 | 33 | null | null |
kolmodin/cabal | Cabal/Distribution/Simple/Program/HcPkg.hs | bsd-3-clause | initInvocation :: HcPkgInfo -> Verbosity -> FilePath -> ProgramInvocation
initInvocation hpi verbosity path =
programInvocation (hcPkgProgram hpi) args
where
args = ["init", path]
++ verbosityOpts hpi verbosity | 228 | initInvocation :: HcPkgInfo -> Verbosity -> FilePath -> ProgramInvocation
initInvocation hpi verbosity path =
programInvocation (hcPkgProgram hpi) args
where
args = ["init", path]
++ verbosityOpts hpi verbosity | 228 | initInvocation hpi verbosity path =
programInvocation (hcPkgProgram hpi) args
where
args = ["init", path]
++ verbosityOpts hpi verbosity | 154 | false | true | 0 | 7 | 44 | 64 | 32 | 32 | null | null |
nickbart1980/pandoc | src/Text/Pandoc/Writers/Custom.hs | gpl-2.0 | inlineToCustom lua (LineBreak) = callfunc lua "LineBreak" | 57 | inlineToCustom lua (LineBreak) = callfunc lua "LineBreak" | 57 | inlineToCustom lua (LineBreak) = callfunc lua "LineBreak" | 57 | false | false | 0 | 5 | 6 | 22 | 9 | 13 | null | null |
Hodapp87/ivory | ivory-model-check/src/Ivory/ModelCheck/Ivory2CVC4.hs | bsd-3-clause | toReturn :: [I.Ensure] -> I.Type -> I.Expr -> ModelCheck ()
toReturn ens t exp = do
e <- toExpr t exp
v <- addEnvVar t "retval"
addInvariant (var v .== e)
queryEnsures ens t exp | 185 | toReturn :: [I.Ensure] -> I.Type -> I.Expr -> ModelCheck ()
toReturn ens t exp = do
e <- toExpr t exp
v <- addEnvVar t "retval"
addInvariant (var v .== e)
queryEnsures ens t exp | 185 | toReturn ens t exp = do
e <- toExpr t exp
v <- addEnvVar t "retval"
addInvariant (var v .== e)
queryEnsures ens t exp | 125 | false | true | 0 | 11 | 42 | 100 | 44 | 56 | null | null |
noschinl/cyp | src/Test/Info2/Cyp/Parser.hs | mit | equationProofParser :: Parsec [Char] Env ParseProof
equationProofParser = fmap ParseEquation equationsParser | 108 | equationProofParser :: Parsec [Char] Env ParseProof
equationProofParser = fmap ParseEquation equationsParser | 108 | equationProofParser = fmap ParseEquation equationsParser | 56 | false | true | 0 | 6 | 10 | 26 | 13 | 13 | null | null |
ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/max_6.hs | mit | ltEsOrdering GT GT = MyTrue | 27 | ltEsOrdering GT GT = MyTrue | 27 | ltEsOrdering GT GT = MyTrue | 27 | false | false | 0 | 5 | 4 | 11 | 5 | 6 | null | null |
fmapfmapfmap/amazonka | amazonka-ec2/gen/Network/AWS/EC2/CancelSpotInstanceRequests.hs | mpl-2.0 | -- | Creates a value of 'CancelSpotInstanceRequestsResponse' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'csirrsCancelledSpotInstanceRequests'
--
-- * 'csirrsResponseStatus'
cancelSpotInstanceRequestsResponse
:: Int -- ^ 'csirrsResponseStatus'
-> CancelSpotInstanceRequestsResponse
cancelSpotInstanceRequestsResponse pResponseStatus_ =
CancelSpotInstanceRequestsResponse'
{ _csirrsCancelledSpotInstanceRequests = Nothing
, _csirrsResponseStatus = pResponseStatus_
} | 578 | cancelSpotInstanceRequestsResponse
:: Int -- ^ 'csirrsResponseStatus'
-> CancelSpotInstanceRequestsResponse
cancelSpotInstanceRequestsResponse pResponseStatus_ =
CancelSpotInstanceRequestsResponse'
{ _csirrsCancelledSpotInstanceRequests = Nothing
, _csirrsResponseStatus = pResponseStatus_
} | 315 | cancelSpotInstanceRequestsResponse pResponseStatus_ =
CancelSpotInstanceRequestsResponse'
{ _csirrsCancelledSpotInstanceRequests = Nothing
, _csirrsResponseStatus = pResponseStatus_
} | 199 | true | true | 0 | 7 | 82 | 49 | 28 | 21 | null | null |
haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F25.hs | bsd-3-clause | ptr_glTagSampleBufferSGIX :: FunPtr (IO ())
ptr_glTagSampleBufferSGIX = unsafePerformIO $ getCommand "glTagSampleBufferSGIX" | 124 | ptr_glTagSampleBufferSGIX :: FunPtr (IO ())
ptr_glTagSampleBufferSGIX = unsafePerformIO $ getCommand "glTagSampleBufferSGIX" | 124 | ptr_glTagSampleBufferSGIX = unsafePerformIO $ getCommand "glTagSampleBufferSGIX" | 80 | false | true | 0 | 8 | 10 | 29 | 14 | 15 | null | null |
peterthiemann/cftools | src/Equivalence.hs | bsd-3-clause | runExamples sigma ((r,s,result) : rest) =
(equiv sigma r s == result) && runExamples sigma rest | 108 | runExamples sigma ((r,s,result) : rest) =
(equiv sigma r s == result) && runExamples sigma rest | 108 | runExamples sigma ((r,s,result) : rest) =
(equiv sigma r s == result) && runExamples sigma rest | 108 | false | false | 0 | 8 | 28 | 50 | 26 | 24 | null | null |
siddhanathan/ghc | compiler/hsSyn/HsUtils.hs | bsd-3-clause | mkVarBind :: id -> LHsExpr id -> LHsBind id
mkVarBind var rhs = L (getLoc rhs) $
VarBind { var_id = var, var_rhs = rhs, var_inline = False } | 160 | mkVarBind :: id -> LHsExpr id -> LHsBind id
mkVarBind var rhs = L (getLoc rhs) $
VarBind { var_id = var, var_rhs = rhs, var_inline = False } | 160 | mkVarBind var rhs = L (getLoc rhs) $
VarBind { var_id = var, var_rhs = rhs, var_inline = False } | 116 | false | true | 0 | 8 | 48 | 63 | 33 | 30 | null | null |
ciderpunx/exercismo | src/CustomSet.hs | gpl-3.0 | difference (Set xs) (Set ys) = Set $ xs \\ ys | 45 | difference (Set xs) (Set ys) = Set $ xs \\ ys | 45 | difference (Set xs) (Set ys) = Set $ xs \\ ys | 45 | false | false | 0 | 6 | 10 | 33 | 15 | 18 | null | null |
Airtnp/Freshman_Simple_Haskell_Lib | Intro/TAPL/church.hs | mit | churchExp = \m -> \n -> \s -> \z -> (\s' -> m n s') s z | 55 | churchExp = \m -> \n -> \s -> \z -> (\s' -> m n s') s z | 55 | churchExp = \m -> \n -> \s -> \z -> (\s' -> m n s') s z | 55 | false | false | 0 | 12 | 16 | 44 | 24 | 20 | null | null |
sternenseemann/spacecookie | test/Main.hs | gpl-3.0 | main :: IO ()
main = defaultMain tests | 38 | main :: IO ()
main = defaultMain tests | 38 | main = defaultMain tests | 24 | false | true | 0 | 7 | 7 | 25 | 10 | 15 | null | null |
ozgurakgun/Idris-dev | src/Util/DynamicLinker.hs | bsd-3-clause | getLastMatch :: [MatchText String] -> Maybe String
getLastMatch [] = Nothing | 76 | getLastMatch :: [MatchText String] -> Maybe String
getLastMatch [] = Nothing | 76 | getLastMatch [] = Nothing | 25 | false | true | 0 | 8 | 10 | 34 | 15 | 19 | null | null |
jwiegley/hnix | src/Nix/Builtins.hs | bsd-3-clause | exec_
:: forall e t f m . MonadNix e t f m => NValue t f m -> m (NValue t f m)
exec_ xs = do
ls <- fromValue @[NValue t f m] xs
xs <- traverse (coerceToString callFunc DontCopyToStore CoerceStringy) ls
-- TODO Still need to do something with the context here
-- See prim_exec in nix/src/libexpr/primops.cc
-- Requires the implementation of EvalState::realiseContext
exec (map (Text.unpack . hackyStringIgnoreContext) xs) | 434 | exec_
:: forall e t f m . MonadNix e t f m => NValue t f m -> m (NValue t f m)
exec_ xs = do
ls <- fromValue @[NValue t f m] xs
xs <- traverse (coerceToString callFunc DontCopyToStore CoerceStringy) ls
-- TODO Still need to do something with the context here
-- See prim_exec in nix/src/libexpr/primops.cc
-- Requires the implementation of EvalState::realiseContext
exec (map (Text.unpack . hackyStringIgnoreContext) xs) | 434 | exec_ xs = do
ls <- fromValue @[NValue t f m] xs
xs <- traverse (coerceToString callFunc DontCopyToStore CoerceStringy) ls
-- TODO Still need to do something with the context here
-- See prim_exec in nix/src/libexpr/primops.cc
-- Requires the implementation of EvalState::realiseContext
exec (map (Text.unpack . hackyStringIgnoreContext) xs) | 353 | false | true | 0 | 13 | 85 | 135 | 66 | 69 | null | null |
ngzax/urbit | pkg/hs/urbit-king/lib/Urbit/Time.hs | mit | unix :: Iso' Wen Unix
unix = iso toUnix fromUnix
where
toUnix (Wen g) = Unix (g - unWen unixEpoch)
fromUnix (Unix g) = Wen (unWen unixEpoch + g)
unWen (Wen x) = x | 179 | unix :: Iso' Wen Unix
unix = iso toUnix fromUnix
where
toUnix (Wen g) = Unix (g - unWen unixEpoch)
fromUnix (Unix g) = Wen (unWen unixEpoch + g)
unWen (Wen x) = x | 179 | unix = iso toUnix fromUnix
where
toUnix (Wen g) = Unix (g - unWen unixEpoch)
fromUnix (Unix g) = Wen (unWen unixEpoch + g)
unWen (Wen x) = x | 157 | false | true | 1 | 8 | 50 | 96 | 44 | 52 | null | null |
leksah/yi | src/library/Yi/Editor.hs | gpl-2.0 | -- ---------------------------------------------------------------------
-- | Dynamically-extensible state components.
--
-- These hooks are used by keymaps to store values that result from
-- Actions (i.e. that restult from IO), as opposed to the pure values
-- they generate themselves, and can be stored internally.
--
-- The `dynamic' field is a type-indexed map.
--
-- | Retrieve a value from the extensible state
getEditorDyn :: (MonadEditor m, YiVariable a, Default a, Functor m) => m a
getEditorDyn = fromMaybe def <$> getDyn (use dynamicA) (assign dynamicA) | 567 | getEditorDyn :: (MonadEditor m, YiVariable a, Default a, Functor m) => m a
getEditorDyn = fromMaybe def <$> getDyn (use dynamicA) (assign dynamicA) | 147 | getEditorDyn = fromMaybe def <$> getDyn (use dynamicA) (assign dynamicA) | 72 | true | true | 0 | 8 | 85 | 80 | 43 | 37 | null | null |
snoyberg/hackage-server | Distribution/Server/Features/Core.hs | bsd-3-clause | isPackageChangeAny (PackageChangeInfo _ pkginfo) = Just (packageId pkginfo, Just pkginfo) | 93 | isPackageChangeAny (PackageChangeInfo _ pkginfo) = Just (packageId pkginfo, Just pkginfo) | 93 | isPackageChangeAny (PackageChangeInfo _ pkginfo) = Just (packageId pkginfo, Just pkginfo) | 93 | false | false | 0 | 7 | 13 | 32 | 15 | 17 | null | null |
thalerjonathan/phd | public/ArtIterating/code/haskell/PureAgentsPar/src/HeroesAndCowards/HACModel.hs | gpl-3.0 | vecNorm :: HACAgentPosition -> HACAgentPosition
vecNorm (x, y)
| len == 0 = (0, 0)
| otherwise = (x / len, y / len)
where
len = vecLen (x, y) | 161 | vecNorm :: HACAgentPosition -> HACAgentPosition
vecNorm (x, y)
| len == 0 = (0, 0)
| otherwise = (x / len, y / len)
where
len = vecLen (x, y) | 161 | vecNorm (x, y)
| len == 0 = (0, 0)
| otherwise = (x / len, y / len)
where
len = vecLen (x, y) | 113 | false | true | 1 | 8 | 49 | 78 | 42 | 36 | null | null |
juhp/network-uri | tests/uri001.hs | bsd-3-clause | testRFC33 = testRelJoin "testRFC33" rfcbase "../../../../g" "http://a/g" | 72 | testRFC33 = testRelJoin "testRFC33" rfcbase "../../../../g" "http://a/g" | 72 | testRFC33 = testRelJoin "testRFC33" rfcbase "../../../../g" "http://a/g" | 72 | false | false | 0 | 5 | 6 | 15 | 7 | 8 | null | null |
Ming-Tang/FP15 | src/FP15/Compiler/Syntax/Precedence.hs | mit | splitInfixNode :: PrecRepr -> [PrecNode o a] -> Result RightTree o a
splitInfixNode p = parsePairs . split (whenElt $ isInfixNodeOf p) where
parsePairs [x] = return $ Last x
parsePairs (x:[InfN a' p' o]:xs)
| p == (p', Just a') = RBranch x (a', o) <$> parsePairs xs
| otherwise = error "FP15.Compiler.Precedence.splitInfixNode: impossible: wrong prec"
parsePairs _ = error "FP15.Compiler.Precedence.splitInfixNode: impossible: empty list" | 452 | splitInfixNode :: PrecRepr -> [PrecNode o a] -> Result RightTree o a
splitInfixNode p = parsePairs . split (whenElt $ isInfixNodeOf p) where
parsePairs [x] = return $ Last x
parsePairs (x:[InfN a' p' o]:xs)
| p == (p', Just a') = RBranch x (a', o) <$> parsePairs xs
| otherwise = error "FP15.Compiler.Precedence.splitInfixNode: impossible: wrong prec"
parsePairs _ = error "FP15.Compiler.Precedence.splitInfixNode: impossible: empty list" | 452 | splitInfixNode p = parsePairs . split (whenElt $ isInfixNodeOf p) where
parsePairs [x] = return $ Last x
parsePairs (x:[InfN a' p' o]:xs)
| p == (p', Just a') = RBranch x (a', o) <$> parsePairs xs
| otherwise = error "FP15.Compiler.Precedence.splitInfixNode: impossible: wrong prec"
parsePairs _ = error "FP15.Compiler.Precedence.splitInfixNode: impossible: empty list" | 383 | false | true | 0 | 12 | 78 | 167 | 80 | 87 | null | null |
DanielWaterworth/Idris-dev | src/Idris/Core/TT.hs | bsd-3-clause | freeNames (Bind n (Let t v) sc) = nub $ freeNames v ++ (freeNames sc \\ [n])
++ freeNames t | 131 | freeNames (Bind n (Let t v) sc) = nub $ freeNames v ++ (freeNames sc \\ [n])
++ freeNames t | 131 | freeNames (Bind n (Let t v) sc) = nub $ freeNames v ++ (freeNames sc \\ [n])
++ freeNames t | 131 | false | false | 0 | 9 | 59 | 59 | 28 | 31 | null | null |
siddhanathan/ghc | testsuite/tests/indexed-types/should_fail/T4099.hs | bsd-3-clause | bar2 :: b -> Maybe b -> Int
bar2 a x = foo (error "urk") x | 58 | bar2 :: b -> Maybe b -> Int
bar2 a x = foo (error "urk") x | 58 | bar2 a x = foo (error "urk") x | 30 | false | true | 0 | 7 | 15 | 38 | 18 | 20 | null | null |
phischu/fragnix | builtins/base/GHC.IO.Handle.Text.hs | bsd-3-clause | hPutChar :: Handle -> Char -> IO ()
hPutChar handle c = do
c `seq` return ()
wantWritableHandle "hPutChar" handle $ \ handle_ -> do
hPutcBuffered handle_ c | 169 | hPutChar :: Handle -> Char -> IO ()
hPutChar handle c = do
c `seq` return ()
wantWritableHandle "hPutChar" handle $ \ handle_ -> do
hPutcBuffered handle_ c | 169 | hPutChar handle c = do
c `seq` return ()
wantWritableHandle "hPutChar" handle $ \ handle_ -> do
hPutcBuffered handle_ c | 133 | false | true | 0 | 12 | 41 | 73 | 33 | 40 | null | null |
changlinli/nikki | src/Data/Binary/Strict.hs | lgpl-3.0 | lazyToStrict :: Lazy.ByteString -> Strict.ByteString
lazyToStrict = Strict.concat . toChunks | 92 | lazyToStrict :: Lazy.ByteString -> Strict.ByteString
lazyToStrict = Strict.concat . toChunks | 92 | lazyToStrict = Strict.concat . toChunks | 39 | false | true | 0 | 6 | 9 | 25 | 13 | 12 | null | null |
kmels/tersus | Handler/Applications.hs | bsd-2-clause | getTApplicationEditR :: ApplicationIdentifier -> Handler RepHtml
getTApplicationEditR identifier = do
{-Entity _ tapp <- runDB $ getBy404 $ UniqueIdentifier $ identifier
(formWidget, enctype) <- generateFormPost $ tAppForm [] $ Just tapp
let appname = identifier
adminList <- fetchAdminsOf identifier
let manageTAppAdminsWidget = $(widgetFile "admin/TApplication/manageTAppAdminsWidget")
defaultLayout $(widgetFile "admin/TApplication/edit")-}
permissionDenied "TODO"
-- | processes a form produced by TApplicationeditR GET | 539 | getTApplicationEditR :: ApplicationIdentifier -> Handler RepHtml
getTApplicationEditR identifier = do
{-Entity _ tapp <- runDB $ getBy404 $ UniqueIdentifier $ identifier
(formWidget, enctype) <- generateFormPost $ tAppForm [] $ Just tapp
let appname = identifier
adminList <- fetchAdminsOf identifier
let manageTAppAdminsWidget = $(widgetFile "admin/TApplication/manageTAppAdminsWidget")
defaultLayout $(widgetFile "admin/TApplication/edit")-}
permissionDenied "TODO"
-- | processes a form produced by TApplicationeditR GET | 539 | getTApplicationEditR identifier = do
{-Entity _ tapp <- runDB $ getBy404 $ UniqueIdentifier $ identifier
(formWidget, enctype) <- generateFormPost $ tAppForm [] $ Just tapp
let appname = identifier
adminList <- fetchAdminsOf identifier
let manageTAppAdminsWidget = $(widgetFile "admin/TApplication/manageTAppAdminsWidget")
defaultLayout $(widgetFile "admin/TApplication/edit")-}
permissionDenied "TODO"
-- | processes a form produced by TApplicationeditR GET | 474 | false | true | 0 | 7 | 73 | 29 | 14 | 15 | null | null |
tismith/tlisp | write-yourself-a-scheme/listings/listing4.2.hs | mit | parseList :: Parser LispVal
parseList = liftM List $ sepBy parseExpr spaces | 75 | parseList :: Parser LispVal
parseList = liftM List $ sepBy parseExpr spaces | 75 | parseList = liftM List $ sepBy parseExpr spaces | 47 | false | true | 2 | 6 | 11 | 33 | 13 | 20 | null | null |
CloudI/CloudI | src/api/haskell/external/network-3.1.0.1/tests/Network/Test/Common.hs | mit | setServerAction
:: (Socket -> IO c)
-> ClientServer a b
-> ClientServer a c
setServerAction f c = c { serverAction = f } | 132 | setServerAction
:: (Socket -> IO c)
-> ClientServer a b
-> ClientServer a c
setServerAction f c = c { serverAction = f } | 132 | setServerAction f c = c { serverAction = f } | 44 | false | true | 0 | 8 | 35 | 52 | 26 | 26 | null | null |
rawlep/EQS | sourceCode/ResultTypes.hs | mit | readChain_aux :: L.ByteString -> Maybe [Chain]
readChain_aux = sequence . sblocks
where
sblocks = map readChainsR . splitAtChunksBSx stC -- $ takeB4Block eoC contents.
--
stC = L.pack "cInterval: "
eoC = L.pack "EOChn"
--
cpars = map L.pack ["cInterval: ", "cData: ","cYears: ","cMissingYrs: "]
--
readChainsR :: L.ByteString -> Maybe Chain
readChainsR = getChainRec . map (takeB4Block eoC) . separateAt cpars
---- converts a list of bytestring to a Chain record
getChainRec :: [L.ByteString] -> Maybe Chain
getChainRec ks
| length ks == 4 =
case check4 ks of
Nothing -> Nothing
Just ((b,(c,d)),e) ->
if length b >= 2 then
Just $ Chain (b!! 0, b!! 1) c d e
else Nothing
| length ks == 3 =
case check3 ks of
Nothing -> Nothing
Just (a,(b,c)) ->
if length a >= 2 then
Just $ Chain (a !! 0, a!! 1) b c []
else Nothing
| otherwise = Nothing
where
bsd = bs2Double1 . L.filter (not . isSpace)
check3 xs = maybe3 (sequence $ map bsd (L.split '-' (xs !! 0)))
(sequence $ map bsd (L.split ',' (xs !! 1)))
(sequence $ map bsd (L.split ',' (xs !! 2)))
check4 xs = maybe2 (check3 xs) (sequence $ map bs2Double1 (L.split ',' (xs !! 4)))
--- | 1,676 | readChain_aux :: L.ByteString -> Maybe [Chain]
readChain_aux = sequence . sblocks
where
sblocks = map readChainsR . splitAtChunksBSx stC -- $ takeB4Block eoC contents.
--
stC = L.pack "cInterval: "
eoC = L.pack "EOChn"
--
cpars = map L.pack ["cInterval: ", "cData: ","cYears: ","cMissingYrs: "]
--
readChainsR :: L.ByteString -> Maybe Chain
readChainsR = getChainRec . map (takeB4Block eoC) . separateAt cpars
---- converts a list of bytestring to a Chain record
getChainRec :: [L.ByteString] -> Maybe Chain
getChainRec ks
| length ks == 4 =
case check4 ks of
Nothing -> Nothing
Just ((b,(c,d)),e) ->
if length b >= 2 then
Just $ Chain (b!! 0, b!! 1) c d e
else Nothing
| length ks == 3 =
case check3 ks of
Nothing -> Nothing
Just (a,(b,c)) ->
if length a >= 2 then
Just $ Chain (a !! 0, a!! 1) b c []
else Nothing
| otherwise = Nothing
where
bsd = bs2Double1 . L.filter (not . isSpace)
check3 xs = maybe3 (sequence $ map bsd (L.split '-' (xs !! 0)))
(sequence $ map bsd (L.split ',' (xs !! 1)))
(sequence $ map bsd (L.split ',' (xs !! 2)))
check4 xs = maybe2 (check3 xs) (sequence $ map bs2Double1 (L.split ',' (xs !! 4)))
--- | 1,676 | readChain_aux = sequence . sblocks
where
sblocks = map readChainsR . splitAtChunksBSx stC -- $ takeB4Block eoC contents.
--
stC = L.pack "cInterval: "
eoC = L.pack "EOChn"
--
cpars = map L.pack ["cInterval: ", "cData: ","cYears: ","cMissingYrs: "]
--
readChainsR :: L.ByteString -> Maybe Chain
readChainsR = getChainRec . map (takeB4Block eoC) . separateAt cpars
---- converts a list of bytestring to a Chain record
getChainRec :: [L.ByteString] -> Maybe Chain
getChainRec ks
| length ks == 4 =
case check4 ks of
Nothing -> Nothing
Just ((b,(c,d)),e) ->
if length b >= 2 then
Just $ Chain (b!! 0, b!! 1) c d e
else Nothing
| length ks == 3 =
case check3 ks of
Nothing -> Nothing
Just (a,(b,c)) ->
if length a >= 2 then
Just $ Chain (a !! 0, a!! 1) b c []
else Nothing
| otherwise = Nothing
where
bsd = bs2Double1 . L.filter (not . isSpace)
check3 xs = maybe3 (sequence $ map bsd (L.split '-' (xs !! 0)))
(sequence $ map bsd (L.split ',' (xs !! 1)))
(sequence $ map bsd (L.split ',' (xs !! 2)))
check4 xs = maybe2 (check3 xs) (sequence $ map bs2Double1 (L.split ',' (xs !! 4)))
--- | 1,629 | false | true | 9 | 13 | 757 | 569 | 277 | 292 | null | null |
ddssff/rdf4h | testsuite/tests/W3C/RdfXmlTest.hs | bsd-3-clause | nodeURI :: Node -> String
nodeURI = \(UNode u) -> T.unpack u | 60 | nodeURI :: Node -> String
nodeURI = \(UNode u) -> T.unpack u | 60 | nodeURI = \(UNode u) -> T.unpack u | 34 | false | true | 0 | 7 | 11 | 37 | 17 | 20 | null | null |
5HT/n2o.hs | src/Network/N2O.hs | isc | call fun arg = T.concat [fun, "('", arg, "');"] | 48 | call fun arg = T.concat [fun, "('", arg, "');"] | 48 | call fun arg = T.concat [fun, "('", arg, "');"] | 48 | false | false | 0 | 6 | 9 | 29 | 15 | 14 | null | null |
snoyberg/ghc | compiler/utils/Maybes.hs | bsd-3-clause | whenIsJust :: Monad m => Maybe a -> (a -> m ()) -> m ()
whenIsJust (Just x) f = f x | 83 | whenIsJust :: Monad m => Maybe a -> (a -> m ()) -> m ()
whenIsJust (Just x) f = f x | 83 | whenIsJust (Just x) f = f x | 27 | false | true | 0 | 11 | 21 | 60 | 28 | 32 | null | null |
DanielSchuessler/hstri | Triangulation/Tests.hs | gpl-3.0 | prop_VerticesOfEdge_welldefined :: Triangulation -> Property
prop_VerticesOfEdge_welldefined tr =
polyprop_respects (iEdgeEqv tr) trivialEquivalence
(elements (tIEdges tr))
(sort2 . tVerticesOfIEdge tr) | 222 | prop_VerticesOfEdge_welldefined :: Triangulation -> Property
prop_VerticesOfEdge_welldefined tr =
polyprop_respects (iEdgeEqv tr) trivialEquivalence
(elements (tIEdges tr))
(sort2 . tVerticesOfIEdge tr) | 222 | prop_VerticesOfEdge_welldefined tr =
polyprop_respects (iEdgeEqv tr) trivialEquivalence
(elements (tIEdges tr))
(sort2 . tVerticesOfIEdge tr) | 161 | false | true | 0 | 8 | 38 | 64 | 28 | 36 | null | null |
TomMD/cryptol | src/Cryptol/Parser/Position.hs | bsd-3-clause | -- | An empty range.
--
-- Caution: using this on the LHS of a use of rComb will cause the empty source
-- to propegate.
emptyRange :: Range
emptyRange = Range { from = start, to = start, source = "" } | 202 | emptyRange :: Range
emptyRange = Range { from = start, to = start, source = "" } | 81 | emptyRange = Range { from = start, to = start, source = "" } | 61 | true | true | 0 | 6 | 43 | 35 | 23 | 12 | null | null |
randen/cabal | Cabal/Distribution/Simple/HaskellSuite.hs | bsd-3-clause | getInstalledPackages :: Verbosity -> PackageDBStack -> ProgramConfiguration
-> IO InstalledPackageIndex
getInstalledPackages verbosity packagedbs conf =
liftM (PackageIndex.fromList . concat) $ forM packagedbs $ \packagedb ->
do str <-
getDbProgramOutput verbosity haskellSuitePkgProgram conf
["dump", packageDbOpt packagedb]
`catchExit` \_ -> die $ "pkg dump failed"
case parsePackages str of
Right ok -> return ok
_ -> die "failed to parse output of 'pkg dump'"
where
parsePackages str =
let parsed = map parseInstalledPackageInfo (splitPkgs str)
in case [ msg | ParseFailed msg <- parsed ] of
[] -> Right [ pkg | ParseOk _ pkg <- parsed ]
msgs -> Left msgs
splitPkgs :: String -> [String]
splitPkgs = map unlines . splitWith ("---" ==) . lines
where
splitWith :: (a -> Bool) -> [a] -> [[a]]
splitWith p xs = ys : case zs of
[] -> []
_:ws -> splitWith p ws
where (ys,zs) = break p xs | 1,119 | getInstalledPackages :: Verbosity -> PackageDBStack -> ProgramConfiguration
-> IO InstalledPackageIndex
getInstalledPackages verbosity packagedbs conf =
liftM (PackageIndex.fromList . concat) $ forM packagedbs $ \packagedb ->
do str <-
getDbProgramOutput verbosity haskellSuitePkgProgram conf
["dump", packageDbOpt packagedb]
`catchExit` \_ -> die $ "pkg dump failed"
case parsePackages str of
Right ok -> return ok
_ -> die "failed to parse output of 'pkg dump'"
where
parsePackages str =
let parsed = map parseInstalledPackageInfo (splitPkgs str)
in case [ msg | ParseFailed msg <- parsed ] of
[] -> Right [ pkg | ParseOk _ pkg <- parsed ]
msgs -> Left msgs
splitPkgs :: String -> [String]
splitPkgs = map unlines . splitWith ("---" ==) . lines
where
splitWith :: (a -> Bool) -> [a] -> [[a]]
splitWith p xs = ys : case zs of
[] -> []
_:ws -> splitWith p ws
where (ys,zs) = break p xs | 1,119 | getInstalledPackages verbosity packagedbs conf =
liftM (PackageIndex.fromList . concat) $ forM packagedbs $ \packagedb ->
do str <-
getDbProgramOutput verbosity haskellSuitePkgProgram conf
["dump", packageDbOpt packagedb]
`catchExit` \_ -> die $ "pkg dump failed"
case parsePackages str of
Right ok -> return ok
_ -> die "failed to parse output of 'pkg dump'"
where
parsePackages str =
let parsed = map parseInstalledPackageInfo (splitPkgs str)
in case [ msg | ParseFailed msg <- parsed ] of
[] -> Right [ pkg | ParseOk _ pkg <- parsed ]
msgs -> Left msgs
splitPkgs :: String -> [String]
splitPkgs = map unlines . splitWith ("---" ==) . lines
where
splitWith :: (a -> Bool) -> [a] -> [[a]]
splitWith p xs = ys : case zs of
[] -> []
_:ws -> splitWith p ws
where (ys,zs) = break p xs | 994 | false | true | 3 | 14 | 381 | 348 | 173 | 175 | null | null |
danr/hipspec | src/HipSpec/Lang/LintRich.hs | gpl-3.0 | insertLcl :: Ord v => (v,Type v) -> LintM v a -> LintM v a
insertLcl (v,t) m = do
mt <- asks (M.lookup v . lcls)
case mt of
Just t' -> report (msgAlreadyBound v t t') >> m
Nothing -> local (withLcls (M.insert v t)) m | 240 | insertLcl :: Ord v => (v,Type v) -> LintM v a -> LintM v a
insertLcl (v,t) m = do
mt <- asks (M.lookup v . lcls)
case mt of
Just t' -> report (msgAlreadyBound v t t') >> m
Nothing -> local (withLcls (M.insert v t)) m | 240 | insertLcl (v,t) m = do
mt <- asks (M.lookup v . lcls)
case mt of
Just t' -> report (msgAlreadyBound v t t') >> m
Nothing -> local (withLcls (M.insert v t)) m | 181 | false | true | 0 | 16 | 71 | 143 | 67 | 76 | null | null |
tylerwx51/StartStopFRP | main.hs | bsd-3-clause | main :: IO ()
main = runGlossHoldIO (InWindow "Examples" (500, 500) (10, 10)) white 60 $ \tick ev -> sampleB $ do
bTime <- foldEs (+) 0 tick
let clock = changes bTime
(Screen bm buttonPress) <- mainMenu clock ev
rec
let stream = switch $ sampleR active
active <- holdEs buttonPress (fmap bChange stream)
switcher bm $ fmap bPic stream | 409 | main :: IO ()
main = runGlossHoldIO (InWindow "Examples" (500, 500) (10, 10)) white 60 $ \tick ev -> sampleB $ do
bTime <- foldEs (+) 0 tick
let clock = changes bTime
(Screen bm buttonPress) <- mainMenu clock ev
rec
let stream = switch $ sampleR active
active <- holdEs buttonPress (fmap bChange stream)
switcher bm $ fmap bPic stream | 409 | main = runGlossHoldIO (InWindow "Examples" (500, 500) (10, 10)) white 60 $ \tick ev -> sampleB $ do
bTime <- foldEs (+) 0 tick
let clock = changes bTime
(Screen bm buttonPress) <- mainMenu clock ev
rec
let stream = switch $ sampleR active
active <- holdEs buttonPress (fmap bChange stream)
switcher bm $ fmap bPic stream | 395 | false | true | 0 | 16 | 135 | 162 | 77 | 85 | null | null |
ghcjs/jsaddle-dom | src/JSDOM/Generated/CSSSupportsRule.hs | mit | -- | <https://developer.mozilla.org/en-US/docs/Web/API/CSSSupportsRule.insertRule Mozilla CSSSupportsRule.insertRule documentation>
insertRule_ ::
(MonadDOM m, ToJSString rule) =>
CSSSupportsRule -> rule -> Word -> m ()
insertRule_ self rule index
= liftDOM
(void (self ^. jsf "insertRule" [toJSVal rule, toJSVal index])) | 356 | insertRule_ ::
(MonadDOM m, ToJSString rule) =>
CSSSupportsRule -> rule -> Word -> m ()
insertRule_ self rule index
= liftDOM
(void (self ^. jsf "insertRule" [toJSVal rule, toJSVal index])) | 223 | insertRule_ self rule index
= liftDOM
(void (self ^. jsf "insertRule" [toJSVal rule, toJSVal index])) | 109 | true | true | 0 | 12 | 70 | 89 | 43 | 46 | null | null |
tjakway/ghcjvm | compiler/cmm/CLabel.hs | bsd-3-clause | needsCDecl (HpcTicksLabel _) = True | 46 | needsCDecl (HpcTicksLabel _) = True | 46 | needsCDecl (HpcTicksLabel _) = True | 46 | false | false | 0 | 7 | 15 | 15 | 7 | 8 | null | null |
verement/etamoo | src/MOO/Database/LambdaMOO.hs | bsd-3-clause | -- type_numeric = -2
dbv_prehistory = 0 | 41 | dbv_prehistory = 0 | 19 | dbv_prehistory = 0 | 19 | true | false | 0 | 4 | 8 | 7 | 4 | 3 | null | null |
phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/Tokens.hs | bsd-3-clause | gl_DUAL_ALPHA4_SGIS :: GLenum
gl_DUAL_ALPHA4_SGIS = 0x8110 | 58 | gl_DUAL_ALPHA4_SGIS :: GLenum
gl_DUAL_ALPHA4_SGIS = 0x8110 | 58 | gl_DUAL_ALPHA4_SGIS = 0x8110 | 28 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
SuperDrew/sql-server-gen | src/Database/SqlServer/Definition/DataType.hs | bsd-2-clause | value Text {} = Nothing | 23 | value Text {} = Nothing | 23 | value Text {} = Nothing | 23 | false | false | 1 | 5 | 4 | 15 | 6 | 9 | null | null |
GaloisInc/ivory-tower-stm32 | ivory-bsp-stm32/src/Ivory/BSP/STM32F405/GPIO/Ports.hs | bsd-3-clause | gpioC :: GPIOPort
gpioC = mkGPIOPort gpioc_periph_base
(rccEnable rcc_ahb1en_gpioc)
(rccDisable rcc_ahb1en_gpioc)
2 | 145 | gpioC :: GPIOPort
gpioC = mkGPIOPort gpioc_periph_base
(rccEnable rcc_ahb1en_gpioc)
(rccDisable rcc_ahb1en_gpioc)
2 | 145 | gpioC = mkGPIOPort gpioc_periph_base
(rccEnable rcc_ahb1en_gpioc)
(rccDisable rcc_ahb1en_gpioc)
2 | 127 | false | true | 0 | 6 | 41 | 42 | 17 | 25 | null | null |
dmbarbour/awelon | hsrc/ABC/Imperative/Interpreter.hs | bsd-3-clause | op Op_V = sV
| 13 | iop Op_V = sV | 13 | iop Op_V = sV | 13 | false | false | 1 | 4 | 4 | 12 | 4 | 8 | null | null |
GaloisInc/saw-script | saw-core/src/Verifier/SAW/Module.hs | bsd-3-clause | -- | Get all constructors in all modules in a module map
allModuleCtors :: ModuleMap -> [Ctor]
allModuleCtors modmap = concatMap moduleCtors (HMap.elems modmap) | 160 | allModuleCtors :: ModuleMap -> [Ctor]
allModuleCtors modmap = concatMap moduleCtors (HMap.elems modmap) | 103 | allModuleCtors modmap = concatMap moduleCtors (HMap.elems modmap) | 65 | true | true | 0 | 8 | 23 | 40 | 19 | 21 | null | null |
capitanbatata/functional-systems-in-haskell | fsh-exercises/src/Iteratee.hs | mit | countLinesIM :: FilePath -> IO Int
countLinesIM fp = enumerateFile fp countLinesIterM >>= getResult0 | 100 | countLinesIM :: FilePath -> IO Int
countLinesIM fp = enumerateFile fp countLinesIterM >>= getResult0 | 100 | countLinesIM fp = enumerateFile fp countLinesIterM >>= getResult0 | 65 | false | true | 0 | 6 | 13 | 30 | 14 | 16 | null | null |
ghc-android/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | breakpointCondName= varQual gHC_BASE (fsLit "breakpointCond") breakpointCondIdKey | 81 | breakpointCondName= varQual gHC_BASE (fsLit "breakpointCond") breakpointCondIdKey | 81 | breakpointCondName= varQual gHC_BASE (fsLit "breakpointCond") breakpointCondIdKey | 81 | false | false | 0 | 7 | 5 | 19 | 9 | 10 | null | null |
frantisekfarka/ghc-dsi | utils/hpc/HpcShowTix.hs | bsd-3-clause | showtix_main :: Flags -> [String] -> IO ()
showtix_main _ [] = hpcError showtix_plugin $ "no .tix file or executable name specified" | 136 | showtix_main :: Flags -> [String] -> IO ()
showtix_main _ [] = hpcError showtix_plugin $ "no .tix file or executable name specified" | 136 | showtix_main _ [] = hpcError showtix_plugin $ "no .tix file or executable name specified" | 93 | false | true | 0 | 8 | 25 | 41 | 20 | 21 | null | null |
ghcjs/jsaddle-dom | src/JSDOM/Generated/Enums.hs | mit | js_NotificationDirectionRtl = "rtl" | 35 | js_NotificationDirectionRtl = "rtl" | 35 | js_NotificationDirectionRtl = "rtl" | 35 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
haskell-distributed/distributed-process-task | tests/TestPool.hs | bsd-3-clause | destroyShouldDeleteResourceOnClientDeath :: Process ()
destroyShouldDeleteResourceOnClientDeath =
clientDeathTriggersPolicyApplication Destroy checkWorker checkStats
where
checkWorker client' hW2 = do
Just pw2 <- resolve hW2
mW2 <- monitor pw2
-- kiss the client goodbye, then ensure the resource is released
mRef' <- monitor client'
kill client' "fubu"
void $ waitForDown mRef'
void $ waitForDown mW2
return (const $ return ())
checkStats ps = do
(activeResources ps) `shouldBe` equalTo 0
(inactiveResources ps) `shouldBe` equalTo 1
(activeClients ps) `shouldBe` equalTo 0 | 661 | destroyShouldDeleteResourceOnClientDeath :: Process ()
destroyShouldDeleteResourceOnClientDeath =
clientDeathTriggersPolicyApplication Destroy checkWorker checkStats
where
checkWorker client' hW2 = do
Just pw2 <- resolve hW2
mW2 <- monitor pw2
-- kiss the client goodbye, then ensure the resource is released
mRef' <- monitor client'
kill client' "fubu"
void $ waitForDown mRef'
void $ waitForDown mW2
return (const $ return ())
checkStats ps = do
(activeResources ps) `shouldBe` equalTo 0
(inactiveResources ps) `shouldBe` equalTo 1
(activeClients ps) `shouldBe` equalTo 0 | 661 | destroyShouldDeleteResourceOnClientDeath =
clientDeathTriggersPolicyApplication Destroy checkWorker checkStats
where
checkWorker client' hW2 = do
Just pw2 <- resolve hW2
mW2 <- monitor pw2
-- kiss the client goodbye, then ensure the resource is released
mRef' <- monitor client'
kill client' "fubu"
void $ waitForDown mRef'
void $ waitForDown mW2
return (const $ return ())
checkStats ps = do
(activeResources ps) `shouldBe` equalTo 0
(inactiveResources ps) `shouldBe` equalTo 1
(activeClients ps) `shouldBe` equalTo 0 | 606 | false | true | 1 | 12 | 162 | 178 | 81 | 97 | null | null |
zerobuzz/servant | servant-server/example/greet.hs | bsd-3-clause | -- Run the server.
--
-- 'run' comes from Network.Wai.Handler.Warp
runTestServer :: Port -> IO ()
runTestServer port = run port test | 132 | runTestServer :: Port -> IO ()
runTestServer port = run port test | 65 | runTestServer port = run port test | 34 | true | true | 0 | 7 | 21 | 31 | 16 | 15 | null | null |
AlexanderPankiv/ghc | compiler/basicTypes/Id.hs | bsd-3-clause | setIdExported :: Id -> Id
setIdExported = Var.setIdExported | 59 | setIdExported :: Id -> Id
setIdExported = Var.setIdExported | 59 | setIdExported = Var.setIdExported | 33 | false | true | 0 | 5 | 7 | 17 | 9 | 8 | null | null |
phylake/avm3 | vm/store.hs | mit | xform_opCode {- 0x31 -} i u d s m t (Abc.PushNamespace u30) = [PushNamespace u30] | 81 | xform_opCode {- 0x31 -} i u d s m t (Abc.PushNamespace u30) = [PushNamespace u30] | 81 | xform_opCode {- 0x31 -} i u d s m t (Abc.PushNamespace u30) = [PushNamespace u30] | 81 | false | false | 0 | 8 | 14 | 36 | 18 | 18 | null | null |
haroldcarr/learn-haskell-coq-ml-etc | haskell/book/2014-Alejandro_Serrano_Mena-Beginning_Haskell/old/code/src/C04.hs | unlicense | cached Leaf3 = mempty | 31 | cached Leaf3 = mempty | 31 | cached Leaf3 = mempty | 31 | false | false | 1 | 5 | 13 | 13 | 4 | 9 | null | null |
ocharles/hackage-server | Distribution/Server/Features/Search/DocIdSet.hs | bsd-3-clause | insert :: DocId -> DocIdSet -> DocIdSet
insert x (DocIdSet vec) =
case binarySearch vec 0 (VU.length vec - 1) x of
(_, True) -> DocIdSet vec
(i, False) -> case VU.splitAt i vec of
(before, after) ->
DocIdSet (VU.concat [before, VU.singleton x, after]) | 314 | insert :: DocId -> DocIdSet -> DocIdSet
insert x (DocIdSet vec) =
case binarySearch vec 0 (VU.length vec - 1) x of
(_, True) -> DocIdSet vec
(i, False) -> case VU.splitAt i vec of
(before, after) ->
DocIdSet (VU.concat [before, VU.singleton x, after]) | 314 | insert x (DocIdSet vec) =
case binarySearch vec 0 (VU.length vec - 1) x of
(_, True) -> DocIdSet vec
(i, False) -> case VU.splitAt i vec of
(before, after) ->
DocIdSet (VU.concat [before, VU.singleton x, after]) | 274 | false | true | 0 | 16 | 106 | 135 | 68 | 67 | null | null |
scott-fleischman/greek-grammar | haskell/greek-grammar/src/Text/Greek/Script/Punctuation.hs | mit | endOfSentenceMarks :: Set.Set Char
endOfSentenceMarks = Set.fromList [greekQuestionMark, period] | 96 | endOfSentenceMarks :: Set.Set Char
endOfSentenceMarks = Set.fromList [greekQuestionMark, period] | 96 | endOfSentenceMarks = Set.fromList [greekQuestionMark, period] | 61 | false | true | 0 | 6 | 8 | 27 | 14 | 13 | null | null |
TorosFanny/kaleidoscope | src/chapter7/Codegen.hs | mit | load :: Operand -> Codegen Operand
load ptr = instr $ Load False ptr Nothing 0 [] | 81 | load :: Operand -> Codegen Operand
load ptr = instr $ Load False ptr Nothing 0 [] | 81 | load ptr = instr $ Load False ptr Nothing 0 [] | 46 | false | true | 2 | 7 | 16 | 43 | 19 | 24 | null | null |
haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F17.hs | bsd-3-clause | -- glMultiTexCoord2hNV ---------------------------------------------------------
-- | The vector equivalent of this command is 'glMultiTexCoord2hvNV'.
glMultiTexCoord2hNV
:: MonadIO m
=> GLenum -- ^ @target@ of type [TextureUnit](Graphics-GL-Groups.html#TextureUnit).
-> GLhalfNV -- ^ @s@ of type @Half16NV@.
-> GLhalfNV -- ^ @t@ of type @Half16NV@.
-> m ()
glMultiTexCoord2hNV v1 v2 v3 = liftIO $ dyn577 ptr_glMultiTexCoord2hNV v1 v2 v3 | 448 | glMultiTexCoord2hNV
:: MonadIO m
=> GLenum -- ^ @target@ of type [TextureUnit](Graphics-GL-Groups.html#TextureUnit).
-> GLhalfNV -- ^ @s@ of type @Half16NV@.
-> GLhalfNV -- ^ @t@ of type @Half16NV@.
-> m ()
glMultiTexCoord2hNV v1 v2 v3 = liftIO $ dyn577 ptr_glMultiTexCoord2hNV v1 v2 v3 | 296 | glMultiTexCoord2hNV v1 v2 v3 = liftIO $ dyn577 ptr_glMultiTexCoord2hNV v1 v2 v3 | 79 | true | true | 0 | 11 | 66 | 64 | 32 | 32 | null | null |
geocurnoff/nikki | src/Base/Paths/GetDataFileName.hs | lgpl-3.0 | getDataFileName :: FilePath -> RM FilePath
getDataFileName = io . Paths_nikki.getDataFileName | 93 | getDataFileName :: FilePath -> RM FilePath
getDataFileName = io . Paths_nikki.getDataFileName | 93 | getDataFileName = io . Paths_nikki.getDataFileName | 50 | false | true | 0 | 6 | 10 | 24 | 12 | 12 | null | null |
corajr/cataskell | src/Cataskell/Game.hs | bsd-3-clause | payFor :: (RandomGen g) => PlayerIndex -> Item -> GameState g
payFor playerIndex' item' = addToResources playerIndex' (mkNeg $ cost item') | 138 | payFor :: (RandomGen g) => PlayerIndex -> Item -> GameState g
payFor playerIndex' item' = addToResources playerIndex' (mkNeg $ cost item') | 138 | payFor playerIndex' item' = addToResources playerIndex' (mkNeg $ cost item') | 76 | false | true | 0 | 8 | 20 | 51 | 25 | 26 | null | null |
diku-dk/futhark | src/Futhark/Internalise/Defunctorise.hs | isc | transformExp :: Exp -> TransformM Exp
transformExp = transformNames | 67 | transformExp :: Exp -> TransformM Exp
transformExp = transformNames | 67 | transformExp = transformNames | 29 | false | true | 0 | 6 | 8 | 18 | 9 | 9 | null | null |
Alasdair/Mella | Lang/TypeChecker/Meta.hs | bsd-3-clause | metaMetaRule :: (Functor m, Monad m) => TCRule m
metaMetaRule = TCR "Meta-Meta" metaMeta | 88 | metaMetaRule :: (Functor m, Monad m) => TCRule m
metaMetaRule = TCR "Meta-Meta" metaMeta | 88 | metaMetaRule = TCR "Meta-Meta" metaMeta | 39 | false | true | 0 | 7 | 13 | 39 | 18 | 21 | null | null |
jwaldmann/rx | src/Set.hs | gpl-3.0 | intersectManySets = foldr1 Data.Set.intersection | 48 | intersectManySets = foldr1 Data.Set.intersection | 48 | intersectManySets = foldr1 Data.Set.intersection | 48 | false | false | 1 | 6 | 3 | 15 | 6 | 9 | null | null |
forked-upstream-packages-for-ghcjs/ghc | compiler/utils/Outputable.hs | bsd-3-clause | underscore = char '_' | 21 | underscore = char '_' | 21 | underscore = char '_' | 21 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
jstolarek/lattice-structure-hs | tests/Signal/Wavelet/Eval2Test.hs | bsd-3-clause | propDWTInvertible :: DwtInputList -> Bool
propDWTInvertible (DwtInputList (ls, sig)) =
idwt (inv ls) (dwt ls sig) =~ sig | 124 | propDWTInvertible :: DwtInputList -> Bool
propDWTInvertible (DwtInputList (ls, sig)) =
idwt (inv ls) (dwt ls sig) =~ sig | 124 | propDWTInvertible (DwtInputList (ls, sig)) =
idwt (inv ls) (dwt ls sig) =~ sig | 82 | false | true | 0 | 8 | 21 | 53 | 27 | 26 | null | null |
phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/Tokens.hs | bsd-3-clause | gl_SPRITE_AXIS_SGIX :: GLenum
gl_SPRITE_AXIS_SGIX = 0x814A | 58 | gl_SPRITE_AXIS_SGIX :: GLenum
gl_SPRITE_AXIS_SGIX = 0x814A | 58 | gl_SPRITE_AXIS_SGIX = 0x814A | 28 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
tomlokhorst/wol | src/WoL.hs | bsd-3-clause | main :: IO ()
main = do
args <- getArgs
if length args < 2
then putStrLn header
else do
let host = args !! 0
addr = args !! 1
port = if length args >= 3
then read (args !! 2)
else 9
sendWoLMagicPacket host addr port
where
header = "Usage: wol hostname macaddress [portnumber]" | 370 | main :: IO ()
main = do
args <- getArgs
if length args < 2
then putStrLn header
else do
let host = args !! 0
addr = args !! 1
port = if length args >= 3
then read (args !! 2)
else 9
sendWoLMagicPacket host addr port
where
header = "Usage: wol hostname macaddress [portnumber]" | 370 | main = do
args <- getArgs
if length args < 2
then putStrLn header
else do
let host = args !! 0
addr = args !! 1
port = if length args >= 3
then read (args !! 2)
else 9
sendWoLMagicPacket host addr port
where
header = "Usage: wol hostname macaddress [portnumber]" | 356 | false | true | 1 | 16 | 150 | 123 | 57 | 66 | null | null |
Noeda/Megaman | src/NetHack/Data/Level.hs | mit | featureByStr "doorway" = Just Floor | 35 | featureByStr "doorway" = Just Floor | 35 | featureByStr "doorway" = Just Floor | 35 | false | false | 0 | 5 | 4 | 12 | 5 | 7 | null | null |
elben/typing-haskell-in-haskell | TypingHaskellInHaskell.hs | bsd-3-clause | nullSubst :: Subst
nullSubst = [] | 37 | nullSubst :: Subst
nullSubst = [] | 36 | nullSubst = [] | 16 | false | true | 0 | 6 | 9 | 20 | 8 | 12 | null | null |
ssoudan/hsChess | src/TUI.hs | apache-2.0 | playForNTurns n options state = do
s <- playATurn options state
playForNTurns (n-1) options s
-- | Banner display function | 191 | playForNTurns n options state = do
s <- playATurn options state
playForNTurns (n-1) options s
-- | Banner display function | 191 | playForNTurns n options state = do
s <- playATurn options state
playForNTurns (n-1) options s
-- | Banner display function | 191 | false | false | 0 | 9 | 88 | 44 | 20 | 24 | null | null |
keithodulaigh/Hets | CspCASL/CspCASL_Keywords.hs | gpl-2.0 | -- | "CHAOS" primitive process
chaosS :: String
chaosS = "CHAOS" | 64 | chaosS :: String
chaosS = "CHAOS" | 33 | chaosS = "CHAOS" | 16 | true | true | 0 | 4 | 10 | 12 | 7 | 5 | null | null |
vTurbine/ghc | compiler/iface/IfaceType.hs | bsd-3-clause | toIfaceTvBndrs :: [TyVar] -> [IfaceTvBndr]
toIfaceTvBndrs = map toIfaceTvBndr | 77 | toIfaceTvBndrs :: [TyVar] -> [IfaceTvBndr]
toIfaceTvBndrs = map toIfaceTvBndr | 77 | toIfaceTvBndrs = map toIfaceTvBndr | 34 | false | true | 0 | 6 | 8 | 24 | 13 | 11 | null | null |
cnc-patch/cncmix | Codec/Archive/CnCMix/TiberianDawn.hs | gpl-3.0 | fileListToMix :: [(ID, File)] -> Mix
fileListToMix fs = Mix topH entryHs $ L.concat $ map (\(_,(File _ b)) -> b) fs
where (topH, entryHs) = mapAccumL headerbuilder (TopHeader 0 0) fs
headerbuilder :: TopHeader -> (ID, File) -> (TopHeader, EntryHeader)
headerbuilder (TopHeader count offset) (i, (File n c)) =
(TopHeader (count+1) $ offset+len , (EntryHeader (mkID i n) offset len))
where len :: Int32
len = fromIntegral $ L.length c -- length of current file | 512 | fileListToMix :: [(ID, File)] -> Mix
fileListToMix fs = Mix topH entryHs $ L.concat $ map (\(_,(File _ b)) -> b) fs
where (topH, entryHs) = mapAccumL headerbuilder (TopHeader 0 0) fs
headerbuilder :: TopHeader -> (ID, File) -> (TopHeader, EntryHeader)
headerbuilder (TopHeader count offset) (i, (File n c)) =
(TopHeader (count+1) $ offset+len , (EntryHeader (mkID i n) offset len))
where len :: Int32
len = fromIntegral $ L.length c -- length of current file | 512 | fileListToMix fs = Mix topH entryHs $ L.concat $ map (\(_,(File _ b)) -> b) fs
where (topH, entryHs) = mapAccumL headerbuilder (TopHeader 0 0) fs
headerbuilder :: TopHeader -> (ID, File) -> (TopHeader, EntryHeader)
headerbuilder (TopHeader count offset) (i, (File n c)) =
(TopHeader (count+1) $ offset+len , (EntryHeader (mkID i n) offset len))
where len :: Int32
len = fromIntegral $ L.length c -- length of current file | 475 | false | true | 1 | 11 | 129 | 220 | 118 | 102 | null | null |
jsavatgy/hatupist | code/settingsDialog.hs | gpl-2.0 | rInitModel = replicate 3 zeroResult | 35 | rInitModel = replicate 3 zeroResult | 35 | rInitModel = replicate 3 zeroResult | 35 | false | false | 1 | 5 | 4 | 16 | 5 | 11 | null | null |
bos/vectro | tests/Properties.hs | bsd-2-clause | v_snoc_sane a = V.isSane . (`V.snoc` a) . vints | 47 | v_snoc_sane a = V.isSane . (`V.snoc` a) . vints | 47 | v_snoc_sane a = V.isSane . (`V.snoc` a) . vints | 47 | false | false | 0 | 7 | 8 | 27 | 15 | 12 | null | null |
alexander-at-github/eta | compiler/ETA/TypeCheck/TcRnTypes.hs | bsd-3-clause | pprSkolInfo (UnifyForAllSkol tvs ty) = ptext (sLit "the type") <+> ppr (mkForAllTys tvs ty) | 91 | pprSkolInfo (UnifyForAllSkol tvs ty) = ptext (sLit "the type") <+> ppr (mkForAllTys tvs ty) | 91 | pprSkolInfo (UnifyForAllSkol tvs ty) = ptext (sLit "the type") <+> ppr (mkForAllTys tvs ty) | 91 | false | false | 0 | 8 | 13 | 41 | 19 | 22 | null | null |
haskell-suite/haskell-packages | src/Distribution/HaskellSuite/Compiler.hs | mit | simple
:: String -- ^ compiler name
-> Version -- ^ compiler version
-> [Language]
-> [Extension]
-> CompileFn
-> [String] -- ^ extensions that generated file have
-> Simple db
simple = Simple | 206 | simple
:: String -- ^ compiler name
-> Version -- ^ compiler version
-> [Language]
-> [Extension]
-> CompileFn
-> [String] -- ^ extensions that generated file have
-> Simple db
simple = Simple | 206 | simple = Simple | 15 | false | true | 0 | 12 | 47 | 56 | 29 | 27 | null | null |
Ian-Stewart-Binks/courseography | dependencies/HaXml-1.25.3/src/Text/XML/HaXml/Html/Parse.hs | gpl-3.0 | posn :: HParser Posn
posn = do { x@(p,_) <- next
; reparse [x]
; return p
} `onFail` return noPos | 127 | posn :: HParser Posn
posn = do { x@(p,_) <- next
; reparse [x]
; return p
} `onFail` return noPos | 127 | posn = do { x@(p,_) <- next
; reparse [x]
; return p
} `onFail` return noPos | 106 | false | true | 0 | 10 | 50 | 58 | 31 | 27 | null | null |
JacquesCarette/literate-scientific-software | code/drasil-printers/Language/Drasil/TeX/Print.hs | bsd-2-clause | pOps NEq = commandD "neq" empty | 36 | pOps NEq = commandD "neq" empty | 36 | pOps NEq = commandD "neq" empty | 36 | false | false | 1 | 5 | 10 | 17 | 6 | 11 | null | null |
jthornber/rxgen | Main.hs | gpl-3.0 | simplify' (Plus (Plus r)) = Plus (simplify' r) | 48 | simplify' (Plus (Plus r)) = Plus (simplify' r) | 48 | simplify' (Plus (Plus r)) = Plus (simplify' r) | 48 | false | false | 0 | 8 | 9 | 31 | 14 | 17 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.