[GHC] #12002: Pragmas after a module declaration are ignored without warning.
GHC
ghc-devs at haskell.org
Wed Oct 18 04:48:25 UTC 2017
#12002: Pragmas after a module declaration are ignored without warning.
-------------------------------------+-------------------------------------
Reporter: seanparsons | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.3
(Parser) |
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: #2260 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by harpocrates):
Maybe things have changed since 10 years ago when the comment quoted in
comment:2 was made, but this is now a two line change.
I propose that GHC try to report an unrecognized pragma when meeting a
header pragma outside of the header. That's one of the default warnings
anyways.
I'll be submitting a fix for this shortly.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12002#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list