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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
phischu/fragnix
|
builtins/ghc-prim/GHC.Prim.hs
|
bsd-3-clause
|
-- | Reads vector; offset in scalar elements.
indexInt64OffAddrAsInt64X8# :: Addr# -> Int# -> Int64X8#
indexInt64OffAddrAsInt64X8# = indexInt64OffAddrAsInt64X8#
| 162
|
indexInt64OffAddrAsInt64X8# :: Addr# -> Int# -> Int64X8#
indexInt64OffAddrAsInt64X8# = indexInt64OffAddrAsInt64X8#
| 114
|
indexInt64OffAddrAsInt64X8# = indexInt64OffAddrAsInt64X8#
| 57
| true
| true
| 0
| 6
| 19
| 20
| 11
| 9
| null | null |
mrakgr/futhark
|
src/Futhark/Pass/ExtractKernels/Distribution.hs
|
bsd-3-clause
|
boundInKernelNests :: KernelNest -> [Names]
boundInKernelNests = map (HS.fromList .
map (paramName . fst) .
loopNestingParamsAndArrs) .
kernelNestLoops
| 224
|
boundInKernelNests :: KernelNest -> [Names]
boundInKernelNests = map (HS.fromList .
map (paramName . fst) .
loopNestingParamsAndArrs) .
kernelNestLoops
| 224
|
boundInKernelNests = map (HS.fromList .
map (paramName . fst) .
loopNestingParamsAndArrs) .
kernelNestLoops
| 180
| false
| true
| 0
| 12
| 90
| 48
| 25
| 23
| null | null |
oldmanmike/ghc
|
libraries/base/System/Posix/Internals.hs
|
bsd-3-clause
|
s_ischr :: CMode -> Bool
s_ischr cm = c_s_ischr cm /= 0
| 56
|
s_ischr :: CMode -> Bool
s_ischr cm = c_s_ischr cm /= 0
| 56
|
s_ischr cm = c_s_ischr cm /= 0
| 30
| false
| true
| 0
| 6
| 12
| 25
| 12
| 13
| null | null |
CulpaBS/wbBach
|
src/Futhark/Representation/AST/Attributes/Types.hs
|
bsd-3-clause
|
-- | A type is a primitive type if it is not an array or memory block.
primType :: TypeBase shape u -> Bool
primType Array{} = False
| 132
|
primType :: TypeBase shape u -> Bool
primType Array{} = False
| 61
|
primType Array{} = False
| 24
| true
| true
| 1
| 6
| 27
| 34
| 15
| 19
| null | null |
eigengrau/stylish-haskell
|
src/Language/Haskell/Stylish/Step/Imports.hs
|
bsd-3-clause
|
prettyImportGroup :: Int -> Align -> Bool -> Int -> [H.ImportDecl LineBlock]
-> Lines
prettyImportGroup columns align fileAlign longest imps =
concatMap (prettyImport columns padQual padName longest') $
sortBy compareImports imps
where
longest' = case align of
Group -> longestImport imps
_ -> longest
padName = align /= None
padQual = case align of
Global -> True
File -> fileAlign
Group -> any H.importQualified imps
None -> False
--------------------------------------------------------------------------------
| 614
|
prettyImportGroup :: Int -> Align -> Bool -> Int -> [H.ImportDecl LineBlock]
-> Lines
prettyImportGroup columns align fileAlign longest imps =
concatMap (prettyImport columns padQual padName longest') $
sortBy compareImports imps
where
longest' = case align of
Group -> longestImport imps
_ -> longest
padName = align /= None
padQual = case align of
Global -> True
File -> fileAlign
Group -> any H.importQualified imps
None -> False
--------------------------------------------------------------------------------
| 614
|
prettyImportGroup columns align fileAlign longest imps =
concatMap (prettyImport columns padQual padName longest') $
sortBy compareImports imps
where
longest' = case align of
Group -> longestImport imps
_ -> longest
padName = align /= None
padQual = case align of
Global -> True
File -> fileAlign
Group -> any H.importQualified imps
None -> False
--------------------------------------------------------------------------------
| 510
| false
| true
| 6
| 12
| 169
| 158
| 75
| 83
| null | null |
ezyang/ghc
|
compiler/simplCore/SimplUtils.hs
|
bsd-3-clause
|
contIsDupable _ = False
| 55
|
contIsDupable _ = False
| 55
|
contIsDupable _ = False
| 55
| false
| false
| 0
| 5
| 35
| 9
| 4
| 5
| null | null |
romanb/amazonka
|
amazonka-opsworks/gen/Network/AWS/OpsWorks/Types.hs
|
mpl-2.0
|
-- | The layer ID.
lLayerId :: Lens' Layer (Maybe Text)
lLayerId = lens _lLayerId (\s a -> s { _lLayerId = a })
| 111
|
lLayerId :: Lens' Layer (Maybe Text)
lLayerId = lens _lLayerId (\s a -> s { _lLayerId = a })
| 92
|
lLayerId = lens _lLayerId (\s a -> s { _lLayerId = a })
| 55
| true
| true
| 0
| 9
| 23
| 46
| 25
| 21
| null | null |
mzero/barley
|
seed/Chapter1/Step_1_6.hs
|
apache-2.0
|
-- Playing with lists
fruit :: [String]
fruit = ["apple", "banana", "orange", "plum", "peach", "grape", "fig", "apricot"]
| 122
|
fruit :: [String]
fruit = ["apple", "banana", "orange", "plum", "peach", "grape", "fig", "apricot"]
| 99
|
fruit = ["apple", "banana", "orange", "plum", "peach", "grape", "fig", "apricot"]
| 81
| true
| true
| 0
| 5
| 17
| 39
| 25
| 14
| null | null |
rueshyna/gogol
|
gogol-classroom/gen/Network/Google/Resource/Classroom/Courses/Create.hs
|
mpl-2.0
|
-- | Pretty-print response.
ccPp :: Lens' CoursesCreate Bool
ccPp = lens _ccPp (\ s a -> s{_ccPp = a})
| 102
|
ccPp :: Lens' CoursesCreate Bool
ccPp = lens _ccPp (\ s a -> s{_ccPp = a})
| 74
|
ccPp = lens _ccPp (\ s a -> s{_ccPp = a})
| 41
| true
| true
| 1
| 9
| 19
| 43
| 22
| 21
| null | null |
gnn/Hets
|
TPTP/Pretty.hs
|
gpl-2.0
|
printTH0_quantifier :: TH0_quantifier -> Doc
printTH0_quantifier x = case x of
TH0_LambdaBinder -> text "^"
TH0_IndefiniteDescription -> text "@+"
TH0_DefiniteDescription -> text "@-"
-- <thf_pair_connective> ::= <infix_equality> | <infix_inequality> |
-- <binary_connective> | <assignment>
| 325
|
printTH0_quantifier :: TH0_quantifier -> Doc
printTH0_quantifier x = case x of
TH0_LambdaBinder -> text "^"
TH0_IndefiniteDescription -> text "@+"
TH0_DefiniteDescription -> text "@-"
-- <thf_pair_connective> ::= <infix_equality> | <infix_inequality> |
-- <binary_connective> | <assignment>
| 325
|
printTH0_quantifier x = case x of
TH0_LambdaBinder -> text "^"
TH0_IndefiniteDescription -> text "@+"
TH0_DefiniteDescription -> text "@-"
-- <thf_pair_connective> ::= <infix_equality> | <infix_inequality> |
-- <binary_connective> | <assignment>
| 280
| false
| true
| 3
| 5
| 68
| 53
| 25
| 28
| null | null |
MP2E/XMonadContrib
|
XMonad/Layout/BinarySpacePartition.hs
|
bsd-3-clause
|
goToNthLeaf n z@(t, _) =
if numLeaves (left t) > n
then do z' <- goLeft z
goToNthLeaf n z'
else do z' <- goRight z
goToNthLeaf (n - (numLeaves . left $ t)) z'
| 184
|
goToNthLeaf n z@(t, _) =
if numLeaves (left t) > n
then do z' <- goLeft z
goToNthLeaf n z'
else do z' <- goRight z
goToNthLeaf (n - (numLeaves . left $ t)) z'
| 184
|
goToNthLeaf n z@(t, _) =
if numLeaves (left t) > n
then do z' <- goLeft z
goToNthLeaf n z'
else do z' <- goRight z
goToNthLeaf (n - (numLeaves . left $ t)) z'
| 184
| false
| false
| 0
| 13
| 60
| 96
| 46
| 50
| null | null |
tjakway/ghcjvm
|
compiler/simplCore/OccurAnal.hs
|
bsd-3-clause
|
addIdOccs :: UsageDetails -> VarSet -> UsageDetails
addIdOccs usage id_set = foldVarSet addIdOcc usage id_set
| 109
|
addIdOccs :: UsageDetails -> VarSet -> UsageDetails
addIdOccs usage id_set = foldVarSet addIdOcc usage id_set
| 109
|
addIdOccs usage id_set = foldVarSet addIdOcc usage id_set
| 57
| false
| true
| 0
| 6
| 14
| 31
| 15
| 16
| null | null |
gleachkr/Carnap
|
Carnap/src/Carnap/Languages/PureFirstOrder/Logic/ThomasBolducAndZach.hs
|
gpl-3.0
|
thomasBolducAndZachFOLCalc = mkNDCalc
{ ndRenderer = FitchStyle StandardFitch
, ndParseProof = parseThomasBolducAndZachFOLProof
, ndProcessLine = hoProcessLineFitch
, ndProcessLineMemo = Just hoProcessLineFitchMemo
, ndParseSeq = parseSeqOver thomasBolducAndZachFOLFormulaParser
, ndParseForm = thomasBolducAndZachFOLFormulaParser
, ndNotation = ndNotation P.thomasBolducAndZachTFLCalc
}
| 419
|
thomasBolducAndZachFOLCalc = mkNDCalc
{ ndRenderer = FitchStyle StandardFitch
, ndParseProof = parseThomasBolducAndZachFOLProof
, ndProcessLine = hoProcessLineFitch
, ndProcessLineMemo = Just hoProcessLineFitchMemo
, ndParseSeq = parseSeqOver thomasBolducAndZachFOLFormulaParser
, ndParseForm = thomasBolducAndZachFOLFormulaParser
, ndNotation = ndNotation P.thomasBolducAndZachTFLCalc
}
| 419
|
thomasBolducAndZachFOLCalc = mkNDCalc
{ ndRenderer = FitchStyle StandardFitch
, ndParseProof = parseThomasBolducAndZachFOLProof
, ndProcessLine = hoProcessLineFitch
, ndProcessLineMemo = Just hoProcessLineFitchMemo
, ndParseSeq = parseSeqOver thomasBolducAndZachFOLFormulaParser
, ndParseForm = thomasBolducAndZachFOLFormulaParser
, ndNotation = ndNotation P.thomasBolducAndZachTFLCalc
}
| 419
| false
| false
| 1
| 9
| 67
| 71
| 38
| 33
| null | null |
brendanhay/gogol
|
gogol-speech/gen/Network/Google/Resource/Speech/Speech/Longrunningrecognize.hs
|
mpl-2.0
|
-- | Multipart request metadata.
slPayload :: Lens' SpeechLongrunningrecognize LongRunningRecognizeRequest
slPayload
= lens _slPayload (\ s a -> s{_slPayload = a})
| 165
|
slPayload :: Lens' SpeechLongrunningrecognize LongRunningRecognizeRequest
slPayload
= lens _slPayload (\ s a -> s{_slPayload = a})
| 132
|
slPayload
= lens _slPayload (\ s a -> s{_slPayload = a})
| 58
| true
| true
| 0
| 9
| 22
| 42
| 22
| 20
| null | null |
githubkleon/ConvenientHDL
|
src/Language/Verilog/PrettyPrint.hs
|
bsd-3-clause
|
unary_op_table :: [(UnaryOp, String)]
unary_op_table
= [ (UPlus, "+"), (UMinus, "-"), (UBang, "!"), (UTilde, "~")
, (UAnd, "&"), (UNand, "~&"), (UOr, "|"), (UNor, "~|")
, (UXor, "^"), (UXnor, "~^"), (UXnor, "^~")
]
| 228
|
unary_op_table :: [(UnaryOp, String)]
unary_op_table
= [ (UPlus, "+"), (UMinus, "-"), (UBang, "!"), (UTilde, "~")
, (UAnd, "&"), (UNand, "~&"), (UOr, "|"), (UNor, "~|")
, (UXor, "^"), (UXnor, "~^"), (UXnor, "^~")
]
| 228
|
unary_op_table
= [ (UPlus, "+"), (UMinus, "-"), (UBang, "!"), (UTilde, "~")
, (UAnd, "&"), (UNand, "~&"), (UOr, "|"), (UNor, "~|")
, (UXor, "^"), (UXnor, "~^"), (UXnor, "^~")
]
| 190
| false
| true
| 0
| 8
| 45
| 122
| 78
| 44
| null | null |
siddhanathan/ghc
|
compiler/hsSyn/HsUtils.hs
|
bsd-3-clause
|
mkMatchGroup :: Origin -> [LMatch RdrName (Located (body RdrName))]
-> MatchGroup RdrName (Located (body RdrName))
mkMatchGroup origin matches = MG { mg_alts = matches, mg_arg_tys = []
, mg_res_ty = placeHolderType
, mg_origin = origin }
| 316
|
mkMatchGroup :: Origin -> [LMatch RdrName (Located (body RdrName))]
-> MatchGroup RdrName (Located (body RdrName))
mkMatchGroup origin matches = MG { mg_alts = matches, mg_arg_tys = []
, mg_res_ty = placeHolderType
, mg_origin = origin }
| 316
|
mkMatchGroup origin matches = MG { mg_alts = matches, mg_arg_tys = []
, mg_res_ty = placeHolderType
, mg_origin = origin }
| 188
| false
| true
| 0
| 12
| 114
| 89
| 48
| 41
| null | null |
davmre/matrizer
|
src/Matrizer/Optimization.hs
|
gpl-2.0
|
goUp (t, TernCrumbR op l c : bs) = Right (Branch3 op l c t , bs)
| 64
|
goUp (t, TernCrumbR op l c : bs) = Right (Branch3 op l c t , bs)
| 64
|
goUp (t, TernCrumbR op l c : bs) = Right (Branch3 op l c t , bs)
| 64
| false
| false
| 0
| 7
| 16
| 45
| 22
| 23
| null | null |
seereason/cabal
|
Cabal/Distribution/PackageDescription.hs
|
bsd-3-clause
|
-- | Perform an action on each buildable 'Benchmark' in a package.
withBenchmark :: PackageDescription -> (Benchmark -> IO ()) -> IO ()
withBenchmark pkg_descr f =
mapM_ f $ filter (buildable . benchmarkBuildInfo) $ enabledBenchmarks pkg_descr
| 247
|
withBenchmark :: PackageDescription -> (Benchmark -> IO ()) -> IO ()
withBenchmark pkg_descr f =
mapM_ f $ filter (buildable . benchmarkBuildInfo) $ enabledBenchmarks pkg_descr
| 180
|
withBenchmark pkg_descr f =
mapM_ f $ filter (buildable . benchmarkBuildInfo) $ enabledBenchmarks pkg_descr
| 111
| true
| true
| 0
| 10
| 40
| 66
| 32
| 34
| null | null |
nlim/haskell-playground
|
src/Cont.hs
|
mit
|
quuxE = runCont id quux
| 23
|
quuxE = runCont id quux
| 23
|
quuxE = runCont id quux
| 23
| false
| false
| 0
| 5
| 4
| 11
| 5
| 6
| null | null |
ddeeff/sandbox
|
haskell/sample.hs
|
mit
|
drop' n (_:ls) = drop' (n-1) ls
| 31
|
drop' n (_:ls) = drop' (n-1) ls
| 31
|
drop' n (_:ls) = drop' (n-1) ls
| 31
| false
| false
| 0
| 7
| 6
| 32
| 15
| 17
| null | null |
Mokosha/Lambency
|
lib/Lambency/Font.hs
|
mit
|
stringHeight :: Font -> String -> Float
stringHeight _ "" = 0
| 61
|
stringHeight :: Font -> String -> Float
stringHeight _ "" = 0
| 61
|
stringHeight _ "" = 0
| 21
| false
| true
| 0
| 8
| 11
| 30
| 13
| 17
| null | null |
uduki/hsQt
|
Qtc/Network/QUdpSocket.hs
|
bsd-2-clause
|
qUdpSocket_delete :: QUdpSocket a -> IO ()
qUdpSocket_delete x0
= withObjectPtr x0 $ \cobj_x0 ->
qtc_QUdpSocket_delete cobj_x0
| 132
|
qUdpSocket_delete :: QUdpSocket a -> IO ()
qUdpSocket_delete x0
= withObjectPtr x0 $ \cobj_x0 ->
qtc_QUdpSocket_delete cobj_x0
| 132
|
qUdpSocket_delete x0
= withObjectPtr x0 $ \cobj_x0 ->
qtc_QUdpSocket_delete cobj_x0
| 89
| false
| true
| 0
| 7
| 22
| 41
| 19
| 22
| null | null |
jcollard/unm-hip
|
Data/Image/Binary.hs
|
gpl-3.0
|
{-| Given two images X and Y, return a binray image that for each pixel (i, j)
is on if X(i,j) == Y(i,j) and off otherwise.
>>>let fademask3 = frog .==. fade
<https://raw.github.com/jcollard/unm-hip/master/examples/fademask3.jpg>
-}
(.==.) :: (Image img,
BinaryPixel (Pixel img),
Eq (Pixel img)) => img -> img -> img
(.==.) img0@(dimensions -> (rows, cols)) img1 = makeImage rows cols img where
img r c = if p0 == p1 then on else off where
p0 = ref img0 r c
p1 = ref img1 r c
{-| Given two images X and Y, return a bniry image that for each pixel (i, j)
is on if X(i,j) == Y(i,j) and off otherwise.
>>>let fademask4 = frog ./=. fade
<https://raw.github.com/jcollard/unm-hip/master/examples/fademask4.jpg>
-}
| 770
|
(.==.) :: (Image img,
BinaryPixel (Pixel img),
Eq (Pixel img)) => img -> img -> img
(.==.) img0@(dimensions -> (rows, cols)) img1 = makeImage rows cols img where
img r c = if p0 == p1 then on else off where
p0 = ref img0 r c
p1 = ref img1 r c
{-| Given two images X and Y, return a bniry image that for each pixel (i, j)
is on if X(i,j) == Y(i,j) and off otherwise.
>>>let fademask4 = frog ./=. fade
<https://raw.github.com/jcollard/unm-hip/master/examples/fademask4.jpg>
-}
| 522
|
(.==.) img0@(dimensions -> (rows, cols)) img1 = makeImage rows cols img where
img r c = if p0 == p1 then on else off where
p0 = ref img0 r c
p1 = ref img1 r c
{-| Given two images X and Y, return a bniry image that for each pixel (i, j)
is on if X(i,j) == Y(i,j) and off otherwise.
>>>let fademask4 = frog ./=. fade
<https://raw.github.com/jcollard/unm-hip/master/examples/fademask4.jpg>
-}
| 416
| true
| true
| 0
| 9
| 183
| 136
| 74
| 62
| null | null |
cchalmers/geometry
|
src/Geometry/TwoD/Transform.hs
|
bsd-3-clause
|
-- | @shearY d@ performs a shear in the y-direction which sends
-- @(1,0)@ to @(1,d)@.
shearY :: (InSpace V2 n t, Transformable t) => n -> t -> t
shearY = transform . shearingY
| 178
|
shearY :: (InSpace V2 n t, Transformable t) => n -> t -> t
shearY = transform . shearingY
| 89
|
shearY = transform . shearingY
| 30
| true
| true
| 1
| 9
| 36
| 52
| 25
| 27
| null | null |
osa1/fast-tags
|
src/Main.hs
|
bsd-3-clause
|
help :: String
help = "usage: fast-tags [options] [filenames]\n" ++
"In case no filenames provided on commandline, fast-tags expects " ++
"list of files separated by newlines in stdin."
| 199
|
help :: String
help = "usage: fast-tags [options] [filenames]\n" ++
"In case no filenames provided on commandline, fast-tags expects " ++
"list of files separated by newlines in stdin."
| 199
|
help = "usage: fast-tags [options] [filenames]\n" ++
"In case no filenames provided on commandline, fast-tags expects " ++
"list of files separated by newlines in stdin."
| 184
| false
| true
| 0
| 6
| 42
| 19
| 10
| 9
| null | null |
mmalecki/dutch-income-tax
|
main.hs
|
mit
|
tax x | x > cutoff0 = (x - cutoff0) * tax0 + tax (cutoff0)
| x > cutoff1 = (x - cutoff1) * tax1 + tax (cutoff1)
| x > cutoff2 = (x - cutoff2) * tax2 + tax (cutoff2)
| x > cutoff3 = (x - cutoff3) * tax3 + tax (cutoff3)
| x == 0 = 0
| 259
|
tax x | x > cutoff0 = (x - cutoff0) * tax0 + tax (cutoff0)
| x > cutoff1 = (x - cutoff1) * tax1 + tax (cutoff1)
| x > cutoff2 = (x - cutoff2) * tax2 + tax (cutoff2)
| x > cutoff3 = (x - cutoff3) * tax3 + tax (cutoff3)
| x == 0 = 0
| 259
|
tax x | x > cutoff0 = (x - cutoff0) * tax0 + tax (cutoff0)
| x > cutoff1 = (x - cutoff1) * tax1 + tax (cutoff1)
| x > cutoff2 = (x - cutoff2) * tax2 + tax (cutoff2)
| x > cutoff3 = (x - cutoff3) * tax3 + tax (cutoff3)
| x == 0 = 0
| 259
| false
| false
| 5
| 8
| 88
| 157
| 76
| 81
| null | null |
jberryman/hashabler
|
tests/Consistency.hs
|
bsd-3-clause
|
-- Nothing means regenerate all vectors, else just those in the list of names:
regenerateVectors :: Maybe [String] -> IO ()
regenerateVectors vs = void $
forHashableInstances $ \nm inputs-> do
let regenerateOuts :: (Hashable h, Show h)=> [h] -> IO ()
regenerateOuts ins = void $
forHashFunctions $ \hashNm hashFunc -> do
writeFile (outpFilePath nm hashNm) $ show $
map hashFunc ins
when (maybe True (nm `elem`) vs) $
case inputs of
JustThese ins -> regenerateOuts ins >> putStr "."
StoredRandom gen -> do
putStr "o"
ins <- gen
let inFile = inFilePath nm
writeFile inFile $ show ins
regenerateOuts ins
-- Return a (hopefully empty) list of failed cases:
-- input type, hash, input, correct output, actual output
| 901
|
regenerateVectors :: Maybe [String] -> IO ()
regenerateVectors vs = void $
forHashableInstances $ \nm inputs-> do
let regenerateOuts :: (Hashable h, Show h)=> [h] -> IO ()
regenerateOuts ins = void $
forHashFunctions $ \hashNm hashFunc -> do
writeFile (outpFilePath nm hashNm) $ show $
map hashFunc ins
when (maybe True (nm `elem`) vs) $
case inputs of
JustThese ins -> regenerateOuts ins >> putStr "."
StoredRandom gen -> do
putStr "o"
ins <- gen
let inFile = inFilePath nm
writeFile inFile $ show ins
regenerateOuts ins
-- Return a (hopefully empty) list of failed cases:
-- input type, hash, input, correct output, actual output
| 822
|
regenerateVectors vs = void $
forHashableInstances $ \nm inputs-> do
let regenerateOuts :: (Hashable h, Show h)=> [h] -> IO ()
regenerateOuts ins = void $
forHashFunctions $ \hashNm hashFunc -> do
writeFile (outpFilePath nm hashNm) $ show $
map hashFunc ins
when (maybe True (nm `elem`) vs) $
case inputs of
JustThese ins -> regenerateOuts ins >> putStr "."
StoredRandom gen -> do
putStr "o"
ins <- gen
let inFile = inFilePath nm
writeFile inFile $ show ins
regenerateOuts ins
-- Return a (hopefully empty) list of failed cases:
-- input type, hash, input, correct output, actual output
| 777
| true
| true
| 0
| 20
| 310
| 235
| 112
| 123
| null | null |
rueshyna/gogol
|
gogol-compute/gen/Network/Google/Resource/Compute/Instances/AddAccessConfig.hs
|
mpl-2.0
|
-- | Creates a value of 'InstancesAddAccessConfig' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'iaacProject'
--
-- * 'iaacNetworkInterface'
--
-- * 'iaacZone'
--
-- * 'iaacPayload'
--
-- * 'iaacInstance'
instancesAddAccessConfig
:: Text -- ^ 'iaacProject'
-> Text -- ^ 'iaacNetworkInterface'
-> Text -- ^ 'iaacZone'
-> AccessConfig -- ^ 'iaacPayload'
-> Text -- ^ 'iaacInstance'
-> InstancesAddAccessConfig
instancesAddAccessConfig pIaacProject_ pIaacNetworkInterface_ pIaacZone_ pIaacPayload_ pIaacInstance_ =
InstancesAddAccessConfig'
{ _iaacProject = pIaacProject_
, _iaacNetworkInterface = pIaacNetworkInterface_
, _iaacZone = pIaacZone_
, _iaacPayload = pIaacPayload_
, _iaacInstance = pIaacInstance_
}
| 848
|
instancesAddAccessConfig
:: Text -- ^ 'iaacProject'
-> Text -- ^ 'iaacNetworkInterface'
-> Text -- ^ 'iaacZone'
-> AccessConfig -- ^ 'iaacPayload'
-> Text -- ^ 'iaacInstance'
-> InstancesAddAccessConfig
instancesAddAccessConfig pIaacProject_ pIaacNetworkInterface_ pIaacZone_ pIaacPayload_ pIaacInstance_ =
InstancesAddAccessConfig'
{ _iaacProject = pIaacProject_
, _iaacNetworkInterface = pIaacNetworkInterface_
, _iaacZone = pIaacZone_
, _iaacPayload = pIaacPayload_
, _iaacInstance = pIaacInstance_
}
| 555
|
instancesAddAccessConfig pIaacProject_ pIaacNetworkInterface_ pIaacZone_ pIaacPayload_ pIaacInstance_ =
InstancesAddAccessConfig'
{ _iaacProject = pIaacProject_
, _iaacNetworkInterface = pIaacNetworkInterface_
, _iaacZone = pIaacZone_
, _iaacPayload = pIaacPayload_
, _iaacInstance = pIaacInstance_
}
| 328
| true
| true
| 0
| 11
| 158
| 101
| 62
| 39
| null | null |
rvl/hsoz
|
test/Network/Hawk/Tests.hs
|
bsd-3-clause
|
testCreds "doesnotexist" = Left "Unknown user"
| 46
|
testCreds "doesnotexist" = Left "Unknown user"
| 46
|
testCreds "doesnotexist" = Left "Unknown user"
| 46
| false
| false
| 1
| 5
| 5
| 15
| 5
| 10
| null | null |
haroldcarr/learn-haskell-coq-ml-etc
|
haskell/topic/program-structure/2018-07-harold-carr-program-structure/HC.hs
|
unlicense
|
getPassword :: (MonadReader r m, HasConfig r) => m String
getPassword = view (config . password)
| 97
|
getPassword :: (MonadReader r m, HasConfig r) => m String
getPassword = view (config . password)
| 97
|
getPassword = view (config . password)
| 39
| false
| true
| 0
| 7
| 16
| 41
| 21
| 20
| null | null |
music-suite/music-pitch-literal
|
src/Music/Pitch/Literal/Pitch.hs
|
bsd-3-clause
|
eb__ = fromPitch $ PitchL (2, Just (-1), -2)
| 49
|
eb__ = fromPitch $ PitchL (2, Just (-1), -2)
| 49
|
eb__ = fromPitch $ PitchL (2, Just (-1), -2)
| 49
| false
| false
| 3
| 9
| 13
| 36
| 17
| 19
| null | null |
BJTerry/WebSockets-example
|
app/main.hs
|
mit
|
-- WebSocket: Changes to bring a reference to App to main, so it can be passed
-- as a parameter to webSocketMain, the WebSocket handler
main :: IO ()
main = do
config <- load
(app, foundation) <- getApp config
runSettings defaultSettings
{ settingsPort = appPort config
, settingsHost = appHost config
, settingsIntercept = intercept $ webSocketMain foundation
} app
where
load = (fromArgs parseExtra)
getApp = makeApplication
| 460
|
main :: IO ()
main = do
config <- load
(app, foundation) <- getApp config
runSettings defaultSettings
{ settingsPort = appPort config
, settingsHost = appHost config
, settingsIntercept = intercept $ webSocketMain foundation
} app
where
load = (fromArgs parseExtra)
getApp = makeApplication
| 323
|
main = do
config <- load
(app, foundation) <- getApp config
runSettings defaultSettings
{ settingsPort = appPort config
, settingsHost = appHost config
, settingsIntercept = intercept $ webSocketMain foundation
} app
where
load = (fromArgs parseExtra)
getApp = makeApplication
| 309
| true
| true
| 2
| 11
| 101
| 113
| 53
| 60
| null | null |
kawu/factorized-tag-parser
|
src/NLP/Partage/AStar/HeuristicNew.hs
|
bsd-2-clause
|
add2 :: (Ord a, Num w) => (Bag a, w) -> (Bag a, w) -> (Bag a, w)
add2 (b1, w1) (b2, w2) = (bagAdd b1 b2, w1 + w2)
| 113
|
add2 :: (Ord a, Num w) => (Bag a, w) -> (Bag a, w) -> (Bag a, w)
add2 (b1, w1) (b2, w2) = (bagAdd b1 b2, w1 + w2)
| 113
|
add2 (b1, w1) (b2, w2) = (bagAdd b1 b2, w1 + w2)
| 48
| false
| true
| 0
| 9
| 29
| 98
| 52
| 46
| null | null |
forste/haReFork
|
StrategyLib-4.0-beta/examples/joos-padl02/DatatypesTermInstances.hs
|
bsd-3-clause
|
_tc_ConstructorDeclarationTc = mkTyCon "ConstructorDeclaration"
| 63
|
_tc_ConstructorDeclarationTc = mkTyCon "ConstructorDeclaration"
| 63
|
_tc_ConstructorDeclarationTc = mkTyCon "ConstructorDeclaration"
| 63
| false
| false
| 0
| 5
| 3
| 9
| 4
| 5
| null | null |
ajnsit/packman
|
Test/Workpool.hs
|
bsd-3-clause
|
-- Creates <n> OS processes that run the same executable as the
-- current (with the "worker" command line argument).
startWorkers :: Int -> IO [String]
startWorkers n = do
exePath <- getExecutablePath
let wids = map show [1..n] -- worker IDs (strings)
mapM (\wid -> createProcess $ proc exePath ["worker", wid]) wids
return wids
| 338
|
startWorkers :: Int -> IO [String]
startWorkers n = do
exePath <- getExecutablePath
let wids = map show [1..n] -- worker IDs (strings)
mapM (\wid -> createProcess $ proc exePath ["worker", wid]) wids
return wids
| 220
|
startWorkers n = do
exePath <- getExecutablePath
let wids = map show [1..n] -- worker IDs (strings)
mapM (\wid -> createProcess $ proc exePath ["worker", wid]) wids
return wids
| 185
| true
| true
| 0
| 12
| 63
| 90
| 45
| 45
| null | null |
zepto-lang/zepto-js
|
src/Zepto/Parser.hs
|
gpl-2.0
|
parseNumber :: Parser LispVal
parseNumber = try parseComplex
<|> try parseRational
<|> try parseStandardNum
<|> parseDigital2
<|> parseHex
<|> parseOct
<|> parseBin
| 248
|
parseNumber :: Parser LispVal
parseNumber = try parseComplex
<|> try parseRational
<|> try parseStandardNum
<|> parseDigital2
<|> parseHex
<|> parseOct
<|> parseBin
| 248
|
parseNumber = try parseComplex
<|> try parseRational
<|> try parseStandardNum
<|> parseDigital2
<|> parseHex
<|> parseOct
<|> parseBin
| 218
| false
| true
| 18
| 6
| 105
| 71
| 35
| 36
| null | null |
anahiwozniak/Algoritmos1
|
Proyecto1.hs
|
mit
|
--Ejercicio 1-c
esVocal :: Char -> Bool
esVocal x = x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u'
| 109
|
esVocal :: Char -> Bool
esVocal x = x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u'
| 92
|
esVocal x = x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u'
| 68
| true
| true
| 0
| 13
| 29
| 59
| 29
| 30
| null | null |
melrief/tetris
|
src/Tetris/Orientation.hs
|
apache-2.0
|
clockwise East = North
| 25
|
clockwise East = North
| 25
|
clockwise East = North
| 25
| false
| false
| 1
| 5
| 6
| 13
| 4
| 9
| null | null |
AubreyEAnderson/shellcheck
|
ShellCheck/Parser.hs
|
gpl-3.0
|
readSpacePart = do
id <- getNextId
x <- many1 whitespace
return $ T_Literal id x
| 92
|
readSpacePart = do
id <- getNextId
x <- many1 whitespace
return $ T_Literal id x
| 92
|
readSpacePart = do
id <- getNextId
x <- many1 whitespace
return $ T_Literal id x
| 92
| false
| false
| 0
| 8
| 26
| 35
| 15
| 20
| null | null |
rueshyna/gogol
|
gogol-analytics/gen/Network/Google/Analytics/Types/Product.hs
|
mpl-2.0
|
-- | View (Profile) for the account.
atProFile :: Lens' AccountTicket (Maybe ProFile)
atProFile
= lens _atProFile (\ s a -> s{_atProFile = a})
| 144
|
atProFile :: Lens' AccountTicket (Maybe ProFile)
atProFile
= lens _atProFile (\ s a -> s{_atProFile = a})
| 107
|
atProFile
= lens _atProFile (\ s a -> s{_atProFile = a})
| 58
| true
| true
| 0
| 9
| 25
| 48
| 25
| 23
| null | null |
jonsterling/singletons
|
Data/Singletons/Singletons.hs
|
bsd-3-clause
|
singTypeRec ctx pos (TupleT n) = -- just like ConT
return $ AppT singFamily
| 77
|
singTypeRec ctx pos (TupleT n) = -- just like ConT
return $ AppT singFamily
| 77
|
singTypeRec ctx pos (TupleT n) = -- just like ConT
return $ AppT singFamily
| 77
| false
| false
| 2
| 6
| 15
| 32
| 13
| 19
| null | null |
josuf107/Fizzckle
|
src/Fizz/Core.hs
|
gpl-3.0
|
spendCategory _ _ = False
| 25
|
spendCategory _ _ = False
| 25
|
spendCategory _ _ = False
| 25
| false
| false
| 0
| 5
| 4
| 11
| 5
| 6
| null | null |
zrho/pylon
|
src/Language/Pylon/Codegen/Monad.hs
|
bsd-3-clause
|
-- | Add a top level declaration.
top :: Codegen () -> Codegen ()
top t = modify $ \s -> s { cgTop = t : cgTop s }
| 114
|
top :: Codegen () -> Codegen ()
top t = modify $ \s -> s { cgTop = t : cgTop s }
| 80
|
top t = modify $ \s -> s { cgTop = t : cgTop s }
| 48
| true
| true
| 0
| 10
| 29
| 53
| 27
| 26
| null | null |
BartAdv/Idris-dev
|
src/Idris/CaseSplit.hs
|
bsd-3-clause
|
inventName :: Idris.AbsSyntaxTree.IState -> Maybe Name -> Name -> State MergeState Name
inventName ist ty n =
do ms <- get
let supp = case ty of
Nothing -> []
Just t -> getNameHints ist t
let nsupp = case n of
MN i n | not (tnull n) && thead n == '_'
-> mkSupply (supp ++ varlist)
MN i n -> mkSupply (UN n : supp ++ varlist)
UN n | thead n == '_'
-> mkSupply (supp ++ varlist)
x -> mkSupply (x : supp)
let badnames = map snd (namemap ms) ++ map snd (invented ms) ++
explicit ms
case lookup n (invented ms) of
Just n' -> return n'
Nothing ->
do let n' = uniqueNameFrom nsupp badnames
put (ms { invented = (n, n') : invented ms })
return n'
| 962
|
inventName :: Idris.AbsSyntaxTree.IState -> Maybe Name -> Name -> State MergeState Name
inventName ist ty n =
do ms <- get
let supp = case ty of
Nothing -> []
Just t -> getNameHints ist t
let nsupp = case n of
MN i n | not (tnull n) && thead n == '_'
-> mkSupply (supp ++ varlist)
MN i n -> mkSupply (UN n : supp ++ varlist)
UN n | thead n == '_'
-> mkSupply (supp ++ varlist)
x -> mkSupply (x : supp)
let badnames = map snd (namemap ms) ++ map snd (invented ms) ++
explicit ms
case lookup n (invented ms) of
Just n' -> return n'
Nothing ->
do let n' = uniqueNameFrom nsupp badnames
put (ms { invented = (n, n') : invented ms })
return n'
| 962
|
inventName ist ty n =
do ms <- get
let supp = case ty of
Nothing -> []
Just t -> getNameHints ist t
let nsupp = case n of
MN i n | not (tnull n) && thead n == '_'
-> mkSupply (supp ++ varlist)
MN i n -> mkSupply (UN n : supp ++ varlist)
UN n | thead n == '_'
-> mkSupply (supp ++ varlist)
x -> mkSupply (x : supp)
let badnames = map snd (namemap ms) ++ map snd (invented ms) ++
explicit ms
case lookup n (invented ms) of
Just n' -> return n'
Nothing ->
do let n' = uniqueNameFrom nsupp badnames
put (ms { invented = (n, n') : invented ms })
return n'
| 874
| false
| true
| 0
| 21
| 459
| 353
| 161
| 192
| null | null |
silky/ImplicitCAD
|
Graphics/Implicit/Export/MarchingSquares.hs
|
gpl-2.0
|
-- | getContour gets a polyline describe the edge of your 2D
-- object. It's really the only function in this file you need
-- to care about from an external perspective.
getContour :: ℝ2 -> ℝ2 -> ℝ2 -> Obj2 -> [Polyline]
getContour p1 p2 d obj =
let
-- How many steps will we take on each axis?
n@(nx,ny) = (ceiling) `both` ((p2 ^-^ p1) ⋯/ d)
-- Divide it up and compute the polylines
gridPos :: (Int,Int) -> (Int,Int) -> ℝ2
gridPos (nx,ny) (mx,my) = let p = ( fromIntegral mx / fromIntegral nx
, fromIntegral my / fromIntegral ny)
in p1 ^+^ (p2 ^-^ p1) ⋯* p
linesOnGrid :: [[[Polyline]]]
linesOnGrid = [[getSquareLineSegs
(gridPos n (mx,my))
(gridPos n (mx+1,my+1))
obj
| mx <- [0.. nx-1] ] | my <- [0..ny-1] ]
-- Cleanup, cleanup, everybody cleanup!
-- (We connect multilines, delete redundant vertices on them, etc)
multilines = (filter polylineNotNull) $ (map reducePolyline) $ orderLinesDC $ linesOnGrid
in
multilines
| 1,168
|
getContour :: ℝ2 -> ℝ2 -> ℝ2 -> Obj2 -> [Polyline]
getContour p1 p2 d obj =
let
-- How many steps will we take on each axis?
n@(nx,ny) = (ceiling) `both` ((p2 ^-^ p1) ⋯/ d)
-- Divide it up and compute the polylines
gridPos :: (Int,Int) -> (Int,Int) -> ℝ2
gridPos (nx,ny) (mx,my) = let p = ( fromIntegral mx / fromIntegral nx
, fromIntegral my / fromIntegral ny)
in p1 ^+^ (p2 ^-^ p1) ⋯* p
linesOnGrid :: [[[Polyline]]]
linesOnGrid = [[getSquareLineSegs
(gridPos n (mx,my))
(gridPos n (mx+1,my+1))
obj
| mx <- [0.. nx-1] ] | my <- [0..ny-1] ]
-- Cleanup, cleanup, everybody cleanup!
-- (We connect multilines, delete redundant vertices on them, etc)
multilines = (filter polylineNotNull) $ (map reducePolyline) $ orderLinesDC $ linesOnGrid
in
multilines
| 994
|
getContour p1 p2 d obj =
let
-- How many steps will we take on each axis?
n@(nx,ny) = (ceiling) `both` ((p2 ^-^ p1) ⋯/ d)
-- Divide it up and compute the polylines
gridPos :: (Int,Int) -> (Int,Int) -> ℝ2
gridPos (nx,ny) (mx,my) = let p = ( fromIntegral mx / fromIntegral nx
, fromIntegral my / fromIntegral ny)
in p1 ^+^ (p2 ^-^ p1) ⋯* p
linesOnGrid :: [[[Polyline]]]
linesOnGrid = [[getSquareLineSegs
(gridPos n (mx,my))
(gridPos n (mx+1,my+1))
obj
| mx <- [0.. nx-1] ] | my <- [0..ny-1] ]
-- Cleanup, cleanup, everybody cleanup!
-- (We connect multilines, delete redundant vertices on them, etc)
multilines = (filter polylineNotNull) $ (map reducePolyline) $ orderLinesDC $ linesOnGrid
in
multilines
| 943
| true
| true
| 0
| 15
| 407
| 320
| 177
| 143
| null | null |
keithodulaigh/Hets
|
CommonLogic/Parse_KIF.hs
|
gpl-2.0
|
atomsent :: CharParser st ATOM -> CharParser st SENTENCE
atomsent = liftM (\ a -> Atom_sent a $ Range $ rangeSpan a)
| 116
|
atomsent :: CharParser st ATOM -> CharParser st SENTENCE
atomsent = liftM (\ a -> Atom_sent a $ Range $ rangeSpan a)
| 116
|
atomsent = liftM (\ a -> Atom_sent a $ Range $ rangeSpan a)
| 59
| false
| true
| 0
| 10
| 21
| 56
| 25
| 31
| null | null |
mietek/mighttpd2
|
Program/Mighty/Config.hs
|
bsd-3-clause
|
parseConfig :: FilePath -> IO [Conf]
parseConfig = parseFile config
| 67
|
parseConfig :: FilePath -> IO [Conf]
parseConfig = parseFile config
| 67
|
parseConfig = parseFile config
| 30
| false
| true
| 0
| 8
| 9
| 29
| 13
| 16
| null | null |
TomHammersley/HaskellRenderer
|
app/src/Octree.hs
|
gpl-2.0
|
gather pos r (OctreeLeaf _ (pos', a))
| dSq <= r * r = [(a, dSq)]
| otherwise = []
where dSq = pos `distanceSq` pos'
| 128
|
gather pos r (OctreeLeaf _ (pos', a))
| dSq <= r * r = [(a, dSq)]
| otherwise = []
where dSq = pos `distanceSq` pos'
| 128
|
gather pos r (OctreeLeaf _ (pos', a))
| dSq <= r * r = [(a, dSq)]
| otherwise = []
where dSq = pos `distanceSq` pos'
| 128
| false
| false
| 1
| 9
| 37
| 74
| 39
| 35
| null | null |
jacekszymanski/wxHaskell
|
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
|
lgpl-2.1
|
wxDB_UPD_KEYFIELDS :: Int
wxDB_UPD_KEYFIELDS = 1
| 48
|
wxDB_UPD_KEYFIELDS :: Int
wxDB_UPD_KEYFIELDS = 1
| 48
|
wxDB_UPD_KEYFIELDS = 1
| 22
| false
| true
| 0
| 4
| 5
| 11
| 6
| 5
| null | null |
romanb/amazonka
|
amazonka-ec2/gen/Network/AWS/EC2/Types.hs
|
mpl-2.0
|
-- | The AWS account ID of the EBS snapshot owner.
sOwnerId :: Lens' Snapshot Text
sOwnerId = lens _sOwnerId (\s a -> s { _sOwnerId = a })
| 138
|
sOwnerId :: Lens' Snapshot Text
sOwnerId = lens _sOwnerId (\s a -> s { _sOwnerId = a })
| 87
|
sOwnerId = lens _sOwnerId (\s a -> s { _sOwnerId = a })
| 55
| true
| true
| 0
| 9
| 28
| 47
| 23
| 24
| null | null |
fffej/sql-server-gen
|
src/Database/SqlServer/Create/Contract.hs
|
bsd-2-clause
|
isInitiatorOrAny :: SentByConstraint -> Bool
isInitiatorOrAny Initiator = True
| 78
|
isInitiatorOrAny :: SentByConstraint -> Bool
isInitiatorOrAny Initiator = True
| 78
|
isInitiatorOrAny Initiator = True
| 33
| false
| true
| 0
| 5
| 8
| 18
| 9
| 9
| null | null |
snoyberg/ghc
|
compiler/prelude/PrelNames.hs
|
bsd-3-clause
|
sndIdKey = mkPreludeMiscIdUnique 42
| 56
|
sndIdKey = mkPreludeMiscIdUnique 42
| 56
|
sndIdKey = mkPreludeMiscIdUnique 42
| 56
| false
| false
| 0
| 5
| 24
| 9
| 4
| 5
| null | null |
plancalculus/kif-parser
|
Text/KIF/Parser.hs
|
bsd-3-clause
|
scenarioNumber :: Parser Int
scenarioNumber = pInt <* char '/' <* pInt <* spaces
| 80
|
scenarioNumber :: Parser Int
scenarioNumber = pInt <* char '/' <* pInt <* spaces
| 80
|
scenarioNumber = pInt <* char '/' <* pInt <* spaces
| 51
| false
| true
| 0
| 8
| 13
| 29
| 14
| 15
| null | null |
santolucito/ives
|
tests/benchmarks/list_filter_user.hs
|
mit
|
user_pred :: Int -> Bool
user_pred x = x > 1
| 44
|
user_pred :: Int -> Bool
user_pred x = x > 1
| 44
|
user_pred x = x > 1
| 19
| false
| true
| 0
| 5
| 10
| 22
| 11
| 11
| null | null |
Mathnerd314/atomo
|
src/Atomo/Helpers.hs
|
bsd-3-clause
|
-- | `toRolePattern', raising @\@unknown-pattern:@ if conversion fails.
toRolePattern' :: Expr -> VM Pattern
toRolePattern' = tryPattern toRolePattern
| 150
|
toRolePattern' :: Expr -> VM Pattern
toRolePattern' = tryPattern toRolePattern
| 78
|
toRolePattern' = tryPattern toRolePattern
| 41
| true
| true
| 0
| 6
| 17
| 22
| 11
| 11
| null | null |
mariefarrell/Hets
|
CSL/TreePO.hs
|
gpl-2.0
|
-- | Compare sets over continuous types
cmpSoIs :: (Continuous a, Ord a) =>
SetOrInterval a -> SetOrInterval a -> SetOrdering
cmpSoIs d1 d2 =
case (toSingular d1, toSingular d2) of
(Just x1, Just x2)
| x1 == x2 -> Comparable EQ
| otherwise -> Incomparable Disjoint
(Just x, _)
| membSoI x d2 -> Comparable LT
| otherwise -> Incomparable Disjoint
(_, Just x)
| membSoI x d1 -> Comparable GT
| otherwise -> Incomparable Disjoint
_ -> cmpSoIsEx d1 d2 -- singular cases are dispelled here
{- | Compare sets helper function which only works on regular (non-singular)
sets -}
| 670
|
cmpSoIs :: (Continuous a, Ord a) =>
SetOrInterval a -> SetOrInterval a -> SetOrdering
cmpSoIs d1 d2 =
case (toSingular d1, toSingular d2) of
(Just x1, Just x2)
| x1 == x2 -> Comparable EQ
| otherwise -> Incomparable Disjoint
(Just x, _)
| membSoI x d2 -> Comparable LT
| otherwise -> Incomparable Disjoint
(_, Just x)
| membSoI x d1 -> Comparable GT
| otherwise -> Incomparable Disjoint
_ -> cmpSoIsEx d1 d2 -- singular cases are dispelled here
{- | Compare sets helper function which only works on regular (non-singular)
sets -}
| 630
|
cmpSoIs d1 d2 =
case (toSingular d1, toSingular d2) of
(Just x1, Just x2)
| x1 == x2 -> Comparable EQ
| otherwise -> Incomparable Disjoint
(Just x, _)
| membSoI x d2 -> Comparable LT
| otherwise -> Incomparable Disjoint
(_, Just x)
| membSoI x d1 -> Comparable GT
| otherwise -> Incomparable Disjoint
_ -> cmpSoIsEx d1 d2 -- singular cases are dispelled here
{- | Compare sets helper function which only works on regular (non-singular)
sets -}
| 533
| true
| true
| 0
| 11
| 202
| 205
| 94
| 111
| null | null |
A1kmm/sbasetram
|
pfilter.hs
|
agpl-3.0
|
writeFASTA probes =
forM probes $ \(name, vals) ->
do
putStrLn $ '>':name
forM vals $ \(tfname, _) ->
putStrLn tfname
| 163
|
writeFASTA probes =
forM probes $ \(name, vals) ->
do
putStrLn $ '>':name
forM vals $ \(tfname, _) ->
putStrLn tfname
| 163
|
writeFASTA probes =
forM probes $ \(name, vals) ->
do
putStrLn $ '>':name
forM vals $ \(tfname, _) ->
putStrLn tfname
| 163
| false
| false
| 3
| 11
| 66
| 67
| 31
| 36
| null | null |
anshbansal/general
|
Haskell/ProjectEuler.hs
|
mit
|
prob002 = sum $ filter (even) $ takeWhile (< 4000000) (fib 1 2)
| 63
|
prob002 = sum $ filter (even) $ takeWhile (< 4000000) (fib 1 2)
| 63
|
prob002 = sum $ filter (even) $ takeWhile (< 4000000) (fib 1 2)
| 63
| false
| false
| 6
| 5
| 12
| 38
| 19
| 19
| null | null |
joozek78/stack
|
src/Stack/Build/ConstructPlan.hs
|
bsd-3-clause
|
mkUnregisterLocal :: Map PackageName Task
-> Map PackageName Text
-> Set GhcPkgId
-> Map GhcPkgId Text
mkUnregisterLocal tasks dirtyReason locallyRegistered =
Map.unions $ map toUnregisterMap $ Set.toList locallyRegistered
where
toUnregisterMap gid =
case M.lookup name tasks of
Nothing -> Map.empty
Just _ -> Map.singleton gid
$ fromMaybe "likely unregistering due to a version change"
$ Map.lookup name dirtyReason
where
ident = ghcPkgIdPackageIdentifier gid
name = packageIdentifierName ident
| 653
|
mkUnregisterLocal :: Map PackageName Task
-> Map PackageName Text
-> Set GhcPkgId
-> Map GhcPkgId Text
mkUnregisterLocal tasks dirtyReason locallyRegistered =
Map.unions $ map toUnregisterMap $ Set.toList locallyRegistered
where
toUnregisterMap gid =
case M.lookup name tasks of
Nothing -> Map.empty
Just _ -> Map.singleton gid
$ fromMaybe "likely unregistering due to a version change"
$ Map.lookup name dirtyReason
where
ident = ghcPkgIdPackageIdentifier gid
name = packageIdentifierName ident
| 653
|
mkUnregisterLocal tasks dirtyReason locallyRegistered =
Map.unions $ map toUnregisterMap $ Set.toList locallyRegistered
where
toUnregisterMap gid =
case M.lookup name tasks of
Nothing -> Map.empty
Just _ -> Map.singleton gid
$ fromMaybe "likely unregistering due to a version change"
$ Map.lookup name dirtyReason
where
ident = ghcPkgIdPackageIdentifier gid
name = packageIdentifierName ident
| 496
| false
| true
| 1
| 11
| 224
| 150
| 67
| 83
| null | null |
teiche/femtocc
|
BEStackMachine.hs
|
bsd-3-clause
|
emitASM (Pop r@Reg{}) = Right $ "pop " ++ (show r)
| 51
|
emitASM (Pop r@Reg{}) = Right $ "pop " ++ (show r)
| 51
|
emitASM (Pop r@Reg{}) = Right $ "pop " ++ (show r)
| 51
| false
| false
| 0
| 8
| 11
| 37
| 18
| 19
| null | null |
nishiuramakoto/logiku
|
test/TestImport.hs
|
gpl-3.0
|
getTables' :: MonadIO m => ReaderT SqlBackend m [Text]
getTables' = do
return $ [ "blog"
, "comment"
, "email"
, "file_json"
, "file_tag"
, "directory_tag"
, "tag"
, "file_group"
, "directory_group"
, "group_member"
, "group"
, "file"
, "directory"
, "user_account"
]
-------------- run monadic Quickcheck on Yesod sites ----------------
| 525
|
getTables' :: MonadIO m => ReaderT SqlBackend m [Text]
getTables' = do
return $ [ "blog"
, "comment"
, "email"
, "file_json"
, "file_tag"
, "directory_tag"
, "tag"
, "file_group"
, "directory_group"
, "group_member"
, "group"
, "file"
, "directory"
, "user_account"
]
-------------- run monadic Quickcheck on Yesod sites ----------------
| 525
|
getTables' = do
return $ [ "blog"
, "comment"
, "email"
, "file_json"
, "file_tag"
, "directory_tag"
, "tag"
, "file_group"
, "directory_group"
, "group_member"
, "group"
, "file"
, "directory"
, "user_account"
]
-------------- run monadic Quickcheck on Yesod sites ----------------
| 470
| false
| true
| 0
| 8
| 238
| 78
| 46
| 32
| null | null |
lukexi/animation-pal
|
test/Random.hs
|
bsd-3-clause
|
randomShapeState :: MonadIO m => m ShapeState
randomShapeState = ShapeState
<$> randomPose
<*> randomColor
<*> randomScale
| 140
|
randomShapeState :: MonadIO m => m ShapeState
randomShapeState = ShapeState
<$> randomPose
<*> randomColor
<*> randomScale
| 140
|
randomShapeState = ShapeState
<$> randomPose
<*> randomColor
<*> randomScale
| 94
| false
| true
| 8
| 6
| 33
| 41
| 20
| 21
| null | null |
alanz/hroq
|
src/Data/Concurrent/Queue/Roq/AlarmServer.hs
|
bsd-3-clause
|
dayZero :: UTCTime
dayZero = mkUTCTime (fromGregorian 0 0 0) (fromSeconds 0)
| 76
|
dayZero :: UTCTime
dayZero = mkUTCTime (fromGregorian 0 0 0) (fromSeconds 0)
| 76
|
dayZero = mkUTCTime (fromGregorian 0 0 0) (fromSeconds 0)
| 57
| false
| true
| 0
| 7
| 11
| 32
| 16
| 16
| null | null |
ant0nsc/bond
|
compiler/src/Language/Bond/Codegen/Cpp/Util.hs
|
mit
|
closeNamespace :: MappingContext -> Text
closeNamespace cpp = newlineSep 0 close (reverse $ getNamespace cpp)
where
close n = [lt|} // namespace #{n}|]
| 157
|
closeNamespace :: MappingContext -> Text
closeNamespace cpp = newlineSep 0 close (reverse $ getNamespace cpp)
where
close n = [lt|} // namespace #{n}|]
| 157
|
closeNamespace cpp = newlineSep 0 close (reverse $ getNamespace cpp)
where
close n = [lt|} // namespace #{n}|]
| 116
| false
| true
| 1
| 8
| 28
| 60
| 27
| 33
| null | null |
chrisbarrett/apidoc-checker
|
src/Apidoc/Json/Parser.hs
|
bsd-3-clause
|
jsonPos (JArray p _) = p
| 25
|
jsonPos (JArray p _) = p
| 25
|
jsonPos (JArray p _) = p
| 25
| false
| false
| 0
| 6
| 6
| 18
| 8
| 10
| null | null |
tsahyt/clingo-haskell
|
src/Clingo/Internal/AST.hs
|
mit
|
fromRawExternal :: AstExternal -> IO (External (Symbol s))
fromRawExternal (AstExternal t ls n) = External
<$> fromRawTerm t
<*> (mapM fromRawBodyLiteral =<< peekArray (fromIntegral n) ls)
| 196
|
fromRawExternal :: AstExternal -> IO (External (Symbol s))
fromRawExternal (AstExternal t ls n) = External
<$> fromRawTerm t
<*> (mapM fromRawBodyLiteral =<< peekArray (fromIntegral n) ls)
| 196
|
fromRawExternal (AstExternal t ls n) = External
<$> fromRawTerm t
<*> (mapM fromRawBodyLiteral =<< peekArray (fromIntegral n) ls)
| 137
| false
| true
| 5
| 10
| 33
| 80
| 38
| 42
| null | null |
jstolarek/slicer
|
lib/Language/Slicer/Eval.hs
|
gpl-3.0
|
evalM (EArr e1 e2) = do r1 <- evalM' e1
r2 <- withExn r1 (evalM' e2)
case (r1,r2) of
(OExn v,_) -> return (OExn v)
(_,OExn v) -> return (OExn v)
(ORet (VInt i), ORet v) ->
do v' <- newArr (fromInteger i) v
return (ORet v')
_ -> return OHole
| 478
|
evalM (EArr e1 e2) = do r1 <- evalM' e1
r2 <- withExn r1 (evalM' e2)
case (r1,r2) of
(OExn v,_) -> return (OExn v)
(_,OExn v) -> return (OExn v)
(ORet (VInt i), ORet v) ->
do v' <- newArr (fromInteger i) v
return (ORet v')
_ -> return OHole
| 478
|
evalM (EArr e1 e2) = do r1 <- evalM' e1
r2 <- withExn r1 (evalM' e2)
case (r1,r2) of
(OExn v,_) -> return (OExn v)
(_,OExn v) -> return (OExn v)
(ORet (VInt i), ORet v) ->
do v' <- newArr (fromInteger i) v
return (ORet v')
_ -> return OHole
| 478
| false
| false
| 0
| 15
| 288
| 170
| 80
| 90
| null | null |
juodaspaulius/bclafer_old
|
src/Language/Clafer/Intermediate/ResolverName.hs
|
mit
|
isIEClafer _ = False
| 31
|
isIEClafer _ = False
| 31
|
isIEClafer _ = False
| 31
| false
| false
| 0
| 4
| 14
| 10
| 4
| 6
| null | null |
GrandArchTemplar/FunctionalProgramming
|
src/HW3.hs
|
mit
|
maximums :: [Integer] -> [Integer]
maximums [] = []
| 51
|
maximums :: [Integer] -> [Integer]
maximums [] = []
| 51
|
maximums [] = []
| 16
| false
| true
| 0
| 6
| 8
| 28
| 15
| 13
| null | null |
mpickering/core-kythe
|
src/KythePlugin.hs
|
bsd-3-clause
|
makeEntriesPath = makeModulePath "entries"
| 42
|
makeEntriesPath = makeModulePath "entries"
| 42
|
makeEntriesPath = makeModulePath "entries"
| 42
| false
| false
| 0
| 5
| 3
| 9
| 4
| 5
| null | null |
vincenthz/hs-foundation
|
foundation/tests/Test/Foundation/Encoding.hs
|
bsd-3-clause
|
sample0_UTF16 :: EncodedString
sample0_UTF16 = EncodedString UTF16 $ recast array
where
array :: UArray Word16
array = fromList
[ 0x0043, 0x0061, 0x006c, 0x006c, 0x0065, 0x0064, 0x0020, 0x0066
, 0x006f, 0x0072, 0x0074, 0x0068, 0x0020, 0x0074, 0x006f, 0x0020
, 0x0073, 0x0074, 0x0061, 0x006e, 0x0064, 0x0020, 0x0074, 0x0072
, 0x0069, 0x0061, 0x006c, 0x0020, 0x006f, 0x006e, 0x0020, 0x0054
, 0x0072, 0x0061, 0x006e, 0x0074, 0x006f, 0x0072, 0x0020, 0x0066
, 0x006f, 0x0072, 0x0020, 0x0061, 0x006c, 0x006c, 0x0065, 0x0067
, 0x0061, 0x0074, 0x0069, 0x006f, 0x006e, 0x0073, 0x0020, 0x006f
, 0x0066, 0x0020, 0x0074, 0x0072, 0x0065, 0x0061, 0x0073, 0x006f
, 0x006e, 0x0020, 0x0028, 0x0066, 0x006f, 0x0072, 0x000a, 0x0066
, 0x006f, 0x0072, 0x0065, 0x0073, 0x0068, 0x0061, 0x0064, 0x006f
, 0x0077, 0x0069, 0x006e, 0x0067, 0x0020, 0x0074, 0x0068, 0x0065
, 0x0020, 0x0064, 0x0065, 0x0063, 0x006c, 0x0069, 0x006e, 0x0065
, 0x0020, 0x006f, 0x0066, 0x0020, 0x0074, 0x0068, 0x0065, 0x0020
, 0x0047, 0x0061, 0x006c, 0x0061, 0x0063, 0x0074, 0x0069, 0x0063
, 0x0020, 0x0045, 0x006d, 0x0070, 0x0069, 0x0072, 0x0065, 0x0029
, 0x002c, 0x0020, 0x0053, 0x0065, 0x006c, 0x0064, 0x006f, 0x006e
, 0x0020, 0x0065, 0x0078, 0x0070, 0x006c, 0x0061, 0x0069, 0x006e
, 0x0073, 0x0020, 0x0074, 0x0068, 0x0061, 0x0074, 0x0020, 0x0068
, 0x0069, 0x0073, 0x000a, 0x0073, 0x0063, 0x0069, 0x0065, 0x006e
, 0x0063, 0x0065, 0x0020, 0x006f, 0x0066, 0x0020, 0x0070, 0x0073
, 0x0079, 0x0063, 0x0068, 0x006f, 0x0068, 0x0069, 0x0073, 0x0074
, 0x006f, 0x0072, 0x0079, 0x0020, 0x0066, 0x006f, 0x0072, 0x0065
, 0x0073, 0x0065, 0x0065, 0x0073, 0x0020, 0x006d, 0x0061, 0x006e
, 0x0079, 0x0020, 0x0061, 0x006c, 0x0074, 0x0065, 0x0072, 0x006e
, 0x0061, 0x0074, 0x0069, 0x0076, 0x0065, 0x0073, 0x002c, 0x0020
, 0x0061, 0x006c, 0x006c, 0x0020, 0x006f, 0x0066, 0x0020, 0x0077
, 0x0068, 0x0069, 0x0063, 0x0068, 0x0020, 0x0072, 0x0065, 0x0073
, 0x0075, 0x006c, 0x0074, 0x0020, 0x0069, 0x006e, 0x0020, 0x0074
, 0x0068, 0x0065, 0x000a, 0x0047, 0x0061, 0x006c, 0x0061, 0x0063
, 0x0074, 0x0069, 0x0063, 0x0020, 0x0045, 0x006d, 0x0070, 0x0069
, 0x0072, 0x0065, 0x0020, 0x0065, 0x0076, 0x0065, 0x006e, 0x0074
, 0x0075, 0x0061, 0x006c, 0x006c, 0x0079, 0x0020, 0x0066, 0x0061
, 0x006c, 0x006c, 0x0069, 0x006e, 0x0067, 0x002e, 0x0020, 0x0049
, 0x0066, 0x0020, 0x0068, 0x0075, 0x006d, 0x0061, 0x006e, 0x0069
, 0x0074, 0x0079, 0x0020, 0x0066, 0x006f, 0x006c, 0x006c, 0x006f
, 0x0077, 0x0073, 0x0020, 0x0069, 0x0074, 0x0073, 0x0020, 0x0063
, 0x0075, 0x0072, 0x0072, 0x0065, 0x006e, 0x0074, 0x0020, 0x0070
, 0x0061, 0x0074, 0x0068, 0x002c, 0x0020, 0x0074, 0x0068, 0x0065
, 0x000a, 0x0045, 0x006d, 0x0070, 0x0069, 0x0072, 0x0065, 0x0020
, 0x0077, 0x0069, 0x006c, 0x006c, 0x0020, 0x0066, 0x0061, 0x006c
, 0x006c, 0x0020, 0x0061, 0x006e, 0x0064, 0x0020, 0x0033, 0x0030
, 0x002c, 0x0030, 0x0030, 0x0030, 0x0020, 0x0079, 0x0065, 0x0061
, 0x0072, 0x0073, 0x0020, 0x006f, 0x0066, 0x0020, 0x0074, 0x0075
, 0x0072, 0x006d, 0x006f, 0x0069, 0x006c, 0x0020, 0x0077, 0x0069
, 0x006c, 0x006c, 0x0020, 0x006f, 0x0076, 0x0065, 0x0072, 0x0063
, 0x006f, 0x006d, 0x0065, 0x0020, 0x0068, 0x0075, 0x006d, 0x0061
, 0x006e, 0x0069, 0x0074, 0x0079, 0x0020, 0x0062, 0x0065, 0x0066
, 0x006f, 0x0072, 0x0065, 0x0020, 0x0061, 0x000a, 0x0073, 0x0065
, 0x0063, 0x006f, 0x006e, 0x0064, 0x0020, 0x0045, 0x006d, 0x0070
, 0x0069, 0x0072, 0x0065, 0x0020, 0x0061, 0x0072, 0x0069, 0x0073
, 0x0065, 0x0073, 0x002e, 0x0020, 0x0048, 0x006f, 0x0077, 0x0065
, 0x0076, 0x0065, 0x0072, 0x002c, 0x0020, 0x0061, 0x006e, 0x0020
, 0x0061, 0x006c, 0x0074, 0x0065, 0x0072, 0x006e, 0x0061, 0x0074
, 0x0069, 0x0076, 0x0065, 0x0020, 0x0070, 0x0061, 0x0074, 0x0068
, 0x0020, 0x0061, 0x006c, 0x006c, 0x006f, 0x0077, 0x0073, 0x0020
, 0x0066, 0x006f, 0x0072, 0x0020, 0x0074, 0x0068, 0x0065, 0x0020
, 0x0069, 0x006e, 0x0074, 0x0065, 0x0072, 0x0076, 0x0065, 0x006e
, 0x0069, 0x006e, 0x0067, 0x000a, 0x0079, 0x0065, 0x0061, 0x0072
, 0x0073, 0x0020, 0x0074, 0x006f, 0x0020, 0x0062, 0x0065, 0x0020
, 0x006f, 0x006e, 0x006c, 0x0079, 0x0020, 0x006f, 0x006e, 0x0065
, 0x0020, 0x0074, 0x0068, 0x006f, 0x0075, 0x0073, 0x0061, 0x006e
, 0x0064, 0x002c, 0x0020, 0x0069, 0x0066, 0x0020, 0x0053, 0x0065
, 0x006c, 0x0064, 0x006f, 0x006e, 0x0020, 0x0069, 0x0073, 0x0020
, 0x0061, 0x006c, 0x006c, 0x006f, 0x0077, 0x0065, 0x0064, 0x0020
, 0x0074, 0x006f, 0x0020, 0x0063, 0x006f, 0x006c, 0x006c, 0x0065
, 0x0063, 0x0074, 0x0020, 0x0074, 0x0068, 0x0065, 0x0020, 0x006d
, 0x006f, 0x0073, 0x0074, 0x000a, 0x0069, 0x006e, 0x0074, 0x0065
, 0x006c, 0x006c, 0x0069, 0x0067, 0x0065, 0x006e, 0x0074, 0x0020
, 0x006d, 0x0069, 0x006e, 0x0064, 0x0073, 0x0020, 0x0061, 0x006e
, 0x0064, 0x0020, 0x0063, 0x0072, 0x0065, 0x0061, 0x0074, 0x0065
, 0x0020, 0x0061, 0x0020, 0x0063, 0x006f, 0x006d, 0x0070, 0x0065
, 0x006e, 0x0064, 0x0069, 0x0075, 0x006d, 0x0020, 0x006f, 0x0066
, 0x0020, 0x0061, 0x006c, 0x006c, 0x0020, 0x0068, 0x0075, 0x006d
, 0x0061, 0x006e, 0x0020, 0x006b, 0x006e, 0x006f, 0x0077, 0x006c
, 0x0065, 0x0064, 0x0067, 0x0065, 0x002c, 0x0020, 0x0065, 0x006e
, 0x0074, 0x0069, 0x0074, 0x006c, 0x0065, 0x0064, 0x000a, 0x0045
, 0x006e, 0x0063, 0x0079, 0x0063, 0x006c, 0x006f, 0x0070, 0x0065
, 0x0064, 0x0069, 0x0061, 0x0020, 0x0047, 0x0061, 0x006c, 0x0061
, 0x0063, 0x0074, 0x0069, 0x0063, 0x0061, 0x002e, 0x0020, 0x0054
, 0x0068, 0x0065, 0x0020, 0x0062, 0x006f, 0x0061, 0x0072, 0x0064
, 0x0020, 0x0069, 0x0073, 0x0020, 0x0073, 0x0074, 0x0069, 0x006c
, 0x006c, 0x0020, 0x0077, 0x0061, 0x0072, 0x0079, 0x0020, 0x0062
, 0x0075, 0x0074, 0x0020, 0x0061, 0x006c, 0x006c, 0x006f, 0x0077
, 0x0073, 0x0020, 0x0053, 0x0065, 0x006c, 0x0064, 0x006f, 0x006e
, 0x0020, 0x0074, 0x006f, 0x0020, 0x0061, 0x0073, 0x0073, 0x0065
, 0x006d, 0x0062, 0x006c, 0x0065, 0x000a, 0x0077, 0x0068, 0x006f
, 0x006d, 0x0065, 0x0076, 0x0065, 0x0072, 0x0020, 0x0068, 0x0065
, 0x0020, 0x006e, 0x0065, 0x0065, 0x0064, 0x0073, 0x002c, 0x0020
, 0x0070, 0x0072, 0x006f, 0x0076, 0x0069, 0x0064, 0x0065, 0x0064
, 0x0020, 0x0068, 0x0065, 0x0020, 0x0061, 0x006e, 0x0064, 0x0020
, 0x0074, 0x0068, 0x0065, 0x0020, 0x0022, 0x0045, 0x006e, 0x0063
, 0x0079, 0x0063, 0x006c, 0x006f, 0x0070, 0x0065, 0x0064, 0x0069
, 0x0073, 0x0074, 0x0073, 0x0022, 0x0020, 0x0062, 0x0065, 0x0020
, 0x0065, 0x0078, 0x0069, 0x006c, 0x0065, 0x0064, 0x0020, 0x0074
, 0x006f, 0x0020, 0x0061, 0x0020, 0x0072, 0x0065, 0x006d, 0x006f
, 0x0074, 0x0065, 0x000a, 0x0070, 0x006c, 0x0061, 0x006e, 0x0065
, 0x0074, 0x002c, 0x0020, 0x0054, 0x0065, 0x0072, 0x006d, 0x0069
, 0x006e, 0x0075, 0x0073, 0x002e, 0x0020, 0x0053, 0x0065, 0x006c
, 0x0064, 0x006f, 0x006e, 0x0020, 0x0061, 0x0067, 0x0072, 0x0065
, 0x0065, 0x0073, 0x0020, 0x0074, 0x006f, 0x0020, 0x0073, 0x0065
, 0x0074, 0x0020, 0x0075, 0x0070, 0x0020, 0x0068, 0x0069, 0x0073
, 0x0020, 0x006f, 0x0077, 0x006e, 0x0020, 0x0063, 0x006f, 0x006c
, 0x006c, 0x0065, 0x0063, 0x0074, 0x0069, 0x006f, 0x006e, 0x0020
, 0x006f, 0x0066, 0x0020, 0x0045, 0x006e, 0x0063, 0x0079, 0x0063
, 0x006c, 0x006f, 0x0070, 0x0065, 0x0064, 0x0069, 0x0073, 0x0074
, 0x0073, 0x002c, 0x000a, 0x0061, 0x006e, 0x0064, 0x0020, 0x0061
, 0x006c, 0x0073, 0x006f, 0x0020, 0x0073, 0x0065, 0x0063, 0x0072
, 0x0065, 0x0074, 0x006c, 0x0079, 0x0020, 0x0069, 0x006d, 0x0070
, 0x006c, 0x0065, 0x006d, 0x0065, 0x006e, 0x0074, 0x0073, 0x0020
, 0x0061, 0x0020, 0x0063, 0x006f, 0x006e, 0x0074, 0x0069, 0x006e
, 0x0067, 0x0065, 0x006e, 0x0063, 0x0079, 0x0020, 0x0070, 0x006c
, 0x0061, 0x006e, 0x002d, 0x0061, 0x0020, 0x0073, 0x0065, 0x0063
, 0x006f, 0x006e, 0x0064, 0x0020, 0x0046, 0x006f, 0x0075, 0x006e
, 0x0064, 0x0061, 0x0074, 0x0069, 0x006f, 0x006e, 0x002d, 0x0061
, 0x0074, 0x0020, 0x0074, 0x0068, 0x0065, 0x000a, 0x0022, 0x006f
, 0x0070, 0x0070, 0x006f, 0x0073, 0x0069, 0x0074, 0x0065, 0x0020
, 0x0065, 0x006e, 0x0064, 0x0022, 0x0020, 0x006f, 0x0066, 0x0020
, 0x0074, 0x0068, 0x0065, 0x0020, 0x0067, 0x0061, 0x006c, 0x0061
, 0x0078, 0x0079, 0x002e, 0x000a
]
| 8,562
|
sample0_UTF16 :: EncodedString
sample0_UTF16 = EncodedString UTF16 $ recast array
where
array :: UArray Word16
array = fromList
[ 0x0043, 0x0061, 0x006c, 0x006c, 0x0065, 0x0064, 0x0020, 0x0066
, 0x006f, 0x0072, 0x0074, 0x0068, 0x0020, 0x0074, 0x006f, 0x0020
, 0x0073, 0x0074, 0x0061, 0x006e, 0x0064, 0x0020, 0x0074, 0x0072
, 0x0069, 0x0061, 0x006c, 0x0020, 0x006f, 0x006e, 0x0020, 0x0054
, 0x0072, 0x0061, 0x006e, 0x0074, 0x006f, 0x0072, 0x0020, 0x0066
, 0x006f, 0x0072, 0x0020, 0x0061, 0x006c, 0x006c, 0x0065, 0x0067
, 0x0061, 0x0074, 0x0069, 0x006f, 0x006e, 0x0073, 0x0020, 0x006f
, 0x0066, 0x0020, 0x0074, 0x0072, 0x0065, 0x0061, 0x0073, 0x006f
, 0x006e, 0x0020, 0x0028, 0x0066, 0x006f, 0x0072, 0x000a, 0x0066
, 0x006f, 0x0072, 0x0065, 0x0073, 0x0068, 0x0061, 0x0064, 0x006f
, 0x0077, 0x0069, 0x006e, 0x0067, 0x0020, 0x0074, 0x0068, 0x0065
, 0x0020, 0x0064, 0x0065, 0x0063, 0x006c, 0x0069, 0x006e, 0x0065
, 0x0020, 0x006f, 0x0066, 0x0020, 0x0074, 0x0068, 0x0065, 0x0020
, 0x0047, 0x0061, 0x006c, 0x0061, 0x0063, 0x0074, 0x0069, 0x0063
, 0x0020, 0x0045, 0x006d, 0x0070, 0x0069, 0x0072, 0x0065, 0x0029
, 0x002c, 0x0020, 0x0053, 0x0065, 0x006c, 0x0064, 0x006f, 0x006e
, 0x0020, 0x0065, 0x0078, 0x0070, 0x006c, 0x0061, 0x0069, 0x006e
, 0x0073, 0x0020, 0x0074, 0x0068, 0x0061, 0x0074, 0x0020, 0x0068
, 0x0069, 0x0073, 0x000a, 0x0073, 0x0063, 0x0069, 0x0065, 0x006e
, 0x0063, 0x0065, 0x0020, 0x006f, 0x0066, 0x0020, 0x0070, 0x0073
, 0x0079, 0x0063, 0x0068, 0x006f, 0x0068, 0x0069, 0x0073, 0x0074
, 0x006f, 0x0072, 0x0079, 0x0020, 0x0066, 0x006f, 0x0072, 0x0065
, 0x0073, 0x0065, 0x0065, 0x0073, 0x0020, 0x006d, 0x0061, 0x006e
, 0x0079, 0x0020, 0x0061, 0x006c, 0x0074, 0x0065, 0x0072, 0x006e
, 0x0061, 0x0074, 0x0069, 0x0076, 0x0065, 0x0073, 0x002c, 0x0020
, 0x0061, 0x006c, 0x006c, 0x0020, 0x006f, 0x0066, 0x0020, 0x0077
, 0x0068, 0x0069, 0x0063, 0x0068, 0x0020, 0x0072, 0x0065, 0x0073
, 0x0075, 0x006c, 0x0074, 0x0020, 0x0069, 0x006e, 0x0020, 0x0074
, 0x0068, 0x0065, 0x000a, 0x0047, 0x0061, 0x006c, 0x0061, 0x0063
, 0x0074, 0x0069, 0x0063, 0x0020, 0x0045, 0x006d, 0x0070, 0x0069
, 0x0072, 0x0065, 0x0020, 0x0065, 0x0076, 0x0065, 0x006e, 0x0074
, 0x0075, 0x0061, 0x006c, 0x006c, 0x0079, 0x0020, 0x0066, 0x0061
, 0x006c, 0x006c, 0x0069, 0x006e, 0x0067, 0x002e, 0x0020, 0x0049
, 0x0066, 0x0020, 0x0068, 0x0075, 0x006d, 0x0061, 0x006e, 0x0069
, 0x0074, 0x0079, 0x0020, 0x0066, 0x006f, 0x006c, 0x006c, 0x006f
, 0x0077, 0x0073, 0x0020, 0x0069, 0x0074, 0x0073, 0x0020, 0x0063
, 0x0075, 0x0072, 0x0072, 0x0065, 0x006e, 0x0074, 0x0020, 0x0070
, 0x0061, 0x0074, 0x0068, 0x002c, 0x0020, 0x0074, 0x0068, 0x0065
, 0x000a, 0x0045, 0x006d, 0x0070, 0x0069, 0x0072, 0x0065, 0x0020
, 0x0077, 0x0069, 0x006c, 0x006c, 0x0020, 0x0066, 0x0061, 0x006c
, 0x006c, 0x0020, 0x0061, 0x006e, 0x0064, 0x0020, 0x0033, 0x0030
, 0x002c, 0x0030, 0x0030, 0x0030, 0x0020, 0x0079, 0x0065, 0x0061
, 0x0072, 0x0073, 0x0020, 0x006f, 0x0066, 0x0020, 0x0074, 0x0075
, 0x0072, 0x006d, 0x006f, 0x0069, 0x006c, 0x0020, 0x0077, 0x0069
, 0x006c, 0x006c, 0x0020, 0x006f, 0x0076, 0x0065, 0x0072, 0x0063
, 0x006f, 0x006d, 0x0065, 0x0020, 0x0068, 0x0075, 0x006d, 0x0061
, 0x006e, 0x0069, 0x0074, 0x0079, 0x0020, 0x0062, 0x0065, 0x0066
, 0x006f, 0x0072, 0x0065, 0x0020, 0x0061, 0x000a, 0x0073, 0x0065
, 0x0063, 0x006f, 0x006e, 0x0064, 0x0020, 0x0045, 0x006d, 0x0070
, 0x0069, 0x0072, 0x0065, 0x0020, 0x0061, 0x0072, 0x0069, 0x0073
, 0x0065, 0x0073, 0x002e, 0x0020, 0x0048, 0x006f, 0x0077, 0x0065
, 0x0076, 0x0065, 0x0072, 0x002c, 0x0020, 0x0061, 0x006e, 0x0020
, 0x0061, 0x006c, 0x0074, 0x0065, 0x0072, 0x006e, 0x0061, 0x0074
, 0x0069, 0x0076, 0x0065, 0x0020, 0x0070, 0x0061, 0x0074, 0x0068
, 0x0020, 0x0061, 0x006c, 0x006c, 0x006f, 0x0077, 0x0073, 0x0020
, 0x0066, 0x006f, 0x0072, 0x0020, 0x0074, 0x0068, 0x0065, 0x0020
, 0x0069, 0x006e, 0x0074, 0x0065, 0x0072, 0x0076, 0x0065, 0x006e
, 0x0069, 0x006e, 0x0067, 0x000a, 0x0079, 0x0065, 0x0061, 0x0072
, 0x0073, 0x0020, 0x0074, 0x006f, 0x0020, 0x0062, 0x0065, 0x0020
, 0x006f, 0x006e, 0x006c, 0x0079, 0x0020, 0x006f, 0x006e, 0x0065
, 0x0020, 0x0074, 0x0068, 0x006f, 0x0075, 0x0073, 0x0061, 0x006e
, 0x0064, 0x002c, 0x0020, 0x0069, 0x0066, 0x0020, 0x0053, 0x0065
, 0x006c, 0x0064, 0x006f, 0x006e, 0x0020, 0x0069, 0x0073, 0x0020
, 0x0061, 0x006c, 0x006c, 0x006f, 0x0077, 0x0065, 0x0064, 0x0020
, 0x0074, 0x006f, 0x0020, 0x0063, 0x006f, 0x006c, 0x006c, 0x0065
, 0x0063, 0x0074, 0x0020, 0x0074, 0x0068, 0x0065, 0x0020, 0x006d
, 0x006f, 0x0073, 0x0074, 0x000a, 0x0069, 0x006e, 0x0074, 0x0065
, 0x006c, 0x006c, 0x0069, 0x0067, 0x0065, 0x006e, 0x0074, 0x0020
, 0x006d, 0x0069, 0x006e, 0x0064, 0x0073, 0x0020, 0x0061, 0x006e
, 0x0064, 0x0020, 0x0063, 0x0072, 0x0065, 0x0061, 0x0074, 0x0065
, 0x0020, 0x0061, 0x0020, 0x0063, 0x006f, 0x006d, 0x0070, 0x0065
, 0x006e, 0x0064, 0x0069, 0x0075, 0x006d, 0x0020, 0x006f, 0x0066
, 0x0020, 0x0061, 0x006c, 0x006c, 0x0020, 0x0068, 0x0075, 0x006d
, 0x0061, 0x006e, 0x0020, 0x006b, 0x006e, 0x006f, 0x0077, 0x006c
, 0x0065, 0x0064, 0x0067, 0x0065, 0x002c, 0x0020, 0x0065, 0x006e
, 0x0074, 0x0069, 0x0074, 0x006c, 0x0065, 0x0064, 0x000a, 0x0045
, 0x006e, 0x0063, 0x0079, 0x0063, 0x006c, 0x006f, 0x0070, 0x0065
, 0x0064, 0x0069, 0x0061, 0x0020, 0x0047, 0x0061, 0x006c, 0x0061
, 0x0063, 0x0074, 0x0069, 0x0063, 0x0061, 0x002e, 0x0020, 0x0054
, 0x0068, 0x0065, 0x0020, 0x0062, 0x006f, 0x0061, 0x0072, 0x0064
, 0x0020, 0x0069, 0x0073, 0x0020, 0x0073, 0x0074, 0x0069, 0x006c
, 0x006c, 0x0020, 0x0077, 0x0061, 0x0072, 0x0079, 0x0020, 0x0062
, 0x0075, 0x0074, 0x0020, 0x0061, 0x006c, 0x006c, 0x006f, 0x0077
, 0x0073, 0x0020, 0x0053, 0x0065, 0x006c, 0x0064, 0x006f, 0x006e
, 0x0020, 0x0074, 0x006f, 0x0020, 0x0061, 0x0073, 0x0073, 0x0065
, 0x006d, 0x0062, 0x006c, 0x0065, 0x000a, 0x0077, 0x0068, 0x006f
, 0x006d, 0x0065, 0x0076, 0x0065, 0x0072, 0x0020, 0x0068, 0x0065
, 0x0020, 0x006e, 0x0065, 0x0065, 0x0064, 0x0073, 0x002c, 0x0020
, 0x0070, 0x0072, 0x006f, 0x0076, 0x0069, 0x0064, 0x0065, 0x0064
, 0x0020, 0x0068, 0x0065, 0x0020, 0x0061, 0x006e, 0x0064, 0x0020
, 0x0074, 0x0068, 0x0065, 0x0020, 0x0022, 0x0045, 0x006e, 0x0063
, 0x0079, 0x0063, 0x006c, 0x006f, 0x0070, 0x0065, 0x0064, 0x0069
, 0x0073, 0x0074, 0x0073, 0x0022, 0x0020, 0x0062, 0x0065, 0x0020
, 0x0065, 0x0078, 0x0069, 0x006c, 0x0065, 0x0064, 0x0020, 0x0074
, 0x006f, 0x0020, 0x0061, 0x0020, 0x0072, 0x0065, 0x006d, 0x006f
, 0x0074, 0x0065, 0x000a, 0x0070, 0x006c, 0x0061, 0x006e, 0x0065
, 0x0074, 0x002c, 0x0020, 0x0054, 0x0065, 0x0072, 0x006d, 0x0069
, 0x006e, 0x0075, 0x0073, 0x002e, 0x0020, 0x0053, 0x0065, 0x006c
, 0x0064, 0x006f, 0x006e, 0x0020, 0x0061, 0x0067, 0x0072, 0x0065
, 0x0065, 0x0073, 0x0020, 0x0074, 0x006f, 0x0020, 0x0073, 0x0065
, 0x0074, 0x0020, 0x0075, 0x0070, 0x0020, 0x0068, 0x0069, 0x0073
, 0x0020, 0x006f, 0x0077, 0x006e, 0x0020, 0x0063, 0x006f, 0x006c
, 0x006c, 0x0065, 0x0063, 0x0074, 0x0069, 0x006f, 0x006e, 0x0020
, 0x006f, 0x0066, 0x0020, 0x0045, 0x006e, 0x0063, 0x0079, 0x0063
, 0x006c, 0x006f, 0x0070, 0x0065, 0x0064, 0x0069, 0x0073, 0x0074
, 0x0073, 0x002c, 0x000a, 0x0061, 0x006e, 0x0064, 0x0020, 0x0061
, 0x006c, 0x0073, 0x006f, 0x0020, 0x0073, 0x0065, 0x0063, 0x0072
, 0x0065, 0x0074, 0x006c, 0x0079, 0x0020, 0x0069, 0x006d, 0x0070
, 0x006c, 0x0065, 0x006d, 0x0065, 0x006e, 0x0074, 0x0073, 0x0020
, 0x0061, 0x0020, 0x0063, 0x006f, 0x006e, 0x0074, 0x0069, 0x006e
, 0x0067, 0x0065, 0x006e, 0x0063, 0x0079, 0x0020, 0x0070, 0x006c
, 0x0061, 0x006e, 0x002d, 0x0061, 0x0020, 0x0073, 0x0065, 0x0063
, 0x006f, 0x006e, 0x0064, 0x0020, 0x0046, 0x006f, 0x0075, 0x006e
, 0x0064, 0x0061, 0x0074, 0x0069, 0x006f, 0x006e, 0x002d, 0x0061
, 0x0074, 0x0020, 0x0074, 0x0068, 0x0065, 0x000a, 0x0022, 0x006f
, 0x0070, 0x0070, 0x006f, 0x0073, 0x0069, 0x0074, 0x0065, 0x0020
, 0x0065, 0x006e, 0x0064, 0x0022, 0x0020, 0x006f, 0x0066, 0x0020
, 0x0074, 0x0068, 0x0065, 0x0020, 0x0067, 0x0061, 0x006c, 0x0061
, 0x0078, 0x0079, 0x002e, 0x000a
]
| 8,562
|
sample0_UTF16 = EncodedString UTF16 $ recast array
where
array :: UArray Word16
array = fromList
[ 0x0043, 0x0061, 0x006c, 0x006c, 0x0065, 0x0064, 0x0020, 0x0066
, 0x006f, 0x0072, 0x0074, 0x0068, 0x0020, 0x0074, 0x006f, 0x0020
, 0x0073, 0x0074, 0x0061, 0x006e, 0x0064, 0x0020, 0x0074, 0x0072
, 0x0069, 0x0061, 0x006c, 0x0020, 0x006f, 0x006e, 0x0020, 0x0054
, 0x0072, 0x0061, 0x006e, 0x0074, 0x006f, 0x0072, 0x0020, 0x0066
, 0x006f, 0x0072, 0x0020, 0x0061, 0x006c, 0x006c, 0x0065, 0x0067
, 0x0061, 0x0074, 0x0069, 0x006f, 0x006e, 0x0073, 0x0020, 0x006f
, 0x0066, 0x0020, 0x0074, 0x0072, 0x0065, 0x0061, 0x0073, 0x006f
, 0x006e, 0x0020, 0x0028, 0x0066, 0x006f, 0x0072, 0x000a, 0x0066
, 0x006f, 0x0072, 0x0065, 0x0073, 0x0068, 0x0061, 0x0064, 0x006f
, 0x0077, 0x0069, 0x006e, 0x0067, 0x0020, 0x0074, 0x0068, 0x0065
, 0x0020, 0x0064, 0x0065, 0x0063, 0x006c, 0x0069, 0x006e, 0x0065
, 0x0020, 0x006f, 0x0066, 0x0020, 0x0074, 0x0068, 0x0065, 0x0020
, 0x0047, 0x0061, 0x006c, 0x0061, 0x0063, 0x0074, 0x0069, 0x0063
, 0x0020, 0x0045, 0x006d, 0x0070, 0x0069, 0x0072, 0x0065, 0x0029
, 0x002c, 0x0020, 0x0053, 0x0065, 0x006c, 0x0064, 0x006f, 0x006e
, 0x0020, 0x0065, 0x0078, 0x0070, 0x006c, 0x0061, 0x0069, 0x006e
, 0x0073, 0x0020, 0x0074, 0x0068, 0x0061, 0x0074, 0x0020, 0x0068
, 0x0069, 0x0073, 0x000a, 0x0073, 0x0063, 0x0069, 0x0065, 0x006e
, 0x0063, 0x0065, 0x0020, 0x006f, 0x0066, 0x0020, 0x0070, 0x0073
, 0x0079, 0x0063, 0x0068, 0x006f, 0x0068, 0x0069, 0x0073, 0x0074
, 0x006f, 0x0072, 0x0079, 0x0020, 0x0066, 0x006f, 0x0072, 0x0065
, 0x0073, 0x0065, 0x0065, 0x0073, 0x0020, 0x006d, 0x0061, 0x006e
, 0x0079, 0x0020, 0x0061, 0x006c, 0x0074, 0x0065, 0x0072, 0x006e
, 0x0061, 0x0074, 0x0069, 0x0076, 0x0065, 0x0073, 0x002c, 0x0020
, 0x0061, 0x006c, 0x006c, 0x0020, 0x006f, 0x0066, 0x0020, 0x0077
, 0x0068, 0x0069, 0x0063, 0x0068, 0x0020, 0x0072, 0x0065, 0x0073
, 0x0075, 0x006c, 0x0074, 0x0020, 0x0069, 0x006e, 0x0020, 0x0074
, 0x0068, 0x0065, 0x000a, 0x0047, 0x0061, 0x006c, 0x0061, 0x0063
, 0x0074, 0x0069, 0x0063, 0x0020, 0x0045, 0x006d, 0x0070, 0x0069
, 0x0072, 0x0065, 0x0020, 0x0065, 0x0076, 0x0065, 0x006e, 0x0074
, 0x0075, 0x0061, 0x006c, 0x006c, 0x0079, 0x0020, 0x0066, 0x0061
, 0x006c, 0x006c, 0x0069, 0x006e, 0x0067, 0x002e, 0x0020, 0x0049
, 0x0066, 0x0020, 0x0068, 0x0075, 0x006d, 0x0061, 0x006e, 0x0069
, 0x0074, 0x0079, 0x0020, 0x0066, 0x006f, 0x006c, 0x006c, 0x006f
, 0x0077, 0x0073, 0x0020, 0x0069, 0x0074, 0x0073, 0x0020, 0x0063
, 0x0075, 0x0072, 0x0072, 0x0065, 0x006e, 0x0074, 0x0020, 0x0070
, 0x0061, 0x0074, 0x0068, 0x002c, 0x0020, 0x0074, 0x0068, 0x0065
, 0x000a, 0x0045, 0x006d, 0x0070, 0x0069, 0x0072, 0x0065, 0x0020
, 0x0077, 0x0069, 0x006c, 0x006c, 0x0020, 0x0066, 0x0061, 0x006c
, 0x006c, 0x0020, 0x0061, 0x006e, 0x0064, 0x0020, 0x0033, 0x0030
, 0x002c, 0x0030, 0x0030, 0x0030, 0x0020, 0x0079, 0x0065, 0x0061
, 0x0072, 0x0073, 0x0020, 0x006f, 0x0066, 0x0020, 0x0074, 0x0075
, 0x0072, 0x006d, 0x006f, 0x0069, 0x006c, 0x0020, 0x0077, 0x0069
, 0x006c, 0x006c, 0x0020, 0x006f, 0x0076, 0x0065, 0x0072, 0x0063
, 0x006f, 0x006d, 0x0065, 0x0020, 0x0068, 0x0075, 0x006d, 0x0061
, 0x006e, 0x0069, 0x0074, 0x0079, 0x0020, 0x0062, 0x0065, 0x0066
, 0x006f, 0x0072, 0x0065, 0x0020, 0x0061, 0x000a, 0x0073, 0x0065
, 0x0063, 0x006f, 0x006e, 0x0064, 0x0020, 0x0045, 0x006d, 0x0070
, 0x0069, 0x0072, 0x0065, 0x0020, 0x0061, 0x0072, 0x0069, 0x0073
, 0x0065, 0x0073, 0x002e, 0x0020, 0x0048, 0x006f, 0x0077, 0x0065
, 0x0076, 0x0065, 0x0072, 0x002c, 0x0020, 0x0061, 0x006e, 0x0020
, 0x0061, 0x006c, 0x0074, 0x0065, 0x0072, 0x006e, 0x0061, 0x0074
, 0x0069, 0x0076, 0x0065, 0x0020, 0x0070, 0x0061, 0x0074, 0x0068
, 0x0020, 0x0061, 0x006c, 0x006c, 0x006f, 0x0077, 0x0073, 0x0020
, 0x0066, 0x006f, 0x0072, 0x0020, 0x0074, 0x0068, 0x0065, 0x0020
, 0x0069, 0x006e, 0x0074, 0x0065, 0x0072, 0x0076, 0x0065, 0x006e
, 0x0069, 0x006e, 0x0067, 0x000a, 0x0079, 0x0065, 0x0061, 0x0072
, 0x0073, 0x0020, 0x0074, 0x006f, 0x0020, 0x0062, 0x0065, 0x0020
, 0x006f, 0x006e, 0x006c, 0x0079, 0x0020, 0x006f, 0x006e, 0x0065
, 0x0020, 0x0074, 0x0068, 0x006f, 0x0075, 0x0073, 0x0061, 0x006e
, 0x0064, 0x002c, 0x0020, 0x0069, 0x0066, 0x0020, 0x0053, 0x0065
, 0x006c, 0x0064, 0x006f, 0x006e, 0x0020, 0x0069, 0x0073, 0x0020
, 0x0061, 0x006c, 0x006c, 0x006f, 0x0077, 0x0065, 0x0064, 0x0020
, 0x0074, 0x006f, 0x0020, 0x0063, 0x006f, 0x006c, 0x006c, 0x0065
, 0x0063, 0x0074, 0x0020, 0x0074, 0x0068, 0x0065, 0x0020, 0x006d
, 0x006f, 0x0073, 0x0074, 0x000a, 0x0069, 0x006e, 0x0074, 0x0065
, 0x006c, 0x006c, 0x0069, 0x0067, 0x0065, 0x006e, 0x0074, 0x0020
, 0x006d, 0x0069, 0x006e, 0x0064, 0x0073, 0x0020, 0x0061, 0x006e
, 0x0064, 0x0020, 0x0063, 0x0072, 0x0065, 0x0061, 0x0074, 0x0065
, 0x0020, 0x0061, 0x0020, 0x0063, 0x006f, 0x006d, 0x0070, 0x0065
, 0x006e, 0x0064, 0x0069, 0x0075, 0x006d, 0x0020, 0x006f, 0x0066
, 0x0020, 0x0061, 0x006c, 0x006c, 0x0020, 0x0068, 0x0075, 0x006d
, 0x0061, 0x006e, 0x0020, 0x006b, 0x006e, 0x006f, 0x0077, 0x006c
, 0x0065, 0x0064, 0x0067, 0x0065, 0x002c, 0x0020, 0x0065, 0x006e
, 0x0074, 0x0069, 0x0074, 0x006c, 0x0065, 0x0064, 0x000a, 0x0045
, 0x006e, 0x0063, 0x0079, 0x0063, 0x006c, 0x006f, 0x0070, 0x0065
, 0x0064, 0x0069, 0x0061, 0x0020, 0x0047, 0x0061, 0x006c, 0x0061
, 0x0063, 0x0074, 0x0069, 0x0063, 0x0061, 0x002e, 0x0020, 0x0054
, 0x0068, 0x0065, 0x0020, 0x0062, 0x006f, 0x0061, 0x0072, 0x0064
, 0x0020, 0x0069, 0x0073, 0x0020, 0x0073, 0x0074, 0x0069, 0x006c
, 0x006c, 0x0020, 0x0077, 0x0061, 0x0072, 0x0079, 0x0020, 0x0062
, 0x0075, 0x0074, 0x0020, 0x0061, 0x006c, 0x006c, 0x006f, 0x0077
, 0x0073, 0x0020, 0x0053, 0x0065, 0x006c, 0x0064, 0x006f, 0x006e
, 0x0020, 0x0074, 0x006f, 0x0020, 0x0061, 0x0073, 0x0073, 0x0065
, 0x006d, 0x0062, 0x006c, 0x0065, 0x000a, 0x0077, 0x0068, 0x006f
, 0x006d, 0x0065, 0x0076, 0x0065, 0x0072, 0x0020, 0x0068, 0x0065
, 0x0020, 0x006e, 0x0065, 0x0065, 0x0064, 0x0073, 0x002c, 0x0020
, 0x0070, 0x0072, 0x006f, 0x0076, 0x0069, 0x0064, 0x0065, 0x0064
, 0x0020, 0x0068, 0x0065, 0x0020, 0x0061, 0x006e, 0x0064, 0x0020
, 0x0074, 0x0068, 0x0065, 0x0020, 0x0022, 0x0045, 0x006e, 0x0063
, 0x0079, 0x0063, 0x006c, 0x006f, 0x0070, 0x0065, 0x0064, 0x0069
, 0x0073, 0x0074, 0x0073, 0x0022, 0x0020, 0x0062, 0x0065, 0x0020
, 0x0065, 0x0078, 0x0069, 0x006c, 0x0065, 0x0064, 0x0020, 0x0074
, 0x006f, 0x0020, 0x0061, 0x0020, 0x0072, 0x0065, 0x006d, 0x006f
, 0x0074, 0x0065, 0x000a, 0x0070, 0x006c, 0x0061, 0x006e, 0x0065
, 0x0074, 0x002c, 0x0020, 0x0054, 0x0065, 0x0072, 0x006d, 0x0069
, 0x006e, 0x0075, 0x0073, 0x002e, 0x0020, 0x0053, 0x0065, 0x006c
, 0x0064, 0x006f, 0x006e, 0x0020, 0x0061, 0x0067, 0x0072, 0x0065
, 0x0065, 0x0073, 0x0020, 0x0074, 0x006f, 0x0020, 0x0073, 0x0065
, 0x0074, 0x0020, 0x0075, 0x0070, 0x0020, 0x0068, 0x0069, 0x0073
, 0x0020, 0x006f, 0x0077, 0x006e, 0x0020, 0x0063, 0x006f, 0x006c
, 0x006c, 0x0065, 0x0063, 0x0074, 0x0069, 0x006f, 0x006e, 0x0020
, 0x006f, 0x0066, 0x0020, 0x0045, 0x006e, 0x0063, 0x0079, 0x0063
, 0x006c, 0x006f, 0x0070, 0x0065, 0x0064, 0x0069, 0x0073, 0x0074
, 0x0073, 0x002c, 0x000a, 0x0061, 0x006e, 0x0064, 0x0020, 0x0061
, 0x006c, 0x0073, 0x006f, 0x0020, 0x0073, 0x0065, 0x0063, 0x0072
, 0x0065, 0x0074, 0x006c, 0x0079, 0x0020, 0x0069, 0x006d, 0x0070
, 0x006c, 0x0065, 0x006d, 0x0065, 0x006e, 0x0074, 0x0073, 0x0020
, 0x0061, 0x0020, 0x0063, 0x006f, 0x006e, 0x0074, 0x0069, 0x006e
, 0x0067, 0x0065, 0x006e, 0x0063, 0x0079, 0x0020, 0x0070, 0x006c
, 0x0061, 0x006e, 0x002d, 0x0061, 0x0020, 0x0073, 0x0065, 0x0063
, 0x006f, 0x006e, 0x0064, 0x0020, 0x0046, 0x006f, 0x0075, 0x006e
, 0x0064, 0x0061, 0x0074, 0x0069, 0x006f, 0x006e, 0x002d, 0x0061
, 0x0074, 0x0020, 0x0074, 0x0068, 0x0065, 0x000a, 0x0022, 0x006f
, 0x0070, 0x0070, 0x006f, 0x0073, 0x0069, 0x0074, 0x0065, 0x0020
, 0x0065, 0x006e, 0x0064, 0x0022, 0x0020, 0x006f, 0x0066, 0x0020
, 0x0074, 0x0068, 0x0065, 0x0020, 0x0067, 0x0061, 0x006c, 0x0061
, 0x0078, 0x0079, 0x002e, 0x000a
]
| 8,531
| false
| true
| 1
| 6
| 1,815
| 2,884
| 1,915
| 969
| null | null |
iu-parfunc/AutoObsidian
|
Applications/Mandel/FractalsMain2.hs
|
bsd-3-clause
|
count = 10
| 14
|
count = 10
| 14
|
count = 10
| 14
| false
| false
| 1
| 5
| 6
| 10
| 3
| 7
| null | null |
brendanhay/gogol
|
gogol-redis/gen/Network/Google/Resource/Redis/Projects/Locations/Instances/Import.hs
|
mpl-2.0
|
-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
pliiUploadType :: Lens' ProjectsLocationsInstancesImport (Maybe Text)
pliiUploadType
= lens _pliiUploadType
(\ s a -> s{_pliiUploadType = a})
| 220
|
pliiUploadType :: Lens' ProjectsLocationsInstancesImport (Maybe Text)
pliiUploadType
= lens _pliiUploadType
(\ s a -> s{_pliiUploadType = a})
| 149
|
pliiUploadType
= lens _pliiUploadType
(\ s a -> s{_pliiUploadType = a})
| 79
| true
| true
| 0
| 9
| 34
| 48
| 25
| 23
| null | null |
apyrgio/snf-ganeti
|
src/Ganeti/Constants.hs
|
bsd-2-clause
|
autoRepairFixStorage :: String
autoRepairFixStorage = Types.autoRepairTypeToRaw ArFixStorage
| 92
|
autoRepairFixStorage :: String
autoRepairFixStorage = Types.autoRepairTypeToRaw ArFixStorage
| 92
|
autoRepairFixStorage = Types.autoRepairTypeToRaw ArFixStorage
| 61
| false
| true
| 0
| 6
| 6
| 16
| 8
| 8
| null | null |
Proclivis/wxHaskell
|
wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs
|
lgpl-2.1
|
wxLANGUAGE_ARABIC_BAHRAIN :: Int
wxLANGUAGE_ARABIC_BAHRAIN = 9
| 62
|
wxLANGUAGE_ARABIC_BAHRAIN :: Int
wxLANGUAGE_ARABIC_BAHRAIN = 9
| 62
|
wxLANGUAGE_ARABIC_BAHRAIN = 9
| 29
| false
| true
| 0
| 4
| 5
| 11
| 6
| 5
| null | null |
ntenczar/PitcherClusterViz
|
Player.hs
|
mit
|
fcComp :: Player -> Player -> Double
fcComp p1 p2 = sq $ (fc p1) - (fc p2)
| 74
|
fcComp :: Player -> Player -> Double
fcComp p1 p2 = sq $ (fc p1) - (fc p2)
| 74
|
fcComp p1 p2 = sq $ (fc p1) - (fc p2)
| 37
| false
| true
| 0
| 8
| 17
| 50
| 23
| 27
| null | null |
DaMSL/K3
|
src/Language/K3/Codegen/Haskell.hs
|
apache-2.0
|
expression :: K3 Expression -> CodeGeneration HaskellEmbedding
expression e = expression' e >>= return . HExpression . getHSExp
| 127
|
expression :: K3 Expression -> CodeGeneration HaskellEmbedding
expression e = expression' e >>= return . HExpression . getHSExp
| 127
|
expression e = expression' e >>= return . HExpression . getHSExp
| 64
| false
| true
| 0
| 8
| 17
| 39
| 18
| 21
| null | null |
tolysz/Haxl
|
Haxl/Core/Monad.hs
|
bsd-3-clause
|
-- | Inserts a request/result pair into the cache. Throws an exception
-- if the request has already been issued, either via 'dataFetch' or
-- 'cacheRequest'.
--
-- This can be used to pre-populate the cache when running tests, to
-- avoid going to the actual data source and ensure that results are
-- deterministic.
--
cacheRequest
:: (Request req a) => req a -> Either SomeException a -> GenHaxl u ()
cacheRequest request result = GenHaxl $ \env _ref -> do
res <- cached env request
case res of
Uncached rvar -> do
-- request was not in the cache: insert the result and continue
putResult rvar result
return $ Done ()
-- It is an error if the request is already in the cache. We can't test
-- whether the cached result is the same without adding an Eq constraint,
-- and we don't necessarily have Eq for all results.
_other -> raise $
DataSourceError "cacheRequest: request is already in the cache"
| 953
|
cacheRequest
:: (Request req a) => req a -> Either SomeException a -> GenHaxl u ()
cacheRequest request result = GenHaxl $ \env _ref -> do
res <- cached env request
case res of
Uncached rvar -> do
-- request was not in the cache: insert the result and continue
putResult rvar result
return $ Done ()
-- It is an error if the request is already in the cache. We can't test
-- whether the cached result is the same without adding an Eq constraint,
-- and we don't necessarily have Eq for all results.
_other -> raise $
DataSourceError "cacheRequest: request is already in the cache"
| 632
|
cacheRequest request result = GenHaxl $ \env _ref -> do
res <- cached env request
case res of
Uncached rvar -> do
-- request was not in the cache: insert the result and continue
putResult rvar result
return $ Done ()
-- It is an error if the request is already in the cache. We can't test
-- whether the cached result is the same without adding an Eq constraint,
-- and we don't necessarily have Eq for all results.
_other -> raise $
DataSourceError "cacheRequest: request is already in the cache"
| 547
| true
| true
| 0
| 17
| 215
| 138
| 69
| 69
| null | null |
tidalcycles/tidal-midi
|
Sound/Tidal/MIDI/GMPerc.hs
|
gpl-3.0
|
percN "ohc" = 63
| 16
|
percN "ohc" = 63
| 16
|
percN "ohc" = 63
| 16
| false
| false
| 0
| 5
| 3
| 9
| 4
| 5
| null | null |
julmue/UntypedLambda
|
exec/Main.hs
|
bsd-3-clause
|
output :: Output -> IO ()
output (Output out err) = do
op stderr err
op stdout out
where
op h (Just s) = hPutStrLn h s
op _ Nothing = return ()
| 161
|
output :: Output -> IO ()
output (Output out err) = do
op stderr err
op stdout out
where
op h (Just s) = hPutStrLn h s
op _ Nothing = return ()
| 161
|
output (Output out err) = do
op stderr err
op stdout out
where
op h (Just s) = hPutStrLn h s
op _ Nothing = return ()
| 135
| false
| true
| 0
| 7
| 50
| 86
| 39
| 47
| null | null |
nicolashery/example-marvel-haskell
|
Services/Marvel.hs
|
mit
|
mockFeaturedCharacters :: [FeaturedCharacter]
mockFeaturedCharacters =
[ FCh.FeaturedCharacter
{ FCh.id=1009610
, FCh.name="Spider-Man"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/3/50/526548a343e4b"
, I.extension="jpg"
}
}
, FCh.FeaturedCharacter
{ FCh.id=1010338
, FCh.name="Captain Marvel (Carol Danvers)"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/6/80/5269608c1be7a"
, I.extension="jpg"
}
}
, FCh.FeaturedCharacter
{ FCh.id=1009351
, FCh.name="Hulk"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/5/a0/538615ca33ab0"
, I.extension="jpg"
}
}
, FCh.FeaturedCharacter
{ FCh.id=1009189
, FCh.name="Black Widow"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/f/30/50fecad1f395b"
, I.extension="jpg"
}
}
]
| 961
|
mockFeaturedCharacters :: [FeaturedCharacter]
mockFeaturedCharacters =
[ FCh.FeaturedCharacter
{ FCh.id=1009610
, FCh.name="Spider-Man"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/3/50/526548a343e4b"
, I.extension="jpg"
}
}
, FCh.FeaturedCharacter
{ FCh.id=1010338
, FCh.name="Captain Marvel (Carol Danvers)"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/6/80/5269608c1be7a"
, I.extension="jpg"
}
}
, FCh.FeaturedCharacter
{ FCh.id=1009351
, FCh.name="Hulk"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/5/a0/538615ca33ab0"
, I.extension="jpg"
}
}
, FCh.FeaturedCharacter
{ FCh.id=1009189
, FCh.name="Black Widow"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/f/30/50fecad1f395b"
, I.extension="jpg"
}
}
]
| 961
|
mockFeaturedCharacters =
[ FCh.FeaturedCharacter
{ FCh.id=1009610
, FCh.name="Spider-Man"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/3/50/526548a343e4b"
, I.extension="jpg"
}
}
, FCh.FeaturedCharacter
{ FCh.id=1010338
, FCh.name="Captain Marvel (Carol Danvers)"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/6/80/5269608c1be7a"
, I.extension="jpg"
}
}
, FCh.FeaturedCharacter
{ FCh.id=1009351
, FCh.name="Hulk"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/5/a0/538615ca33ab0"
, I.extension="jpg"
}
}
, FCh.FeaturedCharacter
{ FCh.id=1009189
, FCh.name="Black Widow"
, FCh.thumbnail=I.Image
{ I.path="http://i.annihil.us/u/prod/marvel/i/mg/f/30/50fecad1f395b"
, I.extension="jpg"
}
}
]
| 915
| false
| true
| 0
| 9
| 211
| 218
| 132
| 86
| null | null |
dysinger/amazonka
|
amazonka-s3/gen/Network/AWS/S3/ListParts.hs
|
mpl-2.0
|
lpBucket :: Lens' ListParts Text
lpBucket = lens _lpBucket (\s a -> s { _lpBucket = a })
| 88
|
lpBucket :: Lens' ListParts Text
lpBucket = lens _lpBucket (\s a -> s { _lpBucket = a })
| 88
|
lpBucket = lens _lpBucket (\s a -> s { _lpBucket = a })
| 55
| false
| true
| 0
| 9
| 17
| 39
| 21
| 18
| null | null |
NCrashed/hjass
|
src/library/Language/Jass/Codegen/Type.hs
|
mit
|
getTypeId (Just JNull) = throwError $ unplacedSemError "ICE: cannot generate code for special type JNull"
| 105
|
getTypeId (Just JNull) = throwError $ unplacedSemError "ICE: cannot generate code for special type JNull"
| 105
|
getTypeId (Just JNull) = throwError $ unplacedSemError "ICE: cannot generate code for special type JNull"
| 105
| false
| false
| 0
| 7
| 14
| 22
| 10
| 12
| null | null |
soumith/fbthrift
|
thrift/lib/hs/Thrift/Protocol/JSON.hs
|
apache-2.0
|
parseJSONMap :: ThriftType -> ThriftType -> Parser [(ThriftVal, ThriftVal)]
parseJSONMap kt vt =
((,) <$> lexeme (PC.char8 '"' *> parseJSONValue kt <* PC.char8 '"') <*>
(lexeme (PC.char8 ':') *> lexeme (parseJSONValue vt))) `sepBy`
lexeme (PC.char8 ',')
| 260
|
parseJSONMap :: ThriftType -> ThriftType -> Parser [(ThriftVal, ThriftVal)]
parseJSONMap kt vt =
((,) <$> lexeme (PC.char8 '"' *> parseJSONValue kt <* PC.char8 '"') <*>
(lexeme (PC.char8 ':') *> lexeme (parseJSONValue vt))) `sepBy`
lexeme (PC.char8 ',')
| 260
|
parseJSONMap kt vt =
((,) <$> lexeme (PC.char8 '"' *> parseJSONValue kt <* PC.char8 '"') <*>
(lexeme (PC.char8 ':') *> lexeme (parseJSONValue vt))) `sepBy`
lexeme (PC.char8 ',')
| 184
| false
| true
| 0
| 14
| 42
| 121
| 61
| 60
| null | null |
nushio3/Paraiso
|
Language/Paraiso/Annotation.hs
|
bsd-3-clause
|
maybeApply :: (Typeable a, Typeable b) => (a->b) -> Dynamic -> Dynamic
maybeApply f x =
case dynApply (toDyn f) x of
Just y -> y
Nothing -> x
| 158
|
maybeApply :: (Typeable a, Typeable b) => (a->b) -> Dynamic -> Dynamic
maybeApply f x =
case dynApply (toDyn f) x of
Just y -> y
Nothing -> x
| 158
|
maybeApply f x =
case dynApply (toDyn f) x of
Just y -> y
Nothing -> x
| 87
| false
| true
| 0
| 8
| 45
| 76
| 38
| 38
| null | null |
DavidAlphaFox/darcs
|
src/Darcs/Util/Download/Request.hs
|
gpl-2.0
|
-- |'insertQ' inserts a low priority item into a Q.
insertQ :: a -> Q a -> Q a
insertQ y (Q xs ys) = Q xs (y:ys)
| 112
|
insertQ :: a -> Q a -> Q a
insertQ y (Q xs ys) = Q xs (y:ys)
| 60
|
insertQ y (Q xs ys) = Q xs (y:ys)
| 33
| true
| true
| 0
| 7
| 27
| 51
| 25
| 26
| null | null |
ingemaradahl/bilder
|
src/Compiler/Simple/Utils.hs
|
lgpl-3.0
|
foldExpM f p e@(EBWAnd el er) = foldM (foldExpM f) p [el,er] >>= flip f e
| 73
|
foldExpM f p e@(EBWAnd el er) = foldM (foldExpM f) p [el,er] >>= flip f e
| 73
|
foldExpM f p e@(EBWAnd el er) = foldM (foldExpM f) p [el,er] >>= flip f e
| 73
| false
| false
| 0
| 8
| 15
| 52
| 26
| 26
| null | null |
alexander-at-github/eta
|
compiler/ETA/Prelude/TysPrim.hs
|
bsd-3-clause
|
mutableArrayArrayPrimTyCon = pcPrimTyCon mutableArrayArrayPrimTyConName [Nominal] (ObjectRep stgArray)
| 102
|
mutableArrayArrayPrimTyCon = pcPrimTyCon mutableArrayArrayPrimTyConName [Nominal] (ObjectRep stgArray)
| 102
|
mutableArrayArrayPrimTyCon = pcPrimTyCon mutableArrayArrayPrimTyConName [Nominal] (ObjectRep stgArray)
| 102
| false
| false
| 0
| 7
| 6
| 22
| 11
| 11
| null | null |
nevrenato/Hets_Fork
|
Common/OrderedMap.hs
|
gpl-2.0
|
difference :: Ord k => OMap k a -> OMap k b -> OMap k a
difference = Map.difference
| 83
|
difference :: Ord k => OMap k a -> OMap k b -> OMap k a
difference = Map.difference
| 83
|
difference = Map.difference
| 27
| false
| true
| 0
| 8
| 18
| 43
| 20
| 23
| null | null |
Noeda/Megaman
|
src/NetHack/Data/Combo.hs
|
mit
|
genderLetter :: Gender -> Char
genderLetter Male = 'm'
| 60
|
genderLetter :: Gender -> Char
genderLetter Male = 'm'
| 60
|
genderLetter Male = 'm'
| 29
| false
| true
| 0
| 5
| 14
| 18
| 9
| 9
| null | null |
frontrowed/stratosphere
|
library-gen/Stratosphere/Resources/KinesisStream.hs
|
mit
|
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html#cfn-kinesis-stream-tags
ksTags :: Lens' KinesisStream (Maybe [Tag])
ksTags = lens _kinesisStreamTags (\s a -> s { _kinesisStreamTags = a })
| 239
|
ksTags :: Lens' KinesisStream (Maybe [Tag])
ksTags = lens _kinesisStreamTags (\s a -> s { _kinesisStreamTags = a })
| 115
|
ksTags = lens _kinesisStreamTags (\s a -> s { _kinesisStreamTags = a })
| 71
| true
| true
| 0
| 9
| 21
| 49
| 27
| 22
| null | null |
jgoerzen/escpterm
|
escpbufsimple.hs
|
gpl-2.0
|
immediate = "\ESCi1"
| 20
|
immediate = "\ESCi1"
| 20
|
immediate = "\ESCi1"
| 20
| false
| false
| 1
| 5
| 2
| 10
| 3
| 7
| null | null |
Hodapp87/ivory
|
ivory-examples/examples/Extern.hs
|
bsd-3-clause
|
cmodule :: Module
cmodule = package "Extern" $ do
incl test
incl putchar
inclSym x
| 89
|
cmodule :: Module
cmodule = package "Extern" $ do
incl test
incl putchar
inclSym x
| 89
|
cmodule = package "Extern" $ do
incl test
incl putchar
inclSym x
| 71
| false
| true
| 0
| 8
| 21
| 36
| 15
| 21
| null | null |
rainbowbismuth/go-analyze
|
src/Go/Lexer.hs
|
gpl-3.0
|
littleUValue :: Parser Char
littleUValue = do
_ <- P.try $ PC.string "\\u";
digits <- P.count 4 $ PC.satisfy isHexDigit;
case digits of
[] -> P.unexpected "little_u_value requires 4 hex digits"
xs -> return (toEnum (read $ "0x" ++ xs))
| 249
|
littleUValue :: Parser Char
littleUValue = do
_ <- P.try $ PC.string "\\u";
digits <- P.count 4 $ PC.satisfy isHexDigit;
case digits of
[] -> P.unexpected "little_u_value requires 4 hex digits"
xs -> return (toEnum (read $ "0x" ++ xs))
| 249
|
littleUValue = do
_ <- P.try $ PC.string "\\u";
digits <- P.count 4 $ PC.satisfy isHexDigit;
case digits of
[] -> P.unexpected "little_u_value requires 4 hex digits"
xs -> return (toEnum (read $ "0x" ++ xs))
| 221
| false
| true
| 0
| 15
| 53
| 101
| 48
| 53
| null | null |
nlv/genexpr
|
src/Generate.hs
|
gpl-2.0
|
-- | Сгенерировать арифмитическое выражение со значением в указанном диапазоне
gen0 ::
Int -- ^ Минимальное значение всего выражения и чисел в выражении
-> Int -- ^ Максимальное значение всего выражения и чисел в выражении
-> Int -- ^ Максимальное кол-во чисел в выражении
-> Gen Expr
gen0 mn mx cnt = do
n <- choose (mn, mx)
gen mn mx n cnt
-- | Сгенерировать арифмитическое выражение с указанным значением
| 431
|
gen0 ::
Int -- ^ Минимальное значение всего выражения и чисел в выражении
-> Int -- ^ Максимальное значение всего выражения и чисел в выражении
-> Int -- ^ Максимальное кол-во чисел в выражении
-> Gen Expr
gen0 mn mx cnt = do
n <- choose (mn, mx)
gen mn mx n cnt
-- | Сгенерировать арифмитическое выражение с указанным значением
| 352
|
gen0 mn mx cnt = do
n <- choose (mn, mx)
gen mn mx n cnt
-- | Сгенерировать арифмитическое выражение с указанным значением
| 127
| true
| true
| 0
| 10
| 94
| 71
| 35
| 36
| null | null |
unisonweb/platform
|
yaks/easytest/src/EasyTest.hs
|
mit
|
-- | Generate a random `Char`
char :: Test Char
char = random
| 61
|
char :: Test Char
char = random
| 31
|
char = random
| 13
| true
| true
| 0
| 6
| 12
| 21
| 9
| 12
| null | null |
haroldcarr/learn-haskell-coq-ml-etc
|
haskell/playpen/hcpn/examples/philosophers-folded.hs
|
unlicense
|
phil_takes_left :: Mark -> [Mark]
phil_takes_left m =
do
let forks_marking = forks m
let phil_has_right_marking = phil_has_right m
let phil_has_both_marking = phil_has_both m
(f, forks_marking) <- select $ forks_marking
(p, phil_has_right_marking) <- select $ phil_has_right_marking
if f == ((p+1) `mod` 3)
then return m{
forks = forks_marking
, phil_has_right = phil_has_right_marking
, phil_has_both = (p) : phil_has_both_marking
}
else fail "guard failed"
| 560
|
phil_takes_left :: Mark -> [Mark]
phil_takes_left m =
do
let forks_marking = forks m
let phil_has_right_marking = phil_has_right m
let phil_has_both_marking = phil_has_both m
(f, forks_marking) <- select $ forks_marking
(p, phil_has_right_marking) <- select $ phil_has_right_marking
if f == ((p+1) `mod` 3)
then return m{
forks = forks_marking
, phil_has_right = phil_has_right_marking
, phil_has_both = (p) : phil_has_both_marking
}
else fail "guard failed"
| 559
|
phil_takes_left m =
do
let forks_marking = forks m
let phil_has_right_marking = phil_has_right m
let phil_has_both_marking = phil_has_both m
(f, forks_marking) <- select $ forks_marking
(p, phil_has_right_marking) <- select $ phil_has_right_marking
if f == ((p+1) `mod` 3)
then return m{
forks = forks_marking
, phil_has_right = phil_has_right_marking
, phil_has_both = (p) : phil_has_both_marking
}
else fail "guard failed"
| 525
| false
| true
| 0
| 12
| 164
| 155
| 81
| 74
| null | null |
akru/haste-compiler
|
libraries/haste-lib/src/Haste/DOM/Core.hs
|
bsd-3-clause
|
-- | DEPRECATED: use 'insertChildBefore' instead!
addChildBefore :: (IsElem parent, IsElem child, MonadIO m)
=> child -> parent -> child -> m ()
addChildBefore child parent oldChild = insertChildBefore parent oldChild child
| 238
|
addChildBefore :: (IsElem parent, IsElem child, MonadIO m)
=> child -> parent -> child -> m ()
addChildBefore child parent oldChild = insertChildBefore parent oldChild child
| 188
|
addChildBefore child parent oldChild = insertChildBefore parent oldChild child
| 78
| true
| true
| 0
| 10
| 46
| 64
| 32
| 32
| null | null |
M42/mikrokosmos
|
source/Environment.hs
|
gpl-3.0
|
-- | Sets the verbose configuration on/off.
changeVerbose :: Environment -> Bool -> Environment
changeVerbose options setting = options {verbose = setting}
| 155
|
changeVerbose :: Environment -> Bool -> Environment
changeVerbose options setting = options {verbose = setting}
| 111
|
changeVerbose options setting = options {verbose = setting}
| 59
| true
| true
| 0
| 7
| 21
| 38
| 19
| 19
| null | null |
niteria/haddock
|
haddock-api/src/Haddock.hs
|
bsd-2-clause
|
haddockWithGhc :: (forall a. [Flag] -> Ghc a -> IO a) -> [String] -> IO ()
haddockWithGhc ghc args = handleTopExceptions $ do
-- Parse command-line flags and handle some of them initially.
-- TODO: unify all of this (and some of what's in the 'render' function),
-- into one function that returns a record with a field for each option,
-- or which exits with an error or help message.
(flags, files) <- parseHaddockOpts args
shortcutFlags flags
qual <- case qualification flags of {Left msg -> throwE msg; Right q -> return q}
-- inject dynamic-too into flags before we proceed
flags' <- ghc flags $ do
df <- getDynFlags
case lookup "GHC Dynamic" (compilerInfo df) of
Just "YES" -> return $ Flag_OptGhc "-dynamic-too" : flags
_ -> return flags
unless (Flag_NoWarnings `elem` flags) $ do
hypSrcWarnings flags
forM_ (warnings args) $ \warning -> do
hPutStrLn stderr warning
ghc flags' $ do
dflags <- getDynFlags
if not (null files) then do
(packages, ifaces, homeLinks) <- readPackagesAndProcessModules flags files
-- Dump an "interface file" (.haddock file), if requested.
forM_ (optDumpInterfaceFile flags) $ \path -> liftIO $ do
writeInterfaceFile path InterfaceFile {
ifInstalledIfaces = map toInstalledIface ifaces
, ifLinkEnv = homeLinks
}
-- Render the interfaces.
liftIO $ renderStep dflags flags qual packages ifaces
else do
when (any (`elem` [Flag_Html, Flag_Hoogle, Flag_LaTeX]) flags) $
throwE "No input file(s)."
-- Get packages supplied with --read-interface.
packages <- liftIO $ readInterfaceFiles freshNameCache (readIfaceArgs flags)
-- Render even though there are no input files (usually contents/index).
liftIO $ renderStep dflags flags qual packages []
-- | Create warnings about potential misuse of -optghc
| 1,938
|
haddockWithGhc :: (forall a. [Flag] -> Ghc a -> IO a) -> [String] -> IO ()
haddockWithGhc ghc args = handleTopExceptions $ do
-- Parse command-line flags and handle some of them initially.
-- TODO: unify all of this (and some of what's in the 'render' function),
-- into one function that returns a record with a field for each option,
-- or which exits with an error or help message.
(flags, files) <- parseHaddockOpts args
shortcutFlags flags
qual <- case qualification flags of {Left msg -> throwE msg; Right q -> return q}
-- inject dynamic-too into flags before we proceed
flags' <- ghc flags $ do
df <- getDynFlags
case lookup "GHC Dynamic" (compilerInfo df) of
Just "YES" -> return $ Flag_OptGhc "-dynamic-too" : flags
_ -> return flags
unless (Flag_NoWarnings `elem` flags) $ do
hypSrcWarnings flags
forM_ (warnings args) $ \warning -> do
hPutStrLn stderr warning
ghc flags' $ do
dflags <- getDynFlags
if not (null files) then do
(packages, ifaces, homeLinks) <- readPackagesAndProcessModules flags files
-- Dump an "interface file" (.haddock file), if requested.
forM_ (optDumpInterfaceFile flags) $ \path -> liftIO $ do
writeInterfaceFile path InterfaceFile {
ifInstalledIfaces = map toInstalledIface ifaces
, ifLinkEnv = homeLinks
}
-- Render the interfaces.
liftIO $ renderStep dflags flags qual packages ifaces
else do
when (any (`elem` [Flag_Html, Flag_Hoogle, Flag_LaTeX]) flags) $
throwE "No input file(s)."
-- Get packages supplied with --read-interface.
packages <- liftIO $ readInterfaceFiles freshNameCache (readIfaceArgs flags)
-- Render even though there are no input files (usually contents/index).
liftIO $ renderStep dflags flags qual packages []
-- | Create warnings about potential misuse of -optghc
| 1,938
|
haddockWithGhc ghc args = handleTopExceptions $ do
-- Parse command-line flags and handle some of them initially.
-- TODO: unify all of this (and some of what's in the 'render' function),
-- into one function that returns a record with a field for each option,
-- or which exits with an error or help message.
(flags, files) <- parseHaddockOpts args
shortcutFlags flags
qual <- case qualification flags of {Left msg -> throwE msg; Right q -> return q}
-- inject dynamic-too into flags before we proceed
flags' <- ghc flags $ do
df <- getDynFlags
case lookup "GHC Dynamic" (compilerInfo df) of
Just "YES" -> return $ Flag_OptGhc "-dynamic-too" : flags
_ -> return flags
unless (Flag_NoWarnings `elem` flags) $ do
hypSrcWarnings flags
forM_ (warnings args) $ \warning -> do
hPutStrLn stderr warning
ghc flags' $ do
dflags <- getDynFlags
if not (null files) then do
(packages, ifaces, homeLinks) <- readPackagesAndProcessModules flags files
-- Dump an "interface file" (.haddock file), if requested.
forM_ (optDumpInterfaceFile flags) $ \path -> liftIO $ do
writeInterfaceFile path InterfaceFile {
ifInstalledIfaces = map toInstalledIface ifaces
, ifLinkEnv = homeLinks
}
-- Render the interfaces.
liftIO $ renderStep dflags flags qual packages ifaces
else do
when (any (`elem` [Flag_Html, Flag_Hoogle, Flag_LaTeX]) flags) $
throwE "No input file(s)."
-- Get packages supplied with --read-interface.
packages <- liftIO $ readInterfaceFiles freshNameCache (readIfaceArgs flags)
-- Render even though there are no input files (usually contents/index).
liftIO $ renderStep dflags flags qual packages []
-- | Create warnings about potential misuse of -optghc
| 1,863
| false
| true
| 0
| 22
| 480
| 462
| 226
| 236
| null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.