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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
spechub/Hets
|
Isabelle/IsaParse.hs
|
gpl-2.0
|
constdecl :: Parser [Const]
constdecl = do
n <- nameP
do t <- typeSuffix << optional mixfix
return [Const n t]
<|> (lexS "where" >> return [])
<|> (mixfix >> return [])
| 190
|
constdecl :: Parser [Const]
constdecl = do
n <- nameP
do t <- typeSuffix << optional mixfix
return [Const n t]
<|> (lexS "where" >> return [])
<|> (mixfix >> return [])
| 190
|
constdecl = do
n <- nameP
do t <- typeSuffix << optional mixfix
return [Const n t]
<|> (lexS "where" >> return [])
<|> (mixfix >> return [])
| 162
| false
| true
| 3
| 12
| 53
| 94
| 44
| 50
| null | null |
brendanhay/gogol
|
gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs
|
mpl-2.0
|
-- | The streaming worker main class name.
trsStreamingWorkerMainClass :: Lens' TaskRunnerSettings (Maybe Text)
trsStreamingWorkerMainClass
= lens _trsStreamingWorkerMainClass
(\ s a -> s{_trsStreamingWorkerMainClass = a})
| 230
|
trsStreamingWorkerMainClass :: Lens' TaskRunnerSettings (Maybe Text)
trsStreamingWorkerMainClass
= lens _trsStreamingWorkerMainClass
(\ s a -> s{_trsStreamingWorkerMainClass = a})
| 187
|
trsStreamingWorkerMainClass
= lens _trsStreamingWorkerMainClass
(\ s a -> s{_trsStreamingWorkerMainClass = a})
| 118
| true
| true
| 0
| 9
| 32
| 48
| 25
| 23
| null | null |
b1g3ar5/Spreadsheet
|
SpreadsheetTest.hs
|
mit
|
sheetStringCirc :: Sheet String
sheetStringCirc = Sheet "CellFn5" (fromCoords (1,1)) $ listArray (fromCoords (1,1), fromCoords (5,5)) $ all
where
colA::[String]
colA = [ "=1.5"
, "=1"
, "=b3"
, "=C2"
, "=B2"]
colB::[String]
colB = [ "=10.0"
, "=a3"
, "=B2"
, "=D2"
, "=b1+41"]
colC::[String]
colC = [ "=20"
, "=21"
, "=B3"
, "=b2"
, "=b2*43"]
colD::[String]
colD = [ "=30.0"
, "=\"Hello\"&\" Nick\""
, "=B3"
, "=A2"
, "=A1/45"]
colE::[String]
colE = [ "=\"Nick\""
, "=False||True"
, "=E1"
, "=E2"
, "=B2"]
all = concat $ [colA, colB, colC, colD, colE]
| 637
|
sheetStringCirc :: Sheet String
sheetStringCirc = Sheet "CellFn5" (fromCoords (1,1)) $ listArray (fromCoords (1,1), fromCoords (5,5)) $ all
where
colA::[String]
colA = [ "=1.5"
, "=1"
, "=b3"
, "=C2"
, "=B2"]
colB::[String]
colB = [ "=10.0"
, "=a3"
, "=B2"
, "=D2"
, "=b1+41"]
colC::[String]
colC = [ "=20"
, "=21"
, "=B3"
, "=b2"
, "=b2*43"]
colD::[String]
colD = [ "=30.0"
, "=\"Hello\"&\" Nick\""
, "=B3"
, "=A2"
, "=A1/45"]
colE::[String]
colE = [ "=\"Nick\""
, "=False||True"
, "=E1"
, "=E2"
, "=B2"]
all = concat $ [colA, colB, colC, colD, colE]
| 637
|
sheetStringCirc = Sheet "CellFn5" (fromCoords (1,1)) $ listArray (fromCoords (1,1), fromCoords (5,5)) $ all
where
colA::[String]
colA = [ "=1.5"
, "=1"
, "=b3"
, "=C2"
, "=B2"]
colB::[String]
colB = [ "=10.0"
, "=a3"
, "=B2"
, "=D2"
, "=b1+41"]
colC::[String]
colC = [ "=20"
, "=21"
, "=B3"
, "=b2"
, "=b2*43"]
colD::[String]
colD = [ "=30.0"
, "=\"Hello\"&\" Nick\""
, "=B3"
, "=A2"
, "=A1/45"]
colE::[String]
colE = [ "=\"Nick\""
, "=False||True"
, "=E1"
, "=E2"
, "=B2"]
all = concat $ [colA, colB, colC, colD, colE]
| 605
| false
| true
| 0
| 10
| 179
| 233
| 141
| 92
| null | null |
tolysz/prepare-ghcjs
|
spec-lts8/cabal/cabal-install/Distribution/Client/ProjectConfig/Legacy.hs
|
bsd-3-clause
|
legacyPackageConfigFieldDescrs :: [FieldDescr LegacyPackageConfig]
legacyPackageConfigFieldDescrs =
( liftFields
legacyConfigureFlags
(\flags conf -> conf { legacyConfigureFlags = flags })
. addFields
[ newLineListField "extra-include-dirs"
showTokenQ parseTokenQ
configExtraIncludeDirs
(\v conf -> conf { configExtraIncludeDirs = v })
, newLineListField "extra-lib-dirs"
showTokenQ parseTokenQ
configExtraLibDirs
(\v conf -> conf { configExtraLibDirs = v })
, newLineListField "extra-framework-dirs"
showTokenQ parseTokenQ
configExtraFrameworkDirs
(\v conf -> conf { configExtraFrameworkDirs = v })
, newLineListField "extra-prog-path"
showTokenQ parseTokenQ
(fromNubList . configProgramPathExtra)
(\v conf -> conf { configProgramPathExtra = toNubList v })
, newLineListField "configure-options"
showTokenQ parseTokenQ
configConfigureArgs
(\v conf -> conf { configConfigureArgs = v })
, simpleField "flags"
dispFlagAssignment parseFlagAssignment
configConfigurationsFlags
(\v conf -> conf { configConfigurationsFlags = v })
]
. filterFields
[ "compiler", "with-compiler", "with-hc-pkg"
, "program-prefix", "program-suffix"
, "library-vanilla", "library-profiling"
, "shared", "executable-dynamic"
, "profiling", "executable-profiling"
, "profiling-detail", "library-profiling-detail"
, "optimization", "debug-info", "library-for-ghci", "split-objs"
, "executable-stripping", "library-stripping"
, "tests", "benchmarks"
, "coverage", "library-coverage"
, "relocatable"
-- not "extra-include-dirs", "extra-lib-dirs", "extra-framework-dirs"
-- or "extra-prog-path". We use corrected ones above that parse
-- as list fields.
]
. commandOptionsToFields
) (configureOptions ParseArgs)
++
liftFields
legacyConfigureFlags
(\flags conf -> conf { legacyConfigureFlags = flags })
[ overrideFieldCompiler
, overrideFieldOptimization
, overrideFieldDebugInfo
]
++
( liftFields
legacyInstallPkgFlags
(\flags conf -> conf { legacyInstallPkgFlags = flags })
. filterFields
[ "documentation", "run-tests"
]
. commandOptionsToFields
) (installOptions ParseArgs)
++
( liftFields
legacyHaddockFlags
(\flags conf -> conf { legacyHaddockFlags = flags })
. mapFieldNames
("haddock-"++)
. filterFields
[ "hoogle", "html", "html-location"
, "executables", "tests", "benchmarks", "all", "internal", "css"
, "hyperlink-source", "hscolour-css"
, "contents-location", "keep-temp-files"
]
. commandOptionsToFields
) (haddockOptions ParseArgs)
where
overrideFieldCompiler =
simpleField "compiler"
(fromFlagOrDefault Disp.empty . fmap disp)
(Parse.option mempty (fmap toFlag parse))
configHcFlavor (\v flags -> flags { configHcFlavor = v })
-- TODO: [code cleanup] The following is a hack. The "optimization" and
-- "debug-info" fields are OptArg, and viewAsFieldDescr fails on that.
-- Instead of a hand-written parser and printer, we should handle this case
-- properly in the library.
overrideFieldOptimization =
liftField configOptimization
(\v flags -> flags { configOptimization = v }) $
let name = "optimization" in
FieldDescr name
(\f -> case f of
Flag NoOptimisation -> Disp.text "False"
Flag NormalOptimisation -> Disp.text "True"
Flag MaximumOptimisation -> Disp.text "2"
_ -> Disp.empty)
(\line str _ -> case () of
_ | str == "False" -> ParseOk [] (Flag NoOptimisation)
| str == "True" -> ParseOk [] (Flag NormalOptimisation)
| str == "0" -> ParseOk [] (Flag NoOptimisation)
| str == "1" -> ParseOk [] (Flag NormalOptimisation)
| str == "2" -> ParseOk [] (Flag MaximumOptimisation)
| lstr == "false" -> ParseOk [caseWarning] (Flag NoOptimisation)
| lstr == "true" -> ParseOk [caseWarning] (Flag NormalOptimisation)
| otherwise -> ParseFailed (NoParse name line)
where
lstr = lowercase str
caseWarning = PWarning $
"The '" ++ name ++ "' field is case sensitive, use 'True' or 'False'.")
overrideFieldDebugInfo =
liftField configDebugInfo (\v flags -> flags { configDebugInfo = v }) $
let name = "debug-info" in
FieldDescr name
(\f -> case f of
Flag NoDebugInfo -> Disp.text "False"
Flag MinimalDebugInfo -> Disp.text "1"
Flag NormalDebugInfo -> Disp.text "True"
Flag MaximalDebugInfo -> Disp.text "3"
_ -> Disp.empty)
(\line str _ -> case () of
_ | str == "False" -> ParseOk [] (Flag NoDebugInfo)
| str == "True" -> ParseOk [] (Flag NormalDebugInfo)
| str == "0" -> ParseOk [] (Flag NoDebugInfo)
| str == "1" -> ParseOk [] (Flag MinimalDebugInfo)
| str == "2" -> ParseOk [] (Flag NormalDebugInfo)
| str == "3" -> ParseOk [] (Flag MaximalDebugInfo)
| lstr == "false" -> ParseOk [caseWarning] (Flag NoDebugInfo)
| lstr == "true" -> ParseOk [caseWarning] (Flag NormalDebugInfo)
| otherwise -> ParseFailed (NoParse name line)
where
lstr = lowercase str
caseWarning = PWarning $
"The '" ++ name ++ "' field is case sensitive, use 'True' or 'False'.")
| 5,889
|
legacyPackageConfigFieldDescrs :: [FieldDescr LegacyPackageConfig]
legacyPackageConfigFieldDescrs =
( liftFields
legacyConfigureFlags
(\flags conf -> conf { legacyConfigureFlags = flags })
. addFields
[ newLineListField "extra-include-dirs"
showTokenQ parseTokenQ
configExtraIncludeDirs
(\v conf -> conf { configExtraIncludeDirs = v })
, newLineListField "extra-lib-dirs"
showTokenQ parseTokenQ
configExtraLibDirs
(\v conf -> conf { configExtraLibDirs = v })
, newLineListField "extra-framework-dirs"
showTokenQ parseTokenQ
configExtraFrameworkDirs
(\v conf -> conf { configExtraFrameworkDirs = v })
, newLineListField "extra-prog-path"
showTokenQ parseTokenQ
(fromNubList . configProgramPathExtra)
(\v conf -> conf { configProgramPathExtra = toNubList v })
, newLineListField "configure-options"
showTokenQ parseTokenQ
configConfigureArgs
(\v conf -> conf { configConfigureArgs = v })
, simpleField "flags"
dispFlagAssignment parseFlagAssignment
configConfigurationsFlags
(\v conf -> conf { configConfigurationsFlags = v })
]
. filterFields
[ "compiler", "with-compiler", "with-hc-pkg"
, "program-prefix", "program-suffix"
, "library-vanilla", "library-profiling"
, "shared", "executable-dynamic"
, "profiling", "executable-profiling"
, "profiling-detail", "library-profiling-detail"
, "optimization", "debug-info", "library-for-ghci", "split-objs"
, "executable-stripping", "library-stripping"
, "tests", "benchmarks"
, "coverage", "library-coverage"
, "relocatable"
-- not "extra-include-dirs", "extra-lib-dirs", "extra-framework-dirs"
-- or "extra-prog-path". We use corrected ones above that parse
-- as list fields.
]
. commandOptionsToFields
) (configureOptions ParseArgs)
++
liftFields
legacyConfigureFlags
(\flags conf -> conf { legacyConfigureFlags = flags })
[ overrideFieldCompiler
, overrideFieldOptimization
, overrideFieldDebugInfo
]
++
( liftFields
legacyInstallPkgFlags
(\flags conf -> conf { legacyInstallPkgFlags = flags })
. filterFields
[ "documentation", "run-tests"
]
. commandOptionsToFields
) (installOptions ParseArgs)
++
( liftFields
legacyHaddockFlags
(\flags conf -> conf { legacyHaddockFlags = flags })
. mapFieldNames
("haddock-"++)
. filterFields
[ "hoogle", "html", "html-location"
, "executables", "tests", "benchmarks", "all", "internal", "css"
, "hyperlink-source", "hscolour-css"
, "contents-location", "keep-temp-files"
]
. commandOptionsToFields
) (haddockOptions ParseArgs)
where
overrideFieldCompiler =
simpleField "compiler"
(fromFlagOrDefault Disp.empty . fmap disp)
(Parse.option mempty (fmap toFlag parse))
configHcFlavor (\v flags -> flags { configHcFlavor = v })
-- TODO: [code cleanup] The following is a hack. The "optimization" and
-- "debug-info" fields are OptArg, and viewAsFieldDescr fails on that.
-- Instead of a hand-written parser and printer, we should handle this case
-- properly in the library.
overrideFieldOptimization =
liftField configOptimization
(\v flags -> flags { configOptimization = v }) $
let name = "optimization" in
FieldDescr name
(\f -> case f of
Flag NoOptimisation -> Disp.text "False"
Flag NormalOptimisation -> Disp.text "True"
Flag MaximumOptimisation -> Disp.text "2"
_ -> Disp.empty)
(\line str _ -> case () of
_ | str == "False" -> ParseOk [] (Flag NoOptimisation)
| str == "True" -> ParseOk [] (Flag NormalOptimisation)
| str == "0" -> ParseOk [] (Flag NoOptimisation)
| str == "1" -> ParseOk [] (Flag NormalOptimisation)
| str == "2" -> ParseOk [] (Flag MaximumOptimisation)
| lstr == "false" -> ParseOk [caseWarning] (Flag NoOptimisation)
| lstr == "true" -> ParseOk [caseWarning] (Flag NormalOptimisation)
| otherwise -> ParseFailed (NoParse name line)
where
lstr = lowercase str
caseWarning = PWarning $
"The '" ++ name ++ "' field is case sensitive, use 'True' or 'False'.")
overrideFieldDebugInfo =
liftField configDebugInfo (\v flags -> flags { configDebugInfo = v }) $
let name = "debug-info" in
FieldDescr name
(\f -> case f of
Flag NoDebugInfo -> Disp.text "False"
Flag MinimalDebugInfo -> Disp.text "1"
Flag NormalDebugInfo -> Disp.text "True"
Flag MaximalDebugInfo -> Disp.text "3"
_ -> Disp.empty)
(\line str _ -> case () of
_ | str == "False" -> ParseOk [] (Flag NoDebugInfo)
| str == "True" -> ParseOk [] (Flag NormalDebugInfo)
| str == "0" -> ParseOk [] (Flag NoDebugInfo)
| str == "1" -> ParseOk [] (Flag MinimalDebugInfo)
| str == "2" -> ParseOk [] (Flag NormalDebugInfo)
| str == "3" -> ParseOk [] (Flag MaximalDebugInfo)
| lstr == "false" -> ParseOk [caseWarning] (Flag NoDebugInfo)
| lstr == "true" -> ParseOk [caseWarning] (Flag NormalDebugInfo)
| otherwise -> ParseFailed (NoParse name line)
where
lstr = lowercase str
caseWarning = PWarning $
"The '" ++ name ++ "' field is case sensitive, use 'True' or 'False'.")
| 5,889
|
legacyPackageConfigFieldDescrs =
( liftFields
legacyConfigureFlags
(\flags conf -> conf { legacyConfigureFlags = flags })
. addFields
[ newLineListField "extra-include-dirs"
showTokenQ parseTokenQ
configExtraIncludeDirs
(\v conf -> conf { configExtraIncludeDirs = v })
, newLineListField "extra-lib-dirs"
showTokenQ parseTokenQ
configExtraLibDirs
(\v conf -> conf { configExtraLibDirs = v })
, newLineListField "extra-framework-dirs"
showTokenQ parseTokenQ
configExtraFrameworkDirs
(\v conf -> conf { configExtraFrameworkDirs = v })
, newLineListField "extra-prog-path"
showTokenQ parseTokenQ
(fromNubList . configProgramPathExtra)
(\v conf -> conf { configProgramPathExtra = toNubList v })
, newLineListField "configure-options"
showTokenQ parseTokenQ
configConfigureArgs
(\v conf -> conf { configConfigureArgs = v })
, simpleField "flags"
dispFlagAssignment parseFlagAssignment
configConfigurationsFlags
(\v conf -> conf { configConfigurationsFlags = v })
]
. filterFields
[ "compiler", "with-compiler", "with-hc-pkg"
, "program-prefix", "program-suffix"
, "library-vanilla", "library-profiling"
, "shared", "executable-dynamic"
, "profiling", "executable-profiling"
, "profiling-detail", "library-profiling-detail"
, "optimization", "debug-info", "library-for-ghci", "split-objs"
, "executable-stripping", "library-stripping"
, "tests", "benchmarks"
, "coverage", "library-coverage"
, "relocatable"
-- not "extra-include-dirs", "extra-lib-dirs", "extra-framework-dirs"
-- or "extra-prog-path". We use corrected ones above that parse
-- as list fields.
]
. commandOptionsToFields
) (configureOptions ParseArgs)
++
liftFields
legacyConfigureFlags
(\flags conf -> conf { legacyConfigureFlags = flags })
[ overrideFieldCompiler
, overrideFieldOptimization
, overrideFieldDebugInfo
]
++
( liftFields
legacyInstallPkgFlags
(\flags conf -> conf { legacyInstallPkgFlags = flags })
. filterFields
[ "documentation", "run-tests"
]
. commandOptionsToFields
) (installOptions ParseArgs)
++
( liftFields
legacyHaddockFlags
(\flags conf -> conf { legacyHaddockFlags = flags })
. mapFieldNames
("haddock-"++)
. filterFields
[ "hoogle", "html", "html-location"
, "executables", "tests", "benchmarks", "all", "internal", "css"
, "hyperlink-source", "hscolour-css"
, "contents-location", "keep-temp-files"
]
. commandOptionsToFields
) (haddockOptions ParseArgs)
where
overrideFieldCompiler =
simpleField "compiler"
(fromFlagOrDefault Disp.empty . fmap disp)
(Parse.option mempty (fmap toFlag parse))
configHcFlavor (\v flags -> flags { configHcFlavor = v })
-- TODO: [code cleanup] The following is a hack. The "optimization" and
-- "debug-info" fields are OptArg, and viewAsFieldDescr fails on that.
-- Instead of a hand-written parser and printer, we should handle this case
-- properly in the library.
overrideFieldOptimization =
liftField configOptimization
(\v flags -> flags { configOptimization = v }) $
let name = "optimization" in
FieldDescr name
(\f -> case f of
Flag NoOptimisation -> Disp.text "False"
Flag NormalOptimisation -> Disp.text "True"
Flag MaximumOptimisation -> Disp.text "2"
_ -> Disp.empty)
(\line str _ -> case () of
_ | str == "False" -> ParseOk [] (Flag NoOptimisation)
| str == "True" -> ParseOk [] (Flag NormalOptimisation)
| str == "0" -> ParseOk [] (Flag NoOptimisation)
| str == "1" -> ParseOk [] (Flag NormalOptimisation)
| str == "2" -> ParseOk [] (Flag MaximumOptimisation)
| lstr == "false" -> ParseOk [caseWarning] (Flag NoOptimisation)
| lstr == "true" -> ParseOk [caseWarning] (Flag NormalOptimisation)
| otherwise -> ParseFailed (NoParse name line)
where
lstr = lowercase str
caseWarning = PWarning $
"The '" ++ name ++ "' field is case sensitive, use 'True' or 'False'.")
overrideFieldDebugInfo =
liftField configDebugInfo (\v flags -> flags { configDebugInfo = v }) $
let name = "debug-info" in
FieldDescr name
(\f -> case f of
Flag NoDebugInfo -> Disp.text "False"
Flag MinimalDebugInfo -> Disp.text "1"
Flag NormalDebugInfo -> Disp.text "True"
Flag MaximalDebugInfo -> Disp.text "3"
_ -> Disp.empty)
(\line str _ -> case () of
_ | str == "False" -> ParseOk [] (Flag NoDebugInfo)
| str == "True" -> ParseOk [] (Flag NormalDebugInfo)
| str == "0" -> ParseOk [] (Flag NoDebugInfo)
| str == "1" -> ParseOk [] (Flag MinimalDebugInfo)
| str == "2" -> ParseOk [] (Flag NormalDebugInfo)
| str == "3" -> ParseOk [] (Flag MaximalDebugInfo)
| lstr == "false" -> ParseOk [caseWarning] (Flag NoDebugInfo)
| lstr == "true" -> ParseOk [caseWarning] (Flag NormalDebugInfo)
| otherwise -> ParseFailed (NoParse name line)
where
lstr = lowercase str
caseWarning = PWarning $
"The '" ++ name ++ "' field is case sensitive, use 'True' or 'False'.")
| 5,822
| false
| true
| 7
| 18
| 1,792
| 1,381
| 718
| 663
| null | null |
brendanhay/gogol
|
gogol-appengine/gen/Network/Google/AppEngine/Types/Product.hs
|
mpl-2.0
|
-- | Time before the check is considered failed.
rcTimeout :: Lens' ReadinessCheck (Maybe Scientific)
rcTimeout
= lens _rcTimeout (\ s a -> s{_rcTimeout = a}) .
mapping _GDuration
| 187
|
rcTimeout :: Lens' ReadinessCheck (Maybe Scientific)
rcTimeout
= lens _rcTimeout (\ s a -> s{_rcTimeout = a}) .
mapping _GDuration
| 138
|
rcTimeout
= lens _rcTimeout (\ s a -> s{_rcTimeout = a}) .
mapping _GDuration
| 85
| true
| true
| 1
| 9
| 36
| 59
| 28
| 31
| null | null |
ekmett/text
|
tests/Tests/Properties.hs
|
bsd-2-clause
|
tl_decimal (n::Int) s =
TL.signed TL.decimal (TL.pack (show n) `TL.append` t) == Right (n,t)
where t = TL.dropWhile isDigit s
| 133
|
tl_decimal (n::Int) s =
TL.signed TL.decimal (TL.pack (show n) `TL.append` t) == Right (n,t)
where t = TL.dropWhile isDigit s
| 133
|
tl_decimal (n::Int) s =
TL.signed TL.decimal (TL.pack (show n) `TL.append` t) == Right (n,t)
where t = TL.dropWhile isDigit s
| 133
| false
| false
| 0
| 11
| 27
| 76
| 39
| 37
| null | null |
tpoulsen/generate-component
|
src/Parser.hs
|
bsd-3-clause
|
parseComponentType :: Parser (Maybe ComponentType)
parseComponentType =
optional $ option auto
( long "component-type"
<> short 't'
<> help "The type of component to generate. Valid options: ES6Class | CreateClass | Functional | Reason" )
| 246
|
parseComponentType :: Parser (Maybe ComponentType)
parseComponentType =
optional $ option auto
( long "component-type"
<> short 't'
<> help "The type of component to generate. Valid options: ES6Class | CreateClass | Functional | Reason" )
| 246
|
parseComponentType =
optional $ option auto
( long "component-type"
<> short 't'
<> help "The type of component to generate. Valid options: ES6Class | CreateClass | Functional | Reason" )
| 195
| false
| true
| 0
| 8
| 42
| 50
| 23
| 27
| null | null |
tobiasreinhardt/show
|
Show/src/Main.hs
|
apache-2.0
|
run (_:xs) = run xs
| 26
|
run (_:xs) = run xs
| 26
|
run (_:xs) = run xs
| 26
| false
| false
| 0
| 6
| 11
| 20
| 9
| 11
| null | null |
benkolera/dalek-caan
|
Main.hs
|
mit
|
cmdSettings (Arena s) = s
| 25
|
cmdSettings (Arena s) = s
| 25
|
cmdSettings (Arena s) = s
| 25
| false
| false
| 0
| 6
| 4
| 16
| 7
| 9
| null | null |
justinethier/husk-scheme
|
hs-src/Language/Scheme/Types.hs
|
mit
|
fromOpaque :: forall a. Typeable a => LispVal -> ThrowsError a
-- fromOpaque (Opaque o) | isJust $ fromDynamic o = fromJust $ fromDynamic o
-- fromOpaque badArg = throwError $ TypeMismatch (show $ toOpaque (undefined :: a)) badArg
-- Old version that used ViewPatterns
fromOpaque (Opaque (fromDynamic -> Just v)) = return v
| 324
|
fromOpaque :: forall a. Typeable a => LispVal -> ThrowsError a
fromOpaque (Opaque (fromDynamic -> Just v)) = return v
| 117
|
fromOpaque (Opaque (fromDynamic -> Just v)) = return v
| 54
| true
| true
| 0
| 10
| 54
| 55
| 28
| 27
| null | null |
4ZP6Capstone2015/ampersand
|
src/Database/Design/Ampersand/Core/Poset.hs
|
gpl-3.0
|
comparableClass CP = Prelude.EQ
| 31
|
comparableClass CP = Prelude.EQ
| 31
|
comparableClass CP = Prelude.EQ
| 31
| false
| false
| 1
| 6
| 3
| 15
| 5
| 10
| null | null |
arekfu/funpart
|
src/Physics/FunPart/Coords.hs
|
bsd-3-clause
|
cylindricalToVec :: RealFloat a => CylindricalCoord a -> Vec3 a
cylindricalToVec (CylindricalCoord ρ φ z) = Vec3 x y z
where x = ρ * cos φ
y = ρ * sin φ
| 166
|
cylindricalToVec :: RealFloat a => CylindricalCoord a -> Vec3 a
cylindricalToVec (CylindricalCoord ρ φ z) = Vec3 x y z
where x = ρ * cos φ
y = ρ * sin φ
| 166
|
cylindricalToVec (CylindricalCoord ρ φ z) = Vec3 x y z
where x = ρ * cos φ
y = ρ * sin φ
| 102
| false
| true
| 0
| 8
| 46
| 74
| 35
| 39
| null | null |
Paow/encore
|
src/ir/AST/Util.hs
|
bsd-3-clause
|
getChildren DoWhile {cond, body} = [cond, body]
| 47
|
getChildren DoWhile {cond, body} = [cond, body]
| 47
|
getChildren DoWhile {cond, body} = [cond, body]
| 47
| false
| false
| 1
| 6
| 6
| 29
| 14
| 15
| null | null |
kumasento/accelerate-cuda
|
Data/Array/Accelerate/CUDA/Compile.hs
|
bsd-3-clause
|
trace :: MonadIO m => String -> m a -> m a
trace msg next = D.message D.dump_cc ("cc: " ++ msg) >> next
| 103
|
trace :: MonadIO m => String -> m a -> m a
trace msg next = D.message D.dump_cc ("cc: " ++ msg) >> next
| 103
|
trace msg next = D.message D.dump_cc ("cc: " ++ msg) >> next
| 60
| false
| true
| 0
| 8
| 23
| 62
| 28
| 34
| null | null |
spacekitteh/smcghc
|
libraries/base/GHC/IO/Handle.hs
|
bsd-3-clause
|
-- | Computation 'hGetPosn' @hdl@ returns the current I\/O position of
-- @hdl@ as a value of the abstract type 'HandlePosn'.
hGetPosn :: Handle -> IO HandlePosn
hGetPosn handle = do
posn <- hTell handle
return (HandlePosn handle posn)
-- | If a call to 'hGetPosn' @hdl@ returns a position @p@,
-- then computation 'hSetPosn' @p@ sets the position of @hdl@
-- to the position it held at the time of the call to 'hGetPosn'.
--
-- This operation may fail with:
--
-- * 'isPermissionError' if a system resource limit would be exceeded.
| 543
|
hGetPosn :: Handle -> IO HandlePosn
hGetPosn handle = do
posn <- hTell handle
return (HandlePosn handle posn)
-- | If a call to 'hGetPosn' @hdl@ returns a position @p@,
-- then computation 'hSetPosn' @p@ sets the position of @hdl@
-- to the position it held at the time of the call to 'hGetPosn'.
--
-- This operation may fail with:
--
-- * 'isPermissionError' if a system resource limit would be exceeded.
| 416
|
hGetPosn handle = do
posn <- hTell handle
return (HandlePosn handle posn)
-- | If a call to 'hGetPosn' @hdl@ returns a position @p@,
-- then computation 'hSetPosn' @p@ sets the position of @hdl@
-- to the position it held at the time of the call to 'hGetPosn'.
--
-- This operation may fail with:
--
-- * 'isPermissionError' if a system resource limit would be exceeded.
| 380
| true
| true
| 0
| 9
| 104
| 54
| 29
| 25
| null | null |
kawu/tag-vanilla
|
src/NLP/TAG/Vanilla/Earley/Basic.hs
|
bsd-2-clause
|
isProcessed :: (Ord n, Ord t) => State n t -> EarSt n t -> Bool
isProcessed pE EarSt{..} =
S.member pE $ chooseSet pE
where
chooseSet p = case expects' p of
Just (x, _) -> M.findWithDefault S.empty
(x, end p) doneExpEnd
Nothing -> M.findWithDefault S.empty
(nonTerm $ root p, beg p, end p) doneProSpan
-- | Add the state to the waiting queue. Check first if it is
-- not already in the set of processed (`done') states.
| 472
|
isProcessed :: (Ord n, Ord t) => State n t -> EarSt n t -> Bool
isProcessed pE EarSt{..} =
S.member pE $ chooseSet pE
where
chooseSet p = case expects' p of
Just (x, _) -> M.findWithDefault S.empty
(x, end p) doneExpEnd
Nothing -> M.findWithDefault S.empty
(nonTerm $ root p, beg p, end p) doneProSpan
-- | Add the state to the waiting queue. Check first if it is
-- not already in the set of processed (`done') states.
| 472
|
isProcessed pE EarSt{..} =
S.member pE $ chooseSet pE
where
chooseSet p = case expects' p of
Just (x, _) -> M.findWithDefault S.empty
(x, end p) doneExpEnd
Nothing -> M.findWithDefault S.empty
(nonTerm $ root p, beg p, end p) doneProSpan
-- | Add the state to the waiting queue. Check first if it is
-- not already in the set of processed (`done') states.
| 408
| false
| true
| 0
| 11
| 132
| 161
| 79
| 82
| null | null |
ulricha/dsh
|
src/Database/DSH/CL/Desugar.hs
|
bsd-3-clause
|
wrapSingleton :: Either [Val] ScalarVal -> Val
wrapSingleton (Left fs) = ListV [TupleV fs]
| 90
|
wrapSingleton :: Either [Val] ScalarVal -> Val
wrapSingleton (Left fs) = ListV [TupleV fs]
| 90
|
wrapSingleton (Left fs) = ListV [TupleV fs]
| 43
| false
| true
| 0
| 7
| 13
| 41
| 20
| 21
| null | null |
wldmr/haskell-docgraph
|
src/DocGraph/Document.hs
|
gpl-3.0
|
itemize :: [Token] -> [(Int, Item)]
itemize [] = []
| 51
|
itemize :: [Token] -> [(Int, Item)]
itemize [] = []
| 51
|
itemize [] = []
| 15
| false
| true
| 0
| 9
| 9
| 40
| 20
| 20
| null | null |
aaronc/Idris-dev
|
src/Idris/IBC.hs
|
bsd-3-clause
|
pTotCheckErr :: [(FC, String)] -> Idris ()
pTotCheckErr es = updateIState (\i -> i { idris_totcheckfail = idris_totcheckfail i ++ es })
| 135
|
pTotCheckErr :: [(FC, String)] -> Idris ()
pTotCheckErr es = updateIState (\i -> i { idris_totcheckfail = idris_totcheckfail i ++ es })
| 135
|
pTotCheckErr es = updateIState (\i -> i { idris_totcheckfail = idris_totcheckfail i ++ es })
| 92
| false
| true
| 0
| 11
| 21
| 62
| 32
| 30
| null | null |
ndmitchell/hlint
|
src/Hint/NewType.hs
|
bsd-3-clause
|
-- | Checks whether its argument is a \"simple\" constructor (see criteria in 'singleSimpleField')
-- returning the type inside the constructor if it is. This is needed for strictness analysis.
simpleCons :: ConDecl GhcPs -> Maybe (HsType GhcPs)
simpleCons (ConDeclH98 _ _ _ [] context (PrefixCon [] [HsScaled _ (L _ inType)]) _)
| emptyOrNoContext context
, not $ isUnboxedTuple inType
, not $ isHashy inType
= Just inType
| 439
|
simpleCons :: ConDecl GhcPs -> Maybe (HsType GhcPs)
simpleCons (ConDeclH98 _ _ _ [] context (PrefixCon [] [HsScaled _ (L _ inType)]) _)
| emptyOrNoContext context
, not $ isUnboxedTuple inType
, not $ isHashy inType
= Just inType
| 245
|
simpleCons (ConDeclH98 _ _ _ [] context (PrefixCon [] [HsScaled _ (L _ inType)]) _)
| emptyOrNoContext context
, not $ isUnboxedTuple inType
, not $ isHashy inType
= Just inType
| 193
| true
| true
| 0
| 13
| 84
| 112
| 53
| 59
| null | null |
zambonin/UFSC-INE5416
|
docs/haskell-examples/ine5416_r5.hs
|
gpl-3.0
|
pg n = [n*(2**(x-1)) | x <- [1..50]]
| 36
|
pg n = [n*(2**(x-1)) | x <- [1..50]]
| 36
|
pg n = [n*(2**(x-1)) | x <- [1..50]]
| 36
| false
| false
| 0
| 10
| 7
| 43
| 23
| 20
| null | null |
romanb/amazonka
|
amazonka-elastictranscoder/gen/Network/AWS/ElasticTranscoder/UpdatePipelineStatus.hs
|
mpl-2.0
|
-- | 'UpdatePipelineStatus' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'upsId' @::@ 'Text'
--
-- * 'upsStatus' @::@ 'Text'
--
updatePipelineStatus :: Text -- ^ 'upsId'
-> Text -- ^ 'upsStatus'
-> UpdatePipelineStatus
updatePipelineStatus p1 p2 = UpdatePipelineStatus
{ _upsId = p1
, _upsStatus = p2
}
| 398
|
updatePipelineStatus :: Text -- ^ 'upsId'
-> Text -- ^ 'upsStatus'
-> UpdatePipelineStatus
updatePipelineStatus p1 p2 = UpdatePipelineStatus
{ _upsId = p1
, _upsStatus = p2
}
| 232
|
updatePipelineStatus p1 p2 = UpdatePipelineStatus
{ _upsId = p1
, _upsStatus = p2
}
| 99
| true
| true
| 0
| 7
| 110
| 52
| 32
| 20
| null | null |
haskell-opengl/OpenGLRaw
|
src/Graphics/GL/Functions/F24.hs
|
bsd-3-clause
|
-- glScissorArrayvOES ----------------------------------------------------------
-- | This command is an alias for 'glScissorArrayv'.
glScissorArrayvOES
:: MonadIO m
=> GLuint -- ^ @first@.
-> GLsizei -- ^ @count@.
-> Ptr GLint -- ^ @v@ pointing to @COMPSIZE(count)@ elements of type @GLint@.
-> m ()
glScissorArrayvOES v1 v2 v3 = liftIO $ dyn739 ptr_glScissorArrayvOES v1 v2 v3
| 389
|
glScissorArrayvOES
:: MonadIO m
=> GLuint -- ^ @first@.
-> GLsizei -- ^ @count@.
-> Ptr GLint -- ^ @v@ pointing to @COMPSIZE(count)@ elements of type @GLint@.
-> m ()
glScissorArrayvOES v1 v2 v3 = liftIO $ dyn739 ptr_glScissorArrayvOES v1 v2 v3
| 254
|
glScissorArrayvOES v1 v2 v3 = liftIO $ dyn739 ptr_glScissorArrayvOES v1 v2 v3
| 77
| true
| true
| 0
| 11
| 64
| 67
| 33
| 34
| null | null |
fmapfmapfmap/amazonka
|
amazonka-support/gen/Network/AWS/Support/DescribeAttachment.hs
|
mpl-2.0
|
-- | The response status code.
darsResponseStatus :: Lens' DescribeAttachmentResponse Int
darsResponseStatus = lens _darsResponseStatus (\ s a -> s{_darsResponseStatus = a})
| 173
|
darsResponseStatus :: Lens' DescribeAttachmentResponse Int
darsResponseStatus = lens _darsResponseStatus (\ s a -> s{_darsResponseStatus = a})
| 142
|
darsResponseStatus = lens _darsResponseStatus (\ s a -> s{_darsResponseStatus = a})
| 83
| true
| true
| 1
| 9
| 21
| 43
| 22
| 21
| null | null |
faylang/fay-jquery
|
src/JQuery.hs
|
bsd-3-clause
|
hide :: Speed -> JQuery -> Fay JQuery
hide spd = animate Hide spd emptyCallback
| 79
|
hide :: Speed -> JQuery -> Fay JQuery
hide spd = animate Hide spd emptyCallback
| 79
|
hide spd = animate Hide spd emptyCallback
| 41
| false
| true
| 0
| 8
| 14
| 39
| 16
| 23
| null | null |
thalerjonathan/phd
|
coding/prototyping/haskell/declarativeABM/haskell/SpatialGameABS/src/PureAgentsPar.hs
|
gpl-3.0
|
-- TODO: new agents need to be added to the environment
collectAndClearNewAgents :: Map.Map AgentId (Agent m s e) -> ([(Agent m s e)], Map.Map AgentId (Agent m s e))
collectAndClearNewAgents am = Map.foldl (\(newAsAcc, amAcc) a -> (newAsAcc ++ (newAgents a), Map.insert (agentId a) a { newAgents = [] } amAcc)) ([], am) am
| 322
|
collectAndClearNewAgents :: Map.Map AgentId (Agent m s e) -> ([(Agent m s e)], Map.Map AgentId (Agent m s e))
collectAndClearNewAgents am = Map.foldl (\(newAsAcc, amAcc) a -> (newAsAcc ++ (newAgents a), Map.insert (agentId a) a { newAgents = [] } amAcc)) ([], am) am
| 266
|
collectAndClearNewAgents am = Map.foldl (\(newAsAcc, amAcc) a -> (newAsAcc ++ (newAgents a), Map.insert (agentId a) a { newAgents = [] } amAcc)) ([], am) am
| 156
| true
| true
| 0
| 12
| 54
| 151
| 79
| 72
| null | null |
literate-unitb/literate-unitb
|
src/Interactive/Pipeline.hs
|
mit
|
proof_report' :: Bool
-> Maybe String
-> M.Map Key (Seq,Maybe Bool)
-> [Error] -> Bool
-> [String]
proof_report' showSuccess pattern outs es isWorking =
header ++
ys ++
( if null es then []
else "> errors" : map report es ) ++
footer ++
[ if isWorking
then "> working ..."
else " "
]
where
header = maybe [] head pattern
footer = maybe [] foot pattern
head pat =
[ "#"
, "# Restricted to " ++ pat
, "#"
]
foot _ =
[ [s|# hidden: %d failures|] (length xs - length ys)
]
xs = filter (failure . snd) (zip [0..] $ M.toAscList outs)
ys = map f $ filter (match . snd) xs
match xs = maybe True (\f -> f `L.isInfixOf` map toLower (show $ snd $ fst xs)) pattern
failure :: (a,(b,Maybe Bool)) -> Bool
failure x
| showSuccess = True
| otherwise = maybe False not $ snd $ snd x
f (n,((m,lbl),(_,_))) = [s| x %s - %s (%d)|] (pretty m) (pretty lbl) n
| 1,303
|
proof_report' :: Bool
-> Maybe String
-> M.Map Key (Seq,Maybe Bool)
-> [Error] -> Bool
-> [String]
proof_report' showSuccess pattern outs es isWorking =
header ++
ys ++
( if null es then []
else "> errors" : map report es ) ++
footer ++
[ if isWorking
then "> working ..."
else " "
]
where
header = maybe [] head pattern
footer = maybe [] foot pattern
head pat =
[ "#"
, "# Restricted to " ++ pat
, "#"
]
foot _ =
[ [s|# hidden: %d failures|] (length xs - length ys)
]
xs = filter (failure . snd) (zip [0..] $ M.toAscList outs)
ys = map f $ filter (match . snd) xs
match xs = maybe True (\f -> f `L.isInfixOf` map toLower (show $ snd $ fst xs)) pattern
failure :: (a,(b,Maybe Bool)) -> Bool
failure x
| showSuccess = True
| otherwise = maybe False not $ snd $ snd x
f (n,((m,lbl),(_,_))) = [s| x %s - %s (%d)|] (pretty m) (pretty lbl) n
| 1,303
|
proof_report' showSuccess pattern outs es isWorking =
header ++
ys ++
( if null es then []
else "> errors" : map report es ) ++
footer ++
[ if isWorking
then "> working ..."
else " "
]
where
header = maybe [] head pattern
footer = maybe [] foot pattern
head pat =
[ "#"
, "# Restricted to " ++ pat
, "#"
]
foot _ =
[ [s|# hidden: %d failures|] (length xs - length ys)
]
xs = filter (failure . snd) (zip [0..] $ M.toAscList outs)
ys = map f $ filter (match . snd) xs
match xs = maybe True (\f -> f `L.isInfixOf` map toLower (show $ snd $ fst xs)) pattern
failure :: (a,(b,Maybe Bool)) -> Bool
failure x
| showSuccess = True
| otherwise = maybe False not $ snd $ snd x
f (n,((m,lbl),(_,_))) = [s| x %s - %s (%d)|] (pretty m) (pretty lbl) n
| 1,146
| false
| true
| 0
| 14
| 640
| 428
| 226
| 202
| null | null |
ganeti/ganeti
|
src/Ganeti/HTools/Program/Hbal.hs
|
bsd-2-clause
|
-- | Wraps an 'OpCode' in a 'MetaOpCode' while also adding a comment
-- about what generated the opcode.
annotateOpCode :: Maybe String -> Timestamp -> Jobs.Annotator
annotateOpCode reason ts =
over (metaParamsL . opReasonL)
(++ [( "hbal", fromMaybe ("hbal " ++ version ++ " called") reason
, reasonTrailTimestamp ts)])
. setOpComment ("rebalancing via hbal " ++ version)
. wrapOpCode
| 407
|
annotateOpCode :: Maybe String -> Timestamp -> Jobs.Annotator
annotateOpCode reason ts =
over (metaParamsL . opReasonL)
(++ [( "hbal", fromMaybe ("hbal " ++ version ++ " called") reason
, reasonTrailTimestamp ts)])
. setOpComment ("rebalancing via hbal " ++ version)
. wrapOpCode
| 302
|
annotateOpCode reason ts =
over (metaParamsL . opReasonL)
(++ [( "hbal", fromMaybe ("hbal " ++ version ++ " called") reason
, reasonTrailTimestamp ts)])
. setOpComment ("rebalancing via hbal " ++ version)
. wrapOpCode
| 240
| true
| true
| 2
| 12
| 82
| 99
| 51
| 48
| null | null |
Bugfry/exercises
|
exercism/haskell/luhn/src/Luhn.hs
|
mit
|
checkDigit :: Integral a => a -> a
checkDigit = (`mod` 10)
| 58
|
checkDigit :: Integral a => a -> a
checkDigit = (`mod` 10)
| 58
|
checkDigit = (`mod` 10)
| 23
| false
| true
| 0
| 6
| 11
| 28
| 16
| 12
| null | null |
amccausl/RDF4H
|
src/Data/RDF/Namespace.hs
|
bsd-3-clause
|
-- |The Dublin Core terms namespace.
dct :: Namespace
dct = mkPrefixedNS' "dct" "http://purl.org/dc/terms/"
| 116
|
dct :: Namespace
dct = mkPrefixedNS' "dct" "http://purl.org/dc/terms/"
| 79
|
dct = mkPrefixedNS' "dct" "http://purl.org/dc/terms/"
| 61
| true
| true
| 0
| 5
| 22
| 17
| 9
| 8
| null | null |
AKST/scheme.llvm
|
src/Data/IndexedSet.hs
|
mit
|
-- | O(n) Shreads metadata
toSet :: Ord a => IndexedSet a -> Set a
toSet (IndexedSet (set, _)) = S.map (snd . unEntry) set
| 123
|
toSet :: Ord a => IndexedSet a -> Set a
toSet (IndexedSet (set, _)) = S.map (snd . unEntry) set
| 95
|
toSet (IndexedSet (set, _)) = S.map (snd . unEntry) set
| 55
| true
| true
| 0
| 8
| 25
| 58
| 29
| 29
| null | null |
DanielG/stack
|
src/Stack/Setup.hs
|
bsd-3-clause
|
downloadAndInstallTool :: (MonadIO m, MonadMask m, MonadLogger m, MonadReader env m, HasConfig env, HasHttpManager env, MonadBaseControl IO m)
=> SetupInfo
-> DownloadInfo
-> PackageName
-> Version
-> (SetupInfo -> Path Abs File -> ArchiveType -> Path Abs Dir -> PackageIdentifier -> m ())
-> m PackageIdentifier
downloadAndInstallTool si downloadInfo name version installer = do
let ident = PackageIdentifier name version
(file, at) <- downloadFromInfo downloadInfo ident
dir <- installDir ident
unmarkInstalled ident
installer si file at dir ident
markInstalled ident
return ident
| 748
|
downloadAndInstallTool :: (MonadIO m, MonadMask m, MonadLogger m, MonadReader env m, HasConfig env, HasHttpManager env, MonadBaseControl IO m)
=> SetupInfo
-> DownloadInfo
-> PackageName
-> Version
-> (SetupInfo -> Path Abs File -> ArchiveType -> Path Abs Dir -> PackageIdentifier -> m ())
-> m PackageIdentifier
downloadAndInstallTool si downloadInfo name version installer = do
let ident = PackageIdentifier name version
(file, at) <- downloadFromInfo downloadInfo ident
dir <- installDir ident
unmarkInstalled ident
installer si file at dir ident
markInstalled ident
return ident
| 748
|
downloadAndInstallTool si downloadInfo name version installer = do
let ident = PackageIdentifier name version
(file, at) <- downloadFromInfo downloadInfo ident
dir <- installDir ident
unmarkInstalled ident
installer si file at dir ident
markInstalled ident
return ident
| 297
| false
| true
| 0
| 18
| 247
| 206
| 96
| 110
| null | null |
zachsully/hakaru
|
haskell/Language/Hakaru/Syntax/Datum.hs
|
bsd-3-clause
|
pRight :: Pattern vars b -> Pattern vars (HEither a b)
pRight y =
case eqAppendIdentity (varsOfPattern y) of
Refl -> PDatum tdRight . PInr . PInl $ PKonst y `PEt` PDone
| 176
|
pRight :: Pattern vars b -> Pattern vars (HEither a b)
pRight y =
case eqAppendIdentity (varsOfPattern y) of
Refl -> PDatum tdRight . PInr . PInl $ PKonst y `PEt` PDone
| 176
|
pRight y =
case eqAppendIdentity (varsOfPattern y) of
Refl -> PDatum tdRight . PInr . PInl $ PKonst y `PEt` PDone
| 121
| false
| true
| 1
| 9
| 39
| 79
| 38
| 41
| null | null |
Mahdi89/eTeak
|
src/Sim.hs
|
bsd-3-clause
|
diffChanGuardState :: PosContext c => Integer -> c -> ChanGuard -> SimState -> SimState -> [Maybe String]
diffChanGuardState time posContext (ChanGuard pos _ _ cmd)
(EncInputState inHs1 _ cmdState1) (EncInputState inHs2 _ cmdState2) =
[inHsMsg] ++ map Just (diffCmdState time posContext cmd cmdState1 cmdState2)
where
posStr = "(@" ++ show time ++ ":" ++ showPos (Just posContext) pos ++ ") "
inHsMsg
| inHs1 /= inHs2 = Just $ posStr ++ "enc-input " ++ show inHs1 ++ " -> " ++ show inHs2
| otherwise = Nothing
| 594
|
diffChanGuardState :: PosContext c => Integer -> c -> ChanGuard -> SimState -> SimState -> [Maybe String]
diffChanGuardState time posContext (ChanGuard pos _ _ cmd)
(EncInputState inHs1 _ cmdState1) (EncInputState inHs2 _ cmdState2) =
[inHsMsg] ++ map Just (diffCmdState time posContext cmd cmdState1 cmdState2)
where
posStr = "(@" ++ show time ++ ":" ++ showPos (Just posContext) pos ++ ") "
inHsMsg
| inHs1 /= inHs2 = Just $ posStr ++ "enc-input " ++ show inHs1 ++ " -> " ++ show inHs2
| otherwise = Nothing
| 590
|
diffChanGuardState time posContext (ChanGuard pos _ _ cmd)
(EncInputState inHs1 _ cmdState1) (EncInputState inHs2 _ cmdState2) =
[inHsMsg] ++ map Just (diffCmdState time posContext cmd cmdState1 cmdState2)
where
posStr = "(@" ++ show time ++ ":" ++ showPos (Just posContext) pos ++ ") "
inHsMsg
| inHs1 /= inHs2 = Just $ posStr ++ "enc-input " ++ show inHs1 ++ " -> " ++ show inHs2
| otherwise = Nothing
| 484
| false
| true
| 0
| 14
| 171
| 202
| 97
| 105
| null | null |
YoEight/mvc-gtk3-example
|
App/GUI.hs
|
mit
|
--------------------------------------------------------------------------------
makeGUI :: IO GUI
makeGUI = do
Gtk.initGUI
win <- Gtk.windowNew
-- Open File Dialog
odialog <- Gtk.fileChooserDialogNew (Just "Choose Source")
(Just win)
Gtk.FileChooserActionOpen
[("Open", Gtk.ResponseOk), ("Cancel", Gtk.ResponseCancel)]
-- Save File Dialog
sdialog <- Gtk.fileChooserDialogNew (Just "Choose Destination")
(Just win)
Gtk.FileChooserActionSave
[("Save", Gtk.ResponseOk), ("Cancel", Gtk.ResponseCancel)]
-- Vbox
vbox <- Gtk.vBoxNew True 10
srcb <- Gtk.buttonNewWithLabel "Choose source..."
destb <- Gtk.buttonNewWithLabel "Choose destination..."
dob <- Gtk.buttonNewWithLabel "Do it !"
Gtk.widgetSetSensitive destb False
Gtk.widgetSetSensitive dob False
Gtk.containerAdd vbox srcb
Gtk.containerAdd vbox destb
Gtk.containerAdd vbox dob
-- Configure main window
Gtk.set win [ Gtk.windowTitle Gtk.:= "MVC File Copier"
, Gtk.windowDefaultWidth Gtk.:= 200
, Gtk.containerBorderWidth Gtk.:= 10
, Gtk.containerChild Gtk.:= vbox
]
Gtk.on win Gtk.objectDestroy Gtk.mainQuit
Gtk.widgetShowAll win
return GUI{ guiOpenFileDialog = odialog
, guiSaveFileDialog = sdialog
, guiWindow = win
, guiSrcButton = srcb
, guiDestButton = destb
, guiDoItButton = dob
}
| 1,610
|
makeGUI :: IO GUI
makeGUI = do
Gtk.initGUI
win <- Gtk.windowNew
-- Open File Dialog
odialog <- Gtk.fileChooserDialogNew (Just "Choose Source")
(Just win)
Gtk.FileChooserActionOpen
[("Open", Gtk.ResponseOk), ("Cancel", Gtk.ResponseCancel)]
-- Save File Dialog
sdialog <- Gtk.fileChooserDialogNew (Just "Choose Destination")
(Just win)
Gtk.FileChooserActionSave
[("Save", Gtk.ResponseOk), ("Cancel", Gtk.ResponseCancel)]
-- Vbox
vbox <- Gtk.vBoxNew True 10
srcb <- Gtk.buttonNewWithLabel "Choose source..."
destb <- Gtk.buttonNewWithLabel "Choose destination..."
dob <- Gtk.buttonNewWithLabel "Do it !"
Gtk.widgetSetSensitive destb False
Gtk.widgetSetSensitive dob False
Gtk.containerAdd vbox srcb
Gtk.containerAdd vbox destb
Gtk.containerAdd vbox dob
-- Configure main window
Gtk.set win [ Gtk.windowTitle Gtk.:= "MVC File Copier"
, Gtk.windowDefaultWidth Gtk.:= 200
, Gtk.containerBorderWidth Gtk.:= 10
, Gtk.containerChild Gtk.:= vbox
]
Gtk.on win Gtk.objectDestroy Gtk.mainQuit
Gtk.widgetShowAll win
return GUI{ guiOpenFileDialog = odialog
, guiSaveFileDialog = sdialog
, guiWindow = win
, guiSrcButton = srcb
, guiDestButton = destb
, guiDoItButton = dob
}
| 1,529
|
makeGUI = do
Gtk.initGUI
win <- Gtk.windowNew
-- Open File Dialog
odialog <- Gtk.fileChooserDialogNew (Just "Choose Source")
(Just win)
Gtk.FileChooserActionOpen
[("Open", Gtk.ResponseOk), ("Cancel", Gtk.ResponseCancel)]
-- Save File Dialog
sdialog <- Gtk.fileChooserDialogNew (Just "Choose Destination")
(Just win)
Gtk.FileChooserActionSave
[("Save", Gtk.ResponseOk), ("Cancel", Gtk.ResponseCancel)]
-- Vbox
vbox <- Gtk.vBoxNew True 10
srcb <- Gtk.buttonNewWithLabel "Choose source..."
destb <- Gtk.buttonNewWithLabel "Choose destination..."
dob <- Gtk.buttonNewWithLabel "Do it !"
Gtk.widgetSetSensitive destb False
Gtk.widgetSetSensitive dob False
Gtk.containerAdd vbox srcb
Gtk.containerAdd vbox destb
Gtk.containerAdd vbox dob
-- Configure main window
Gtk.set win [ Gtk.windowTitle Gtk.:= "MVC File Copier"
, Gtk.windowDefaultWidth Gtk.:= 200
, Gtk.containerBorderWidth Gtk.:= 10
, Gtk.containerChild Gtk.:= vbox
]
Gtk.on win Gtk.objectDestroy Gtk.mainQuit
Gtk.widgetShowAll win
return GUI{ guiOpenFileDialog = odialog
, guiSaveFileDialog = sdialog
, guiWindow = win
, guiSrcButton = srcb
, guiDestButton = destb
, guiDoItButton = dob
}
| 1,511
| true
| true
| 0
| 12
| 510
| 369
| 183
| 186
| null | null |
4ZP6Capstone2015/ampersand
|
src/Database/Design/Ampersand/Test/Parser/ArbitraryTree.hs
|
gpl-3.0
|
genConceptOne :: Gen P_Concept
genConceptOne = oneof [arbitrary, return P_Singleton]
| 84
|
genConceptOne :: Gen P_Concept
genConceptOne = oneof [arbitrary, return P_Singleton]
| 84
|
genConceptOne = oneof [arbitrary, return P_Singleton]
| 53
| false
| true
| 0
| 7
| 9
| 32
| 14
| 18
| null | null |
nushio3/ghc
|
compiler/stgSyn/StgSyn.hs
|
bsd-3-clause
|
-- | Strip ticks of a given type from an STG expression
stripStgTicksTop :: (Tickish Id -> Bool) -> StgExpr -> ([Tickish Id], StgExpr)
stripStgTicksTop p = go []
where go ts (StgTick t e) | p t = go (t:ts) e
go ts other = (reverse ts, other)
{-
************************************************************************
* *
\subsection{STG expressions}
* *
************************************************************************
The @GenStgExpr@ data type is parameterised on binder and occurrence
info, as before.
************************************************************************
* *
\subsubsection{@GenStgExpr@ application}
* *
************************************************************************
An application is of a function to a list of atoms [not expressions].
Operationally, we want to push the arguments on the stack and call the
function. (If the arguments were expressions, we would have to build
their closures first.)
There is no constructor for a lone variable; it would appear as
@StgApp var []@.
-}
| 1,333
|
stripStgTicksTop :: (Tickish Id -> Bool) -> StgExpr -> ([Tickish Id], StgExpr)
stripStgTicksTop p = go []
where go ts (StgTick t e) | p t = go (t:ts) e
go ts other = (reverse ts, other)
{-
************************************************************************
* *
\subsection{STG expressions}
* *
************************************************************************
The @GenStgExpr@ data type is parameterised on binder and occurrence
info, as before.
************************************************************************
* *
\subsubsection{@GenStgExpr@ application}
* *
************************************************************************
An application is of a function to a list of atoms [not expressions].
Operationally, we want to push the arguments on the stack and call the
function. (If the arguments were expressions, we would have to build
their closures first.)
There is no constructor for a lone variable; it would appear as
@StgApp var []@.
-}
| 1,277
|
stripStgTicksTop p = go []
where go ts (StgTick t e) | p t = go (t:ts) e
go ts other = (reverse ts, other)
{-
************************************************************************
* *
\subsection{STG expressions}
* *
************************************************************************
The @GenStgExpr@ data type is parameterised on binder and occurrence
info, as before.
************************************************************************
* *
\subsubsection{@GenStgExpr@ application}
* *
************************************************************************
An application is of a function to a list of atoms [not expressions].
Operationally, we want to push the arguments on the stack and call the
function. (If the arguments were expressions, we would have to build
their closures first.)
There is no constructor for a lone variable; it would appear as
@StgApp var []@.
-}
| 1,198
| true
| true
| 0
| 10
| 442
| 111
| 56
| 55
| null | null |
Zolomon/edan40-functional-programming
|
standardprelude.hs
|
mit
|
sumsqrcrv n = sumsqrcrv (n-1) ++ [n^2]
| 38
|
sumsqrcrv n = sumsqrcrv (n-1) ++ [n^2]
| 38
|
sumsqrcrv n = sumsqrcrv (n-1) ++ [n^2]
| 38
| false
| false
| 0
| 8
| 6
| 30
| 15
| 15
| null | null |
bkoropoff/Idris-dev
|
src/Idris/Reflection.hs
|
bsd-3-clause
|
reifyTTApp t [n, b, x]
| t == reflm "Bind" = do n' <- reifyTTName n
b' <- reifyTTBinder reifyTT (reflm "TT") b
x' <- reifyTT x
return $ Bind n' b' x'
| 268
|
reifyTTApp t [n, b, x]
| t == reflm "Bind" = do n' <- reifyTTName n
b' <- reifyTTBinder reifyTT (reflm "TT") b
x' <- reifyTT x
return $ Bind n' b' x'
| 268
|
reifyTTApp t [n, b, x]
| t == reflm "Bind" = do n' <- reifyTTName n
b' <- reifyTTBinder reifyTT (reflm "TT") b
x' <- reifyTT x
return $ Bind n' b' x'
| 268
| false
| false
| 0
| 11
| 151
| 87
| 39
| 48
| null | null |
jannschu/bitlove-ui
|
Model/User.hs
|
bsd-2-clause
|
userSalt :: UserName -> Query UserSalt
userSalt user =
query "SELECT \"salt\", \"salted\" FROM users WHERE \"name\"=?" [toSql user]
| 135
|
userSalt :: UserName -> Query UserSalt
userSalt user =
query "SELECT \"salt\", \"salted\" FROM users WHERE \"name\"=?" [toSql user]
| 135
|
userSalt user =
query "SELECT \"salt\", \"salted\" FROM users WHERE \"name\"=?" [toSql user]
| 96
| false
| true
| 0
| 7
| 22
| 32
| 15
| 17
| null | null |
sherwoodwang/wxHaskell
|
wxcore/src/haskell/Graphics/UI/WXCore/Events.hs
|
lgpl-2.1
|
timerOnCommand :: TimerEx a -> IO () -> IO ()
timerOnCommand timer io
= do closure <- createClosure io (\_ownerDeleted -> return ()) (\_ev -> io)
timerExConnect timer closure
-- | Get the current timer event handler.
| 226
|
timerOnCommand :: TimerEx a -> IO () -> IO ()
timerOnCommand timer io
= do closure <- createClosure io (\_ownerDeleted -> return ()) (\_ev -> io)
timerExConnect timer closure
-- | Get the current timer event handler.
| 226
|
timerOnCommand timer io
= do closure <- createClosure io (\_ownerDeleted -> return ()) (\_ev -> io)
timerExConnect timer closure
-- | Get the current timer event handler.
| 180
| false
| true
| 0
| 13
| 46
| 86
| 40
| 46
| null | null |
unisonweb/platform
|
parser-typechecker/src/Unison/DeclPrinter.hs
|
mit
|
prettyGADT
:: Var v
=> PrettyPrintEnv
-> CT.ConstructorType
-> Reference
-> HashQualified Name
-> DataDeclaration v a
-> Pretty SyntaxText
prettyGADT env ctorType r name dd = P.hang header . P.lines $ constructor <$> zip
[0 ..]
(DD.constructors' dd)
where
constructor (n, (_, _, t)) =
prettyPattern env ctorType r name n
<> (fmt S.TypeAscriptionColon " :")
`P.hang` TypePrinter.pretty0 env Map.empty (-1) t
header = prettyEffectHeader name (DD.EffectDeclaration dd) <> (fmt S.ControlKeyword " where")
| 545
|
prettyGADT
:: Var v
=> PrettyPrintEnv
-> CT.ConstructorType
-> Reference
-> HashQualified Name
-> DataDeclaration v a
-> Pretty SyntaxText
prettyGADT env ctorType r name dd = P.hang header . P.lines $ constructor <$> zip
[0 ..]
(DD.constructors' dd)
where
constructor (n, (_, _, t)) =
prettyPattern env ctorType r name n
<> (fmt S.TypeAscriptionColon " :")
`P.hang` TypePrinter.pretty0 env Map.empty (-1) t
header = prettyEffectHeader name (DD.EffectDeclaration dd) <> (fmt S.ControlKeyword " where")
| 545
|
prettyGADT env ctorType r name dd = P.hang header . P.lines $ constructor <$> zip
[0 ..]
(DD.constructors' dd)
where
constructor (n, (_, _, t)) =
prettyPattern env ctorType r name n
<> (fmt S.TypeAscriptionColon " :")
`P.hang` TypePrinter.pretty0 env Map.empty (-1) t
header = prettyEffectHeader name (DD.EffectDeclaration dd) <> (fmt S.ControlKeyword " where")
| 392
| false
| true
| 3
| 12
| 118
| 227
| 106
| 121
| null | null |
leshchevds/ganeti
|
src/Ganeti/Constants.hs
|
bsd-2-clause
|
confdNodeRoleRegular :: Int
confdNodeRoleRegular = Types.confdNodeRoleToRaw NodeRoleRegular
| 91
|
confdNodeRoleRegular :: Int
confdNodeRoleRegular = Types.confdNodeRoleToRaw NodeRoleRegular
| 91
|
confdNodeRoleRegular = Types.confdNodeRoleToRaw NodeRoleRegular
| 63
| false
| true
| 0
| 6
| 6
| 16
| 8
| 8
| null | null |
gnn/Hets
|
CSL/InteractiveTests.hs
|
gpl-2.0
|
testWithCASGen :: ( AssignmentStore as, MonadState (ASState st) as, MonadIO as) =>
(AssignmentDepGraph () -> as a -> IO (ASState st, a))
-> as b -> ([Named CMD] -> as a)
-> String -> String -> IO (ASState st, a)
testWithCASGen rf ip f lb sp = do
ncl <- fmap sigsensNamedSentences $ sigsensGen lb sp
-- get ordered assignment store and program
(as, prog) <- assStoreAndProgSimple ncl
vchdl <- openFile "/tmp/vc.out" WriteMode
-- build the dependency graph
let gr = assDepGraphFromDescList (const $ const ()) as
{- make sure that the assignment store is loaded into maple before
the execution of f -}
g x = ip >> loadAS as >> modify (\ mit -> mit {vericondOut = Just vchdl}) >> f x
-- start maple and run g
res <- rf gr $ (withLogFile "/tmp/evalWV.txt" . g) prog
hClose vchdl
return res
{- ----------------------------------------------------------------------
Temp tools
---------------------------------------------------------------------- -}
-- | Returns all constants where the given constants depend on
| 1,111
|
testWithCASGen :: ( AssignmentStore as, MonadState (ASState st) as, MonadIO as) =>
(AssignmentDepGraph () -> as a -> IO (ASState st, a))
-> as b -> ([Named CMD] -> as a)
-> String -> String -> IO (ASState st, a)
testWithCASGen rf ip f lb sp = do
ncl <- fmap sigsensNamedSentences $ sigsensGen lb sp
-- get ordered assignment store and program
(as, prog) <- assStoreAndProgSimple ncl
vchdl <- openFile "/tmp/vc.out" WriteMode
-- build the dependency graph
let gr = assDepGraphFromDescList (const $ const ()) as
{- make sure that the assignment store is loaded into maple before
the execution of f -}
g x = ip >> loadAS as >> modify (\ mit -> mit {vericondOut = Just vchdl}) >> f x
-- start maple and run g
res <- rf gr $ (withLogFile "/tmp/evalWV.txt" . g) prog
hClose vchdl
return res
{- ----------------------------------------------------------------------
Temp tools
---------------------------------------------------------------------- -}
-- | Returns all constants where the given constants depend on
| 1,111
|
testWithCASGen rf ip f lb sp = do
ncl <- fmap sigsensNamedSentences $ sigsensGen lb sp
-- get ordered assignment store and program
(as, prog) <- assStoreAndProgSimple ncl
vchdl <- openFile "/tmp/vc.out" WriteMode
-- build the dependency graph
let gr = assDepGraphFromDescList (const $ const ()) as
{- make sure that the assignment store is loaded into maple before
the execution of f -}
g x = ip >> loadAS as >> modify (\ mit -> mit {vericondOut = Just vchdl}) >> f x
-- start maple and run g
res <- rf gr $ (withLogFile "/tmp/evalWV.txt" . g) prog
hClose vchdl
return res
{- ----------------------------------------------------------------------
Temp tools
---------------------------------------------------------------------- -}
-- | Returns all constants where the given constants depend on
| 837
| false
| true
| 0
| 17
| 265
| 299
| 145
| 154
| null | null |
gbwey/persistent
|
persistent-mongoDB/test/EmbedTestMongo.hs
|
mit
|
unlessM :: MonadIO m => IO Bool -> m () -> m ()
unlessM predicate body = do
b <- liftIO predicate
unless b body
| 119
|
unlessM :: MonadIO m => IO Bool -> m () -> m ()
unlessM predicate body = do
b <- liftIO predicate
unless b body
| 119
|
unlessM predicate body = do
b <- liftIO predicate
unless b body
| 71
| false
| true
| 0
| 9
| 32
| 62
| 27
| 35
| null | null |
fmapfmapfmap/amazonka
|
amazonka-glacier/gen/Network/AWS/Glacier/InitiateMultipartUpload.hs
|
mpl-2.0
|
-- | The archive description that you are uploading in parts.
--
-- The part size must be a megabyte (1024 KB) multiplied by a power of 2,
-- for example 1048576 (1 MB), 2097152 (2 MB), 4194304 (4 MB), 8388608 (8
-- MB), and so on. The minimum allowable part size is 1 MB, and the maximum
-- is 4 GB (4096 MB).
imuArchiveDescription :: Lens' InitiateMultipartUpload (Maybe Text)
imuArchiveDescription = lens _imuArchiveDescription (\ s a -> s{_imuArchiveDescription = a})
| 471
|
imuArchiveDescription :: Lens' InitiateMultipartUpload (Maybe Text)
imuArchiveDescription = lens _imuArchiveDescription (\ s a -> s{_imuArchiveDescription = a})
| 160
|
imuArchiveDescription = lens _imuArchiveDescription (\ s a -> s{_imuArchiveDescription = a})
| 92
| true
| true
| 0
| 9
| 80
| 51
| 30
| 21
| null | null |
glguy/advent2016
|
Day18.hs
|
isc
|
rule :: Char -> Char -> Char
rule x y
| x == y = '.'
| otherwise = '^'
| 77
|
rule :: Char -> Char -> Char
rule x y
| x == y = '.'
| otherwise = '^'
| 77
|
rule x y
| x == y = '.'
| otherwise = '^'
| 48
| false
| true
| 1
| 8
| 26
| 47
| 21
| 26
| null | null |
amccausl/Swish
|
Swish/HaskellRDF/RDFGraphTest.hs
|
lgpl-2.1
|
v3 = Var "v3" :: RDFLabel
| 28
|
v3 = Var "v3" :: RDFLabel
| 28
|
v3 = Var "v3" :: RDFLabel
| 28
| false
| false
| 0
| 5
| 8
| 15
| 7
| 8
| null | null |
VyacheslavHashov/servant-auth-token
|
src/Servant/Server/Auth/Token.hs
|
bsd-3-clause
|
authSigninGetCode :: AuthHandler m
=> Maybe Login -- ^ User login, required
-> m Unit
authSigninGetCode mlogin = do
login <- require "login" mlogin
uinfo <- guard404 "user" $ readUserInfoByLogin login
let uid = toKey $ respUserId uinfo
AuthConfig{..} <- getConfig
code <- liftIO singleUseCodeGenerator
expire <- makeSingleUseExpire singleUseCodeExpire
registerSingleUseCode uid code (Just expire)
liftIO $ singleUseCodeSender uinfo code
return Unit
-- | Authorisation via code of single usage.
--
-- Logic of authorisation via this method is:
--
-- * Client sends GET request to 'AuthSigninGetCodeMethod' endpoint
--
-- * Server generates single use token and sends it via
-- SMS or email, defined in configuration by 'singleUseCodeSender' field.
--
-- * Client sends POST request to 'AuthSigninPostCodeMethod' endpoint
--
-- * Server responds with auth token.
--
-- * Client uses the token with other requests as authorisation
-- header
--
-- * Client can extend lifetime of token by periodically pinging
-- of 'AuthTouchMethod' endpoint
--
-- * Client can invalidate token instantly by 'AuthSignoutMethod'
--
-- * Client can get info about user with 'AuthTokenInfoMethod' endpoint.
--
-- See also: 'authSigninGetCode'
| 1,246
|
authSigninGetCode :: AuthHandler m
=> Maybe Login -- ^ User login, required
-> m Unit
authSigninGetCode mlogin = do
login <- require "login" mlogin
uinfo <- guard404 "user" $ readUserInfoByLogin login
let uid = toKey $ respUserId uinfo
AuthConfig{..} <- getConfig
code <- liftIO singleUseCodeGenerator
expire <- makeSingleUseExpire singleUseCodeExpire
registerSingleUseCode uid code (Just expire)
liftIO $ singleUseCodeSender uinfo code
return Unit
-- | Authorisation via code of single usage.
--
-- Logic of authorisation via this method is:
--
-- * Client sends GET request to 'AuthSigninGetCodeMethod' endpoint
--
-- * Server generates single use token and sends it via
-- SMS or email, defined in configuration by 'singleUseCodeSender' field.
--
-- * Client sends POST request to 'AuthSigninPostCodeMethod' endpoint
--
-- * Server responds with auth token.
--
-- * Client uses the token with other requests as authorisation
-- header
--
-- * Client can extend lifetime of token by periodically pinging
-- of 'AuthTouchMethod' endpoint
--
-- * Client can invalidate token instantly by 'AuthSignoutMethod'
--
-- * Client can get info about user with 'AuthTokenInfoMethod' endpoint.
--
-- See also: 'authSigninGetCode'
| 1,246
|
authSigninGetCode mlogin = do
login <- require "login" mlogin
uinfo <- guard404 "user" $ readUserInfoByLogin login
let uid = toKey $ respUserId uinfo
AuthConfig{..} <- getConfig
code <- liftIO singleUseCodeGenerator
expire <- makeSingleUseExpire singleUseCodeExpire
registerSingleUseCode uid code (Just expire)
liftIO $ singleUseCodeSender uinfo code
return Unit
-- | Authorisation via code of single usage.
--
-- Logic of authorisation via this method is:
--
-- * Client sends GET request to 'AuthSigninGetCodeMethod' endpoint
--
-- * Server generates single use token and sends it via
-- SMS or email, defined in configuration by 'singleUseCodeSender' field.
--
-- * Client sends POST request to 'AuthSigninPostCodeMethod' endpoint
--
-- * Server responds with auth token.
--
-- * Client uses the token with other requests as authorisation
-- header
--
-- * Client can extend lifetime of token by periodically pinging
-- of 'AuthTouchMethod' endpoint
--
-- * Client can invalidate token instantly by 'AuthSignoutMethod'
--
-- * Client can get info about user with 'AuthTokenInfoMethod' endpoint.
--
-- See also: 'authSigninGetCode'
| 1,156
| false
| true
| 0
| 11
| 211
| 169
| 86
| 83
| null | null |
RichCreameryButter/my-xmonad-ubuntu-conf
|
xmonad.hs
|
mit
|
-- which terminal software to use
myIMRosterTitle = "Contact List"
| 71
|
myIMRosterTitle = "Contact List"
| 37
|
myIMRosterTitle = "Contact List"
| 37
| true
| false
| 1
| 5
| 14
| 11
| 4
| 7
| null | null |
arekfu/project_euler
|
p0068/p0068.hs
|
mit
|
buildRings rSize tot = buildRings' s rSize s []
where s = theKSplits rSize tot
--buildRings' allS n ss acc | trace (unlines ["***START***",show allS, show n, show ss, show acc,"***STOP***"]) False = undefined
| 213
|
buildRings rSize tot = buildRings' s rSize s []
where s = theKSplits rSize tot
--buildRings' allS n ss acc | trace (unlines ["***START***",show allS, show n, show ss, show acc,"***STOP***"]) False = undefined
| 213
|
buildRings rSize tot = buildRings' s rSize s []
where s = theKSplits rSize tot
--buildRings' allS n ss acc | trace (unlines ["***START***",show allS, show n, show ss, show acc,"***STOP***"]) False = undefined
| 213
| false
| false
| 0
| 7
| 38
| 35
| 17
| 18
| null | null |
bitemyapp/stm-chans
|
test/bench/Control/Concurrent/STM/TBMChan1.hs
|
bsd-3-clause
|
closeTBMChan :: TBMChan a -> STM ()
closeTBMChan (TBMChan closed _limit _chan) =
writeTVar closed True
| 106
|
closeTBMChan :: TBMChan a -> STM ()
closeTBMChan (TBMChan closed _limit _chan) =
writeTVar closed True
| 106
|
closeTBMChan (TBMChan closed _limit _chan) =
writeTVar closed True
| 70
| false
| true
| 0
| 7
| 19
| 41
| 19
| 22
| null | null |
vTurbine/ghc
|
compiler/main/TidyPgm.hs
|
bsd-3-clause
|
tidyTopBinds :: HscEnv
-> Module
-> UnfoldEnv
-> TidyOccEnv
-> CoreProgram
-> IO (TidyEnv, CoreProgram)
tidyTopBinds hsc_env this_mod unfold_env init_occ_env binds
= do mkIntegerId <- lookupMkIntegerName dflags hsc_env
integerSDataCon <- lookupIntegerSDataConName dflags hsc_env
let cvt_integer = cvtLitInteger dflags mkIntegerId integerSDataCon
return $ tidy cvt_integer init_env binds
where
dflags = hsc_dflags hsc_env
init_env = (init_occ_env, emptyVarEnv)
this_pkg = thisPackage dflags
tidy _ env [] = (env, [])
tidy cvt_integer env (b:bs)
= let (env1, b') = tidyTopBind dflags this_pkg this_mod
cvt_integer unfold_env env b
(env2, bs') = tidy cvt_integer env1 bs
in (env2, b':bs')
------------------------
| 913
|
tidyTopBinds :: HscEnv
-> Module
-> UnfoldEnv
-> TidyOccEnv
-> CoreProgram
-> IO (TidyEnv, CoreProgram)
tidyTopBinds hsc_env this_mod unfold_env init_occ_env binds
= do mkIntegerId <- lookupMkIntegerName dflags hsc_env
integerSDataCon <- lookupIntegerSDataConName dflags hsc_env
let cvt_integer = cvtLitInteger dflags mkIntegerId integerSDataCon
return $ tidy cvt_integer init_env binds
where
dflags = hsc_dflags hsc_env
init_env = (init_occ_env, emptyVarEnv)
this_pkg = thisPackage dflags
tidy _ env [] = (env, [])
tidy cvt_integer env (b:bs)
= let (env1, b') = tidyTopBind dflags this_pkg this_mod
cvt_integer unfold_env env b
(env2, bs') = tidy cvt_integer env1 bs
in (env2, b':bs')
------------------------
| 912
|
tidyTopBinds hsc_env this_mod unfold_env init_occ_env binds
= do mkIntegerId <- lookupMkIntegerName dflags hsc_env
integerSDataCon <- lookupIntegerSDataConName dflags hsc_env
let cvt_integer = cvtLitInteger dflags mkIntegerId integerSDataCon
return $ tidy cvt_integer init_env binds
where
dflags = hsc_dflags hsc_env
init_env = (init_occ_env, emptyVarEnv)
this_pkg = thisPackage dflags
tidy _ env [] = (env, [])
tidy cvt_integer env (b:bs)
= let (env1, b') = tidyTopBind dflags this_pkg this_mod
cvt_integer unfold_env env b
(env2, bs') = tidy cvt_integer env1 bs
in (env2, b':bs')
------------------------
| 743
| false
| true
| 0
| 11
| 296
| 239
| 120
| 119
| null | null |
TomMD/ghc
|
compiler/main/CmdLineParser.hs
|
bsd-3-clause
|
arg_ok (AnySuffixPred p _) _ arg = p arg
| 44
|
arg_ok (AnySuffixPred p _) _ arg = p arg
| 44
|
arg_ok (AnySuffixPred p _) _ arg = p arg
| 44
| false
| false
| 1
| 7
| 12
| 26
| 11
| 15
| null | null |
CarstenKoenig/AdventOfCode2016
|
Day16/Main.hs
|
mit
|
checkSum' :: String -> String
checkSum' dt =
let dt' = reduce dt
in if even (length dt')
then checkSum' dt'
else dt'
| 130
|
checkSum' :: String -> String
checkSum' dt =
let dt' = reduce dt
in if even (length dt')
then checkSum' dt'
else dt'
| 130
|
checkSum' dt =
let dt' = reduce dt
in if even (length dt')
then checkSum' dt'
else dt'
| 100
| false
| true
| 0
| 10
| 36
| 52
| 25
| 27
| null | null |
oldmanmike/vulkan
|
generate/src/Spec/Type.hs
|
bsd-3-clause
|
typeDeclCType (AStructType _) = Nothing
| 45
|
typeDeclCType (AStructType _) = Nothing
| 45
|
typeDeclCType (AStructType _) = Nothing
| 45
| false
| false
| 0
| 7
| 10
| 15
| 7
| 8
| null | null |
ghcjs/jsaddle-dom
|
src/JSDOM/Custom/Database.hs
|
mit
|
-- | <https://developer.mozilla.org/en-US/docs/Web/API/Database.transaction Mozilla Database.transaction documentation>
transaction' :: (MonadDOM m) => Database -> (SQLTransaction -> DOM ()) -> m (Maybe SQLError)
transaction' self callback =
withSQLTransactionCallback callback $ \transaction ->
withSQLErrorCallbacks $ \e s ->
Generated.transaction self transaction e s
| 394
|
transaction' :: (MonadDOM m) => Database -> (SQLTransaction -> DOM ()) -> m (Maybe SQLError)
transaction' self callback =
withSQLTransactionCallback callback $ \transaction ->
withSQLErrorCallbacks $ \e s ->
Generated.transaction self transaction e s
| 274
|
transaction' self callback =
withSQLTransactionCallback callback $ \transaction ->
withSQLErrorCallbacks $ \e s ->
Generated.transaction self transaction e s
| 181
| true
| true
| 0
| 11
| 63
| 89
| 45
| 44
| null | null |
ku-fpg/kansas-amber
|
legacy/Parts/SevenSegmentCodes.hs
|
bsd-3-clause
|
-- | Convert a character to a bit-pattern, suitable for display on a seven-segment display.
-- Note that most characters are just not representable in a 7-segment display, in which
-- case we map it to 'Nothing'. However, some substitutions are done, for instance '(' is
-- displayed the same as '['.
--
-- The return value is a 'Word8', although only 7-bits are used; the least significant bit will
-- always be 0. With the traditional coding, the bits correspond to segments ABCDEFG0, i.e.,
-- most-significant-bit will be for segment A, next for segment B, and so on.
char2SS :: Char -> Maybe Word8
char2SS = (`lookup` tbl)
where tbl = [ ('"', 0x44), ('\'', 0x40), ('(', 0x9C), (')', 0xF0), ('-', 0x02), ('0', 0xFC), ('1', 0x60), ('2', 0xDA), ('3', 0xF2), ('4', 0x66), ('5', 0xB6)
, ('6', 0xBE), ('7', 0xE0), ('8', 0xFE), ('9', 0xF6), ('=', 0x12), ('?', 0xCA), ('A', 0xEE), ('B', 0x3E), ('C', 0x9C), ('D', 0x7A), ('E', 0x9E)
, ('F', 0x8E), ('G', 0xBC), ('H', 0x6E), ('I', 0x60), ('J', 0x78), ('L', 0x1C), ('N', 0x2A), ('O', 0xFC), ('P', 0xCE), ('R', 0x0A), ('S', 0xB6)
, ('T', 0x1E), ('U', 0x7C), ('Y', 0x76), ('[', 0x9C), (']', 0xF0), ('_', 0x10), ('a', 0xFA), ('b', 0x3E), ('c', 0x1A), ('d', 0x7A), ('e', 0xDE)
, ('f', 0x8E), ('g', 0xBC), ('h', 0x2E), ('i', 0x20), ('j', 0x78), ('l', 0x1C), ('n', 0x2A), ('o', 0x3A), ('p', 0xCE), ('q', 0xE7), ('r', 0x0A)
, ('s', 0xB6), ('t', 0x1E), ('u', 0x38), ('y', 0x76), (' ', 0x00)
]
| 1,566
|
char2SS :: Char -> Maybe Word8
char2SS = (`lookup` tbl)
where tbl = [ ('"', 0x44), ('\'', 0x40), ('(', 0x9C), (')', 0xF0), ('-', 0x02), ('0', 0xFC), ('1', 0x60), ('2', 0xDA), ('3', 0xF2), ('4', 0x66), ('5', 0xB6)
, ('6', 0xBE), ('7', 0xE0), ('8', 0xFE), ('9', 0xF6), ('=', 0x12), ('?', 0xCA), ('A', 0xEE), ('B', 0x3E), ('C', 0x9C), ('D', 0x7A), ('E', 0x9E)
, ('F', 0x8E), ('G', 0xBC), ('H', 0x6E), ('I', 0x60), ('J', 0x78), ('L', 0x1C), ('N', 0x2A), ('O', 0xFC), ('P', 0xCE), ('R', 0x0A), ('S', 0xB6)
, ('T', 0x1E), ('U', 0x7C), ('Y', 0x76), ('[', 0x9C), (']', 0xF0), ('_', 0x10), ('a', 0xFA), ('b', 0x3E), ('c', 0x1A), ('d', 0x7A), ('e', 0xDE)
, ('f', 0x8E), ('g', 0xBC), ('h', 0x2E), ('i', 0x20), ('j', 0x78), ('l', 0x1C), ('n', 0x2A), ('o', 0x3A), ('p', 0xCE), ('q', 0xE7), ('r', 0x0A)
, ('s', 0xB6), ('t', 0x1E), ('u', 0x38), ('y', 0x76), (' ', 0x00)
]
| 994
|
char2SS = (`lookup` tbl)
where tbl = [ ('"', 0x44), ('\'', 0x40), ('(', 0x9C), (')', 0xF0), ('-', 0x02), ('0', 0xFC), ('1', 0x60), ('2', 0xDA), ('3', 0xF2), ('4', 0x66), ('5', 0xB6)
, ('6', 0xBE), ('7', 0xE0), ('8', 0xFE), ('9', 0xF6), ('=', 0x12), ('?', 0xCA), ('A', 0xEE), ('B', 0x3E), ('C', 0x9C), ('D', 0x7A), ('E', 0x9E)
, ('F', 0x8E), ('G', 0xBC), ('H', 0x6E), ('I', 0x60), ('J', 0x78), ('L', 0x1C), ('N', 0x2A), ('O', 0xFC), ('P', 0xCE), ('R', 0x0A), ('S', 0xB6)
, ('T', 0x1E), ('U', 0x7C), ('Y', 0x76), ('[', 0x9C), (']', 0xF0), ('_', 0x10), ('a', 0xFA), ('b', 0x3E), ('c', 0x1A), ('d', 0x7A), ('e', 0xDE)
, ('f', 0x8E), ('g', 0xBC), ('h', 0x2E), ('i', 0x20), ('j', 0x78), ('l', 0x1C), ('n', 0x2A), ('o', 0x3A), ('p', 0xCE), ('q', 0xE7), ('r', 0x0A)
, ('s', 0xB6), ('t', 0x1E), ('u', 0x38), ('y', 0x76), (' ', 0x00)
]
| 963
| true
| true
| 0
| 6
| 378
| 580
| 386
| 194
| null | null |
JoeyEremondi/utrecht-apa-p1
|
src/Generate/Cases.hs
|
bsd-3-clause
|
isCon (p:_, _) =
case p of
P.Data _ _ -> True
P.Literal _ -> True
_ -> False
| 109
|
isCon (p:_, _) =
case p of
P.Data _ _ -> True
P.Literal _ -> True
_ -> False
| 109
|
isCon (p:_, _) =
case p of
P.Data _ _ -> True
P.Literal _ -> True
_ -> False
| 109
| false
| false
| 0
| 9
| 51
| 53
| 26
| 27
| null | null |
spinda/liquidhaskell
|
src/Language/Haskell/Liquid/Pipeline/Rewrite.hs
|
bsd-3-clause
|
rewriteType _ ty = ty
| 22
|
rewriteType _ ty = ty
| 22
|
rewriteType _ ty = ty
| 22
| false
| false
| 0
| 5
| 5
| 11
| 5
| 6
| null | null |
bgamari/GGen
|
GGen/Render.hs
|
gpl-3.0
|
moveToPt, lineToPt :: P2 -> Render ()
lineToPt p = let (x,y) = unp2 p in lineTo x y
| 83
|
moveToPt, lineToPt :: P2 -> Render ()
lineToPt p = let (x,y) = unp2 p in lineTo x y
| 83
|
lineToPt p = let (x,y) = unp2 p in lineTo x y
| 45
| false
| true
| 2
| 9
| 18
| 59
| 26
| 33
| null | null |
Solumin/ScriptNScribe
|
src/BreveLang.hs
|
mit
|
parseBool :: Parser Expr
parseBool = parseTrue <|> parseFalse
where
parseTrue = b_reserved "true" *> return (B True) <?> "true"
parseFalse = b_reserved "false" *> return (B False) <?> "false"
-- So here's the deal: Many languages have a unary + operator. It doesn't
-- actually do anything beyond type promotion. (e.g. +x if x is an unsigned short
-- yields x as a signed integer) In other languages it's a nop.
-- Since "-" (unary minus) is handled as an operation, I'm simplifying this
-- funcion to just parse numbers. Unary "+" is no longer a thing.
-- (There was a bug here: "+5" would return -5 due to stupidity of handling sign
-- parsing.)
| 660
|
parseBool :: Parser Expr
parseBool = parseTrue <|> parseFalse
where
parseTrue = b_reserved "true" *> return (B True) <?> "true"
parseFalse = b_reserved "false" *> return (B False) <?> "false"
-- So here's the deal: Many languages have a unary + operator. It doesn't
-- actually do anything beyond type promotion. (e.g. +x if x is an unsigned short
-- yields x as a signed integer) In other languages it's a nop.
-- Since "-" (unary minus) is handled as an operation, I'm simplifying this
-- funcion to just parse numbers. Unary "+" is no longer a thing.
-- (There was a bug here: "+5" would return -5 due to stupidity of handling sign
-- parsing.)
| 660
|
parseBool = parseTrue <|> parseFalse
where
parseTrue = b_reserved "true" *> return (B True) <?> "true"
parseFalse = b_reserved "false" *> return (B False) <?> "false"
-- So here's the deal: Many languages have a unary + operator. It doesn't
-- actually do anything beyond type promotion. (e.g. +x if x is an unsigned short
-- yields x as a signed integer) In other languages it's a nop.
-- Since "-" (unary minus) is handled as an operation, I'm simplifying this
-- funcion to just parse numbers. Unary "+" is no longer a thing.
-- (There was a bug here: "+5" would return -5 due to stupidity of handling sign
-- parsing.)
| 635
| false
| true
| 0
| 11
| 128
| 77
| 41
| 36
| null | null |
ouanixi/hs2ast
|
tests/HS2AST/Tests/Sexpr.hs
|
gpl-3.0
|
sList :: Data a => [a] -> L.Lisp
sList l@[] = sLeaf l
| 57
|
sList :: Data a => [a] -> L.Lisp
sList l@[] = sLeaf l
| 57
|
sList l@[] = sLeaf l
| 24
| false
| true
| 1
| 7
| 16
| 45
| 20
| 25
| null | null |
waterlink/hgo
|
LexerSpec.hs
|
mit
|
rightComplexEq _ _ = False
| 26
|
rightComplexEq _ _ = False
| 26
|
rightComplexEq _ _ = False
| 26
| false
| false
| 0
| 5
| 4
| 11
| 5
| 6
| null | null |
dblia/nosql-ganeti
|
src/Ganeti/Config.hs
|
gpl-2.0
|
-- | Parses the configuration file.
parseConfig :: String -> Result ConfigData
parseConfig = fromJResult "parsing configuration" . J.decodeStrict
| 145
|
parseConfig :: String -> Result ConfigData
parseConfig = fromJResult "parsing configuration" . J.decodeStrict
| 109
|
parseConfig = fromJResult "parsing configuration" . J.decodeStrict
| 66
| true
| true
| 0
| 6
| 18
| 28
| 14
| 14
| null | null |
ryantrinkle/ghcjs
|
test/Server.hs
|
mit
|
handleEmpty :: Network.Wai.Application
handleEmpty req resp =
let d = "<html><head></head><body></body></html>"
l = BL.toStrict . B.toLazyByteString . B.int64Dec . BL.length $ d
in resp $ W.responseLBS HTTP.status200
[ ("Content-Type" , "text/html")
, ("Content-Length", l)
]
d
| 397
|
handleEmpty :: Network.Wai.Application
handleEmpty req resp =
let d = "<html><head></head><body></body></html>"
l = BL.toStrict . B.toLazyByteString . B.int64Dec . BL.length $ d
in resp $ W.responseLBS HTTP.status200
[ ("Content-Type" , "text/html")
, ("Content-Length", l)
]
d
| 397
|
handleEmpty req resp =
let d = "<html><head></head><body></body></html>"
l = BL.toStrict . B.toLazyByteString . B.int64Dec . BL.length $ d
in resp $ W.responseLBS HTTP.status200
[ ("Content-Type" , "text/html")
, ("Content-Length", l)
]
d
| 358
| false
| true
| 3
| 13
| 155
| 97
| 49
| 48
| null | null |
zalora/myrapi
|
myrapi-commandline/Main.hs
|
mit
|
opts :: ParserInfo Options
opts = info (helper <*> globalOptions)
(fullDesc <> progDesc "Command line interface to MYRACLOUD")
| 133
|
opts :: ParserInfo Options
opts = info (helper <*> globalOptions)
(fullDesc <> progDesc "Command line interface to MYRACLOUD")
| 133
|
opts = info (helper <*> globalOptions)
(fullDesc <> progDesc "Command line interface to MYRACLOUD")
| 106
| false
| true
| 0
| 8
| 24
| 43
| 19
| 24
| null | null |
pxqr/ureader
|
src/UReader/Feed.hs
|
bsd-3-clause
|
parseLastModified :: String -> Maybe UTCTime
parseLastModified = parseTime defaultTimeLocale lastModifiedFormat
| 111
|
parseLastModified :: String -> Maybe UTCTime
parseLastModified = parseTime defaultTimeLocale lastModifiedFormat
| 111
|
parseLastModified = parseTime defaultTimeLocale lastModifiedFormat
| 66
| false
| true
| 0
| 7
| 10
| 29
| 12
| 17
| null | null |
brendanhay/gogol
|
gogol-vision/gen/Network/Google/Resource/Vision/Projects/Images/AsyncBatchAnnotate.hs
|
mpl-2.0
|
-- | Multipart request metadata.
piabaPayload :: Lens' ProjectsImagesAsyncBatchAnnotate GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest
piabaPayload
= lens _piabaPayload (\ s a -> s{_piabaPayload = a})
| 213
|
piabaPayload :: Lens' ProjectsImagesAsyncBatchAnnotate GoogleCloudVisionV1p2beta1AsyncBatchAnnotateImagesRequest
piabaPayload
= lens _piabaPayload (\ s a -> s{_piabaPayload = a})
| 180
|
piabaPayload
= lens _piabaPayload (\ s a -> s{_piabaPayload = a})
| 67
| true
| true
| 0
| 9
| 22
| 42
| 22
| 20
| null | null |
brendanhay/gogol
|
gogol-dataproc/gen/Network/Google/Resource/Dataproc/Projects/Regions/Operations/Cancel.hs
|
mpl-2.0
|
-- | Creates a value of 'ProjectsRegionsOperationsCancel' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'procXgafv'
--
-- * 'procUploadProtocol'
--
-- * 'procAccessToken'
--
-- * 'procUploadType'
--
-- * 'procName'
--
-- * 'procCallback'
projectsRegionsOperationsCancel
:: Text -- ^ 'procName'
-> ProjectsRegionsOperationsCancel
projectsRegionsOperationsCancel pProcName_ =
ProjectsRegionsOperationsCancel'
{ _procXgafv = Nothing
, _procUploadProtocol = Nothing
, _procAccessToken = Nothing
, _procUploadType = Nothing
, _procName = pProcName_
, _procCallback = Nothing
}
| 696
|
projectsRegionsOperationsCancel
:: Text -- ^ 'procName'
-> ProjectsRegionsOperationsCancel
projectsRegionsOperationsCancel pProcName_ =
ProjectsRegionsOperationsCancel'
{ _procXgafv = Nothing
, _procUploadProtocol = Nothing
, _procAccessToken = Nothing
, _procUploadType = Nothing
, _procName = pProcName_
, _procCallback = Nothing
}
| 371
|
projectsRegionsOperationsCancel pProcName_ =
ProjectsRegionsOperationsCancel'
{ _procXgafv = Nothing
, _procUploadProtocol = Nothing
, _procAccessToken = Nothing
, _procUploadType = Nothing
, _procName = pProcName_
, _procCallback = Nothing
}
| 272
| true
| true
| 0
| 7
| 128
| 81
| 52
| 29
| null | null |
JoeLoser/CS4450-Principles-of-Programming
|
homeworks/hw5/hw5_sdk/ImpInterp.hs
|
mit
|
bool (IsLT e1 e2) r s = exp e1 r s < exp e2 r s
| 48
|
bool (IsLT e1 e2) r s = exp e1 r s < exp e2 r s
| 48
|
bool (IsLT e1 e2) r s = exp e1 r s < exp e2 r s
| 48
| false
| false
| 1
| 8
| 16
| 41
| 18
| 23
| null | null |
fmapfmapfmap/amazonka
|
gen/src/Gen/AST/Data.hs
|
mpl-2.0
|
pp :: Pretty a => Ident -> a -> Either Error LText.Text
pp i d
| i == Indent = bimap e Build.toLazyText (reformat johanTibell Nothing p)
| otherwise = pure p
where
e = flip mappend (", when formatting datatype: " <> p) . LText.pack
p = LText.dropWhile isSpace . LText.pack $
prettyPrintStyleMode s m d
s = style
{ mode = PageMode
, lineLength = 80
, ribbonsPerLine = 1.5
}
m | i == Print = defaultMode
| i == Indent = defaultMode -- Temporary, while hindent speed issues are considered.
| otherwise = defaultMode
{ layout = PPNoLayout
, spacing = False
}
| 685
|
pp :: Pretty a => Ident -> a -> Either Error LText.Text
pp i d
| i == Indent = bimap e Build.toLazyText (reformat johanTibell Nothing p)
| otherwise = pure p
where
e = flip mappend (", when formatting datatype: " <> p) . LText.pack
p = LText.dropWhile isSpace . LText.pack $
prettyPrintStyleMode s m d
s = style
{ mode = PageMode
, lineLength = 80
, ribbonsPerLine = 1.5
}
m | i == Print = defaultMode
| i == Indent = defaultMode -- Temporary, while hindent speed issues are considered.
| otherwise = defaultMode
{ layout = PPNoLayout
, spacing = False
}
| 685
|
pp i d
| i == Indent = bimap e Build.toLazyText (reformat johanTibell Nothing p)
| otherwise = pure p
where
e = flip mappend (", when formatting datatype: " <> p) . LText.pack
p = LText.dropWhile isSpace . LText.pack $
prettyPrintStyleMode s m d
s = style
{ mode = PageMode
, lineLength = 80
, ribbonsPerLine = 1.5
}
m | i == Print = defaultMode
| i == Indent = defaultMode -- Temporary, while hindent speed issues are considered.
| otherwise = defaultMode
{ layout = PPNoLayout
, spacing = False
}
| 629
| false
| true
| 1
| 9
| 237
| 212
| 106
| 106
| null | null |
ghc-android/ghc
|
testsuite/tests/ghci/should_run/ghcirun004.hs
|
bsd-3-clause
|
4776 = 4775
| 11
|
4776 = 4775
| 11
|
4776 = 4775
| 11
| false
| false
| 1
| 5
| 2
| 10
| 3
| 7
| null | null |
frontrowed/stratosphere
|
library-gen/Stratosphere/ResourceProperties/CloudFrontDistributionForwardedValues.hs
|
mit
|
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-forwardedvalues.html#cfn-cloudfront-distribution-forwardedvalues-querystring
cfdfvQueryString :: Lens' CloudFrontDistributionForwardedValues (Val Bool)
cfdfvQueryString = lens _cloudFrontDistributionForwardedValuesQueryString (\s a -> s { _cloudFrontDistributionForwardedValuesQueryString = a })
| 401
|
cfdfvQueryString :: Lens' CloudFrontDistributionForwardedValues (Val Bool)
cfdfvQueryString = lens _cloudFrontDistributionForwardedValuesQueryString (\s a -> s { _cloudFrontDistributionForwardedValuesQueryString = a })
| 218
|
cfdfvQueryString = lens _cloudFrontDistributionForwardedValuesQueryString (\s a -> s { _cloudFrontDistributionForwardedValuesQueryString = a })
| 143
| true
| true
| 0
| 9
| 21
| 46
| 25
| 21
| null | null |
kim/amazonka
|
amazonka-ecs/gen/Network/AWS/ECS/Types.hs
|
mpl-2.0
|
-- | The command to send to the container that overrides the default command from
-- the Docker image or the task definition.
coCommand :: Lens' ContainerOverride [Text]
coCommand = lens _coCommand (\s a -> s { _coCommand = a }) . _List
| 236
|
coCommand :: Lens' ContainerOverride [Text]
coCommand = lens _coCommand (\s a -> s { _coCommand = a }) . _List
| 110
|
coCommand = lens _coCommand (\s a -> s { _coCommand = a }) . _List
| 66
| true
| true
| 0
| 10
| 42
| 48
| 27
| 21
| null | null |
green-haskell/ghc
|
compiler/prelude/PrelNames.hs
|
bsd-3-clause
|
integerToIntName = varQual gHC_INTEGER_TYPE (fsLit "integerToInt") integerToIntIdKey
| 94
|
integerToIntName = varQual gHC_INTEGER_TYPE (fsLit "integerToInt") integerToIntIdKey
| 94
|
integerToIntName = varQual gHC_INTEGER_TYPE (fsLit "integerToInt") integerToIntIdKey
| 94
| false
| false
| 0
| 7
| 16
| 19
| 9
| 10
| null | null |
joozek78/stack
|
src/Stack/Setup.hs
|
bsd-3-clause
|
installGHCWindows :: (MonadIO m, MonadMask m, MonadLogger m, MonadReader env m, HasConfig env, HasHttpManager env, MonadBaseControl IO m)
=> SetupInfo
-> Path Abs File
-> ArchiveType
-> Path Abs Dir
-> PackageIdentifier
-> m ()
installGHCWindows si archiveFile archiveType destDir _ = do
suffix <-
case archiveType of
TarXz -> return ".xz"
TarBz2 -> return ".bz2"
_ -> error $ "GHC on Windows must be a tarball file"
tarFile <-
case T.stripSuffix suffix $ T.pack $ toFilePath archiveFile of
Nothing -> error $ "Invalid GHC filename: " ++ show archiveFile
Just x -> parseAbsFile $ T.unpack x
config <- asks getConfig
run7z <- setup7z si config
run7z (parent archiveFile) archiveFile
run7z (parent archiveFile) tarFile
removeFile tarFile `catchIO` \e ->
$logWarn (T.concat
[ "Exception when removing "
, T.pack $ toFilePath tarFile
, ": "
, T.pack $ show e
])
$logInfo $ "GHC installed to " <> T.pack (toFilePath destDir)
| 1,206
|
installGHCWindows :: (MonadIO m, MonadMask m, MonadLogger m, MonadReader env m, HasConfig env, HasHttpManager env, MonadBaseControl IO m)
=> SetupInfo
-> Path Abs File
-> ArchiveType
-> Path Abs Dir
-> PackageIdentifier
-> m ()
installGHCWindows si archiveFile archiveType destDir _ = do
suffix <-
case archiveType of
TarXz -> return ".xz"
TarBz2 -> return ".bz2"
_ -> error $ "GHC on Windows must be a tarball file"
tarFile <-
case T.stripSuffix suffix $ T.pack $ toFilePath archiveFile of
Nothing -> error $ "Invalid GHC filename: " ++ show archiveFile
Just x -> parseAbsFile $ T.unpack x
config <- asks getConfig
run7z <- setup7z si config
run7z (parent archiveFile) archiveFile
run7z (parent archiveFile) tarFile
removeFile tarFile `catchIO` \e ->
$logWarn (T.concat
[ "Exception when removing "
, T.pack $ toFilePath tarFile
, ": "
, T.pack $ show e
])
$logInfo $ "GHC installed to " <> T.pack (toFilePath destDir)
| 1,206
|
installGHCWindows si archiveFile archiveType destDir _ = do
suffix <-
case archiveType of
TarXz -> return ".xz"
TarBz2 -> return ".bz2"
_ -> error $ "GHC on Windows must be a tarball file"
tarFile <-
case T.stripSuffix suffix $ T.pack $ toFilePath archiveFile of
Nothing -> error $ "Invalid GHC filename: " ++ show archiveFile
Just x -> parseAbsFile $ T.unpack x
config <- asks getConfig
run7z <- setup7z si config
run7z (parent archiveFile) archiveFile
run7z (parent archiveFile) tarFile
removeFile tarFile `catchIO` \e ->
$logWarn (T.concat
[ "Exception when removing "
, T.pack $ toFilePath tarFile
, ": "
, T.pack $ show e
])
$logInfo $ "GHC installed to " <> T.pack (toFilePath destDir)
| 870
| false
| true
| 0
| 14
| 436
| 341
| 160
| 181
| null | null |
stulli/projectEuler
|
eu44.hs
|
bsd-3-clause
|
-- 4000 was just a guess
p n = n * (3 * n - 1) `div` 2
| 55
|
p n = n * (3 * n - 1) `div` 2
| 29
|
p n = n * (3 * n - 1) `div` 2
| 29
| true
| false
| 2
| 7
| 18
| 38
| 18
| 20
| null | null |
thalerjonathan/phd
|
coding/learning/haskell/grahambook/Code_Solutions/countdown.hs
|
gpl-3.0
|
results [n] = [(Val n,n) | n > 0]
| 33
|
results [n] = [(Val n,n) | n > 0]
| 33
|
results [n] = [(Val n,n) | n > 0]
| 33
| false
| false
| 0
| 7
| 8
| 32
| 17
| 15
| null | null |
NICTA/cplusplus-th
|
src/Foreign/CPlusPlusStdLib.hs
|
bsd-3-clause
|
retainForeign :: ForeignPtr a -> Ptr Std__basic_string_mem -> IO ()
retainForeign p v = addForeignPtrFinalizer p (haskell__deleteString v)
| 138
|
retainForeign :: ForeignPtr a -> Ptr Std__basic_string_mem -> IO ()
retainForeign p v = addForeignPtrFinalizer p (haskell__deleteString v)
| 138
|
retainForeign p v = addForeignPtrFinalizer p (haskell__deleteString v)
| 70
| false
| true
| 0
| 9
| 17
| 50
| 22
| 28
| null | null |
lukexi/glfw-pal
|
src/Graphics/UI/GLFW/Pal.hs
|
bsd-2-clause
|
onMouseDown :: Monad m => Event -> (MouseButton -> m ()) -> m ()
onMouseDown (MouseButton b MouseButtonState'Pressed _) f = f b
| 127
|
onMouseDown :: Monad m => Event -> (MouseButton -> m ()) -> m ()
onMouseDown (MouseButton b MouseButtonState'Pressed _) f = f b
| 127
|
onMouseDown (MouseButton b MouseButtonState'Pressed _) f = f b
| 62
| false
| true
| 0
| 11
| 22
| 61
| 29
| 32
| null | null |
gcampax/ghc
|
compiler/prelude/PrelNames.hs
|
bsd-3-clause
|
integerToIntName = varQual gHC_INTEGER_TYPE (fsLit "integerToInt") integerToIntIdKey
| 94
|
integerToIntName = varQual gHC_INTEGER_TYPE (fsLit "integerToInt") integerToIntIdKey
| 94
|
integerToIntName = varQual gHC_INTEGER_TYPE (fsLit "integerToInt") integerToIntIdKey
| 94
| false
| false
| 0
| 7
| 16
| 19
| 9
| 10
| null | null |
dmpots/fibon
|
tools/fibon-run/Fibon/Run/CommandLine.hs
|
bsd-3-clause
|
defaultOpts :: Opt
defaultOpts = Opt {
optConfig = "default"
, optBenchmarks = Nothing
, optHelpMsg = Nothing
, optTuneSetting = Nothing
, optSizeSetting = Nothing
, optIterations = Nothing
, optAction = Run
, optReuseDir = Nothing
, optRunMode = Sequential
, optIniConfig = False
}
| 351
|
defaultOpts :: Opt
defaultOpts = Opt {
optConfig = "default"
, optBenchmarks = Nothing
, optHelpMsg = Nothing
, optTuneSetting = Nothing
, optSizeSetting = Nothing
, optIterations = Nothing
, optAction = Run
, optReuseDir = Nothing
, optRunMode = Sequential
, optIniConfig = False
}
| 351
|
defaultOpts = Opt {
optConfig = "default"
, optBenchmarks = Nothing
, optHelpMsg = Nothing
, optTuneSetting = Nothing
, optSizeSetting = Nothing
, optIterations = Nothing
, optAction = Run
, optReuseDir = Nothing
, optRunMode = Sequential
, optIniConfig = False
}
| 332
| false
| true
| 0
| 6
| 115
| 73
| 47
| 26
| null | null |
mcmaniac/ghc
|
compiler/utils/Binary.hs
|
bsd-3-clause
|
lazyPut :: Binary a => BinHandle -> a -> IO ()
lazyPut bh a = do
-- output the obj with a ptr to skip over it:
pre_a <- tellBin bh
put_ bh pre_a -- save a slot for the ptr
put_ bh a -- dump the object
q <- tellBin bh -- q = ptr to after object
putAt bh pre_a q -- fill in slot before a with ptr to q
seekBin bh q -- finally carry on writing at q
| 403
|
lazyPut :: Binary a => BinHandle -> a -> IO ()
lazyPut bh a = do
-- output the obj with a ptr to skip over it:
pre_a <- tellBin bh
put_ bh pre_a -- save a slot for the ptr
put_ bh a -- dump the object
q <- tellBin bh -- q = ptr to after object
putAt bh pre_a q -- fill in slot before a with ptr to q
seekBin bh q -- finally carry on writing at q
| 403
|
lazyPut bh a = do
-- output the obj with a ptr to skip over it:
pre_a <- tellBin bh
put_ bh pre_a -- save a slot for the ptr
put_ bh a -- dump the object
q <- tellBin bh -- q = ptr to after object
putAt bh pre_a q -- fill in slot before a with ptr to q
seekBin bh q -- finally carry on writing at q
| 356
| false
| true
| 0
| 10
| 140
| 101
| 45
| 56
| null | null |
frenetic-lang/netcore-1.0
|
testsuite/Arbitrary.hs
|
bsd-3-clause
|
arbInterval :: Gen Int
arbInterval = oneof [ return (-1), return 0, return 1, return 30 ]
| 89
|
arbInterval :: Gen Int
arbInterval = oneof [ return (-1), return 0, return 1, return 30 ]
| 89
|
arbInterval = oneof [ return (-1), return 0, return 1, return 30 ]
| 66
| false
| true
| 0
| 9
| 16
| 52
| 24
| 28
| null | null |
UoYCS-plasma/LazySmallCheck2012
|
suite/performance/Benchmarks/Catch.hs
|
bsd-3-clause
|
arity CtorR = 1
| 15
|
arity CtorR = 1
| 15
|
arity CtorR = 1
| 15
| false
| false
| 1
| 5
| 3
| 13
| 4
| 9
| null | null |
nomeata/ghc
|
compiler/cmm/CmmOpt.hs
|
bsd-3-clause
|
lookForInline :: Unique -> CmmExpr -> [CmmStmt] -> Maybe [CmmStmt]
lookForInline u expr stmts = lookForInline' u expr regset stmts
where regset = foldRegsUsed extendRegSet emptyRegSet expr
| 192
|
lookForInline :: Unique -> CmmExpr -> [CmmStmt] -> Maybe [CmmStmt]
lookForInline u expr stmts = lookForInline' u expr regset stmts
where regset = foldRegsUsed extendRegSet emptyRegSet expr
| 192
|
lookForInline u expr stmts = lookForInline' u expr regset stmts
where regset = foldRegsUsed extendRegSet emptyRegSet expr
| 125
| false
| true
| 0
| 9
| 30
| 63
| 31
| 32
| null | null |
chemist/highlighter
|
src/Text/Highlighter/Lexers/Modula2.hs
|
bsd-3-clause
|
punctuation' :: TokenMatcher
punctuation' =
[ tok "[\\(\\)\\[\\]{},.:;|]" (Arbitrary "Punctuation")
]
| 109
|
punctuation' :: TokenMatcher
punctuation' =
[ tok "[\\(\\)\\[\\]{},.:;|]" (Arbitrary "Punctuation")
]
| 109
|
punctuation' =
[ tok "[\\(\\)\\[\\]{},.:;|]" (Arbitrary "Punctuation")
]
| 80
| false
| true
| 0
| 8
| 18
| 25
| 13
| 12
| null | null |
qpliu/esolang
|
ph/hs/interp/Interp.hs
|
gpl-3.0
|
ifOp input scope (Cons _ Nil) = Nil
| 35
|
ifOp input scope (Cons _ Nil) = Nil
| 35
|
ifOp input scope (Cons _ Nil) = Nil
| 35
| false
| false
| 0
| 7
| 7
| 21
| 10
| 11
| null | null |
fmapfmapfmap/amazonka
|
amazonka-cloudwatch/test/Main.hs
|
mpl-2.0
|
main :: IO ()
main = defaultMain $ testGroup "CloudWatch"
[ testGroup "tests" tests
, testGroup "fixtures" fixtures
]
| 132
|
main :: IO ()
main = defaultMain $ testGroup "CloudWatch"
[ testGroup "tests" tests
, testGroup "fixtures" fixtures
]
| 132
|
main = defaultMain $ testGroup "CloudWatch"
[ testGroup "tests" tests
, testGroup "fixtures" fixtures
]
| 118
| false
| true
| 2
| 7
| 33
| 49
| 21
| 28
| null | null |
elieux/ghc
|
compiler/utils/Outputable.hs
|
bsd-3-clause
|
lparen = docToSDoc $ Pretty.lparen
| 38
|
lparen = docToSDoc $ Pretty.lparen
| 38
|
lparen = docToSDoc $ Pretty.lparen
| 38
| false
| false
| 0
| 6
| 8
| 12
| 6
| 6
| null | null |
seppeljordan/octree
|
tests/test_Octree.hs
|
bsd-3-clause
|
prop_octantDistanceNoGreaterThanInterpointDistance0 ptA ptB = triangleInequality
where triangleInequality = octantDistance' aptA (cmp ptB origin) <= dist aptA ptB
aptA = abs ptA
| 202
|
prop_octantDistanceNoGreaterThanInterpointDistance0 ptA ptB = triangleInequality
where triangleInequality = octantDistance' aptA (cmp ptB origin) <= dist aptA ptB
aptA = abs ptA
| 202
|
prop_octantDistanceNoGreaterThanInterpointDistance0 ptA ptB = triangleInequality
where triangleInequality = octantDistance' aptA (cmp ptB origin) <= dist aptA ptB
aptA = abs ptA
| 202
| false
| false
| 1
| 8
| 45
| 49
| 23
| 26
| null | null |
fffej/HS-Poker
|
LookupPatternMatch.hs
|
bsd-3-clause
|
getValueFromProduct 18327913 = 4042
| 35
|
getValueFromProduct 18327913 = 4042
| 35
|
getValueFromProduct 18327913 = 4042
| 35
| false
| false
| 0
| 5
| 3
| 9
| 4
| 5
| null | null |
michalkonecny/aern
|
aern-mpfr/demos/IntermediateValue.hs
|
bsd-3-clause
|
main =
do
-- print each line asap:
hSetBuffering stdout LineBuffering
-- boilerplate to process arguments:
[digitsS] <- getArgs
let digits = read digitsS -- desired accuracy in decimal digits
-- sqrt(2) to the given number of digits:
putStrLn $ "findRootDigits(fn(x)=x^2-2, leftEndpoint=0, rightEndpoint=2, digits=" ++ show digits ++ ") = "
putStrLn $ showRealApprox digits $ findRootDigits digits (100,()) xSquareMinus2 0 2
-- log(3) to the given number of digits:
putStrLn $ "findRootDigits(fn(x)=exp(x)-3, leftEndpoint=0, rightEndpoint=2, digits=" ++ show digits ++ ") = "
putStrLn $ showRealApprox digits $ findRootDigits digits (100,()) expXMinus3 0 2
where
showRealApprox digits = showInternals shouldShowInternals
where
shouldShowInternals = (digitsW+2, False)
digitsW = fromIntegral digits
xSquareMinus2 _eff x = x * x - 2
-- the effort parameter is not required in this case, using the unit type ()
expXMinus3 _eff x = (exp x) - 3
-- the effort parameter is not required in this case, using the unit type ()
| 1,135
|
main =
do
-- print each line asap:
hSetBuffering stdout LineBuffering
-- boilerplate to process arguments:
[digitsS] <- getArgs
let digits = read digitsS -- desired accuracy in decimal digits
-- sqrt(2) to the given number of digits:
putStrLn $ "findRootDigits(fn(x)=x^2-2, leftEndpoint=0, rightEndpoint=2, digits=" ++ show digits ++ ") = "
putStrLn $ showRealApprox digits $ findRootDigits digits (100,()) xSquareMinus2 0 2
-- log(3) to the given number of digits:
putStrLn $ "findRootDigits(fn(x)=exp(x)-3, leftEndpoint=0, rightEndpoint=2, digits=" ++ show digits ++ ") = "
putStrLn $ showRealApprox digits $ findRootDigits digits (100,()) expXMinus3 0 2
where
showRealApprox digits = showInternals shouldShowInternals
where
shouldShowInternals = (digitsW+2, False)
digitsW = fromIntegral digits
xSquareMinus2 _eff x = x * x - 2
-- the effort parameter is not required in this case, using the unit type ()
expXMinus3 _eff x = (exp x) - 3
-- the effort parameter is not required in this case, using the unit type ()
| 1,135
|
main =
do
-- print each line asap:
hSetBuffering stdout LineBuffering
-- boilerplate to process arguments:
[digitsS] <- getArgs
let digits = read digitsS -- desired accuracy in decimal digits
-- sqrt(2) to the given number of digits:
putStrLn $ "findRootDigits(fn(x)=x^2-2, leftEndpoint=0, rightEndpoint=2, digits=" ++ show digits ++ ") = "
putStrLn $ showRealApprox digits $ findRootDigits digits (100,()) xSquareMinus2 0 2
-- log(3) to the given number of digits:
putStrLn $ "findRootDigits(fn(x)=exp(x)-3, leftEndpoint=0, rightEndpoint=2, digits=" ++ show digits ++ ") = "
putStrLn $ showRealApprox digits $ findRootDigits digits (100,()) expXMinus3 0 2
where
showRealApprox digits = showInternals shouldShowInternals
where
shouldShowInternals = (digitsW+2, False)
digitsW = fromIntegral digits
xSquareMinus2 _eff x = x * x - 2
-- the effort parameter is not required in this case, using the unit type ()
expXMinus3 _eff x = (exp x) - 3
-- the effort parameter is not required in this case, using the unit type ()
| 1,135
| false
| false
| 3
| 10
| 274
| 235
| 110
| 125
| null | null |
ptitfred/slidecoding
|
src/Slidecoding/Assets.hs
|
gpl-3.0
|
distribute :: Presentation -> Asset -> IO ()
distribute presentation (Bundle assets) = mapM_ (distribute presentation) assets
| 125
|
distribute :: Presentation -> Asset -> IO ()
distribute presentation (Bundle assets) = mapM_ (distribute presentation) assets
| 125
|
distribute presentation (Bundle assets) = mapM_ (distribute presentation) assets
| 80
| false
| true
| 0
| 8
| 16
| 46
| 22
| 24
| null | null |
brendanhay/gogol
|
gogol-appengine/gen/Network/Google/Resource/AppEngine/Apps/DomainMAppings/List.hs
|
mpl-2.0
|
-- | Creates a value of 'AppsDomainMAppingsList' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'admalXgafv'
--
-- * 'admalUploadProtocol'
--
-- * 'admalAccessToken'
--
-- * 'admalUploadType'
--
-- * 'admalAppsId'
--
-- * 'admalPageToken'
--
-- * 'admalPageSize'
--
-- * 'admalCallback'
appsDomainMAppingsList
:: Text -- ^ 'admalAppsId'
-> AppsDomainMAppingsList
appsDomainMAppingsList pAdmalAppsId_ =
AppsDomainMAppingsList'
{ _admalXgafv = Nothing
, _admalUploadProtocol = Nothing
, _admalAccessToken = Nothing
, _admalUploadType = Nothing
, _admalAppsId = pAdmalAppsId_
, _admalPageToken = Nothing
, _admalPageSize = Nothing
, _admalCallback = Nothing
}
| 788
|
appsDomainMAppingsList
:: Text -- ^ 'admalAppsId'
-> AppsDomainMAppingsList
appsDomainMAppingsList pAdmalAppsId_ =
AppsDomainMAppingsList'
{ _admalXgafv = Nothing
, _admalUploadProtocol = Nothing
, _admalAccessToken = Nothing
, _admalUploadType = Nothing
, _admalAppsId = pAdmalAppsId_
, _admalPageToken = Nothing
, _admalPageSize = Nothing
, _admalCallback = Nothing
}
| 415
|
appsDomainMAppingsList pAdmalAppsId_ =
AppsDomainMAppingsList'
{ _admalXgafv = Nothing
, _admalUploadProtocol = Nothing
, _admalAccessToken = Nothing
, _admalUploadType = Nothing
, _admalAppsId = pAdmalAppsId_
, _admalPageToken = Nothing
, _admalPageSize = Nothing
, _admalCallback = Nothing
}
| 331
| true
| true
| 0
| 7
| 152
| 97
| 64
| 33
| null | null |
diku-dk/futhark
|
src/Futhark/IR/Mem/Simplify.hs
|
isc
|
callKernelRules :: SimplifyMemory rep inner => RuleBook (Wise rep)
callKernelRules =
standardRules
<> ruleBook
[ RuleBasicOp copyCopyToCopy,
RuleIf unExistentialiseMemory,
RuleOp decertifySafeAlloc
]
[]
| 242
|
callKernelRules :: SimplifyMemory rep inner => RuleBook (Wise rep)
callKernelRules =
standardRules
<> ruleBook
[ RuleBasicOp copyCopyToCopy,
RuleIf unExistentialiseMemory,
RuleOp decertifySafeAlloc
]
[]
| 242
|
callKernelRules =
standardRules
<> ruleBook
[ RuleBasicOp copyCopyToCopy,
RuleIf unExistentialiseMemory,
RuleOp decertifySafeAlloc
]
[]
| 175
| false
| true
| 2
| 9
| 62
| 66
| 29
| 37
| null | null |
Xandaros/MinecraftCLI
|
src/Network/Protocol/Minecraft/Yggdrasil.hs
|
bsd-2-clause
|
authenticate :: AuthenticationRequest -> IO (Maybe AuthenticationResponse)
authenticate req = executeAuth (authenticateM req) >>= \case
Left err -> print err >> pure Nothing
Right res -> pure $ Just res
| 210
|
authenticate :: AuthenticationRequest -> IO (Maybe AuthenticationResponse)
authenticate req = executeAuth (authenticateM req) >>= \case
Left err -> print err >> pure Nothing
Right res -> pure $ Just res
| 210
|
authenticate req = executeAuth (authenticateM req) >>= \case
Left err -> print err >> pure Nothing
Right res -> pure $ Just res
| 135
| false
| true
| 0
| 11
| 37
| 82
| 36
| 46
| null | null |
superstringsoftware/HasGraph
|
experiments/test2.hs
|
bsd-3-clause
|
rw s = simpleHttp s
| 19
|
rw s = simpleHttp s
| 19
|
rw s = simpleHttp s
| 19
| false
| false
| 1
| 5
| 4
| 16
| 5
| 11
| null | null |
bacher09/darkplaces-demo
|
src/DarkPlaces/ProtocolConstants.hs
|
gpl-2.0
|
qw_u_angle2_bit :: Int
qw_u_angle2_bit = 12
| 43
|
qw_u_angle2_bit :: Int
qw_u_angle2_bit = 12
| 43
|
qw_u_angle2_bit = 12
| 20
| false
| true
| 0
| 4
| 5
| 11
| 6
| 5
| null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.