-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate warning-free Haskell code #331
Comments
- removed unused import - blanked out unused function arguments - added type signatures TODO: some imports are still sometimes unused
Some warnings are disabled in the generated files.
89e5914 breaks compilation with GHC 7.10:
|
- DeriveTraversable implies DeriveFunctor and DeriveFoldable - FlexibleInstances implies TypeSynonymInstances Also fix a "Redundant $" hlint hint.
Seems like the default test cases for XML and Haskell/GADT are now warning-free (testsuite passes). |
This import is only needed if we have Ident-like tokens types.
There is a warning in Haskell/GADT with ghc 9.0:
Dropping GHC 7.10, we could assume |
Haskell-GADT moved to issue #346. |
Recover the property of BNFC 2.7.1 to generate warning-free Haskell code
https://github.com/BNFC/bnfc/blame/0ad87322fce4cfe309512fa9fd56a63a06ff9c19/source/CHANGELOG.md#L117
Abs.hs
: unused imports: fixed in a351053Abs.hs
: no type signatures fordefine
d constructors with--functor
: fixed in 195cc1bLayout.hs
:unused-matches
: fixed in 4343b31Print.hs
: locals (likeid
) shadow globals (see also Haskell: local variables in Printer may clash with printing functions #337): fixed in 3b2029eSkel.hs
: hasunused-matches
, need to turn warning off: fixed in 89e5914Test.hs
: misc: fixed in 5208f67XML.hs
XMLT.hs
The text was updated successfully, but these errors were encountered: