[GHC] #13332: Report unrecognized pragmas earlier
GHC
ghc-devs at haskell.org
Mon Mar 13 15:58:04 UTC 2017
#13332: Report unrecognized pragmas earlier
-------------------------------------+-------------------------------------
Reporter: crockeea | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.2
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
Type of failure: Poor/confusing | Unknown/Multiple
error message | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by rwbarton):
According to the ticket description, GHC does generate a warning about the
unknown pragma `LANUGAGE`; but only when there isn't an error in the
module.
I think there is some logic somewhere for not displaying warnings when
there are also errors to report, on the grounds that the errors are more
important (and may be the cause of the warnings). However, here clearly
the warning about `LANUGAGE` is the cause of the consequent errors. We
should probably have some notion of "important warnings" that get
displayed even when there are errors to report as well.
I think this may have been discussed on another ticket as well, which had
a similar sort of issue; but I can't find it at the moment.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13332#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list