Skip to content

Commit

Permalink
[ #278 Agda ] import Prelude (Bool) in Parser module
Browse files Browse the repository at this point in the history
Needed for layout flag.
  • Loading branch information
andreasabel committed Jan 2, 2020
1 parent f377ea5 commit eb3ecab
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ cabal.sandbox.config
/testing/regression-tests/#100_coercion_lists/cpp/
/testing/regression-tests/#100_coercion_lists/java/

/testing/regression-tests/194_layout/agda/
/testing/regression-tests/194_layout/haskell/

/testing/regression-tests/202_comments/C/
Expand Down
2 changes: 1 addition & 1 deletion source/src/BNFC/Backend/Agda.hs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ importPragmas tokenText mods = vcat $ map imp $ prelude ++ extra ++ mods
StringToken -> []
ByteStringToken -> [ "qualified Data.ByteString.Char8 as BS" ]
prelude =
[ "Prelude (Char, Double, Integer, String, (.))"
[ "Prelude (Bool, Char, Double, Integer, String, (.))"
, "qualified Data.Text"
]

Expand Down
1 change: 1 addition & 0 deletions testing/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ main = htfMain $
-- (avoids the usual problems when trying to switch the first line
-- with a later line).

-- ParameterizedTests.layoutTest :
-- ParameterizedTests.current : -- Uncomment for prioritized test case.
-- -- RegressionTests.current :
ParameterizedTests.all :
Expand Down

0 comments on commit eb3ecab

Please sign in to comment.