mirror of
https://github.com/Avi-D-coder/implicit-hie.git
synced 2024-10-26 09:09:02 +03:00
Fix bench
This commit is contained in:
parent
9a7711125d
commit
981a404792
@ -56,6 +56,7 @@ parseComponent :: Indent -> Parser Component
|
||||
parseComponent i =
|
||||
parseExe i
|
||||
<|> parseLib i
|
||||
<|> parseBench i
|
||||
<|> parseTestSuite i
|
||||
|
||||
parseLib :: Indent -> Parser Component
|
||||
|
15
test/Spec.hs
15
test/Spec.hs
@ -28,8 +28,10 @@ spec = do
|
||||
`shouldParse` Comp Lib "" "src"
|
||||
describe "Should Succeed"
|
||||
$ it "successfully parses bench section"
|
||||
$ benchSection ~> parseBench 0
|
||||
`shouldParse` Comp Bench "folds" "benchmarks/folds.hs"
|
||||
$ do
|
||||
bs <- T.readFile "test/benchSection"
|
||||
bs ~> parseBench 0
|
||||
`shouldParse` Comp Bench "folds" "benchmarks/folds.hs"
|
||||
describe "Should Succeed"
|
||||
$ it "successfully parses package"
|
||||
$ fullFile ~> parsePackage
|
||||
@ -106,15 +108,6 @@ libSection =
|
||||
\ default-language: Haskell2010\n\
|
||||
\"
|
||||
|
||||
benchSection :: Text
|
||||
benchSection =
|
||||
"benchmark folds\n\
|
||||
\ default-language: Haskell2010\n\
|
||||
\ hs-source-dirs: benchmarks\n\
|
||||
\ ghc-options: -Wall -threaded\n\
|
||||
\ type: exitcode-stdio-1.0\n\
|
||||
\ main-is: folds.hs\n"
|
||||
|
||||
stackHie :: String
|
||||
stackHie =
|
||||
"cradle:\n\
|
||||
|
Loading…
Reference in New Issue
Block a user