[GHC] #9378: Make unknown LANGUAGE pragmas a warning, not an error
GHC
ghc-devs at haskell.org
Tue Jul 29 13:36:43 UTC 2014
#9378: Make unknown LANGUAGE pragmas a warning, not an error
-------------------------------------+-------------------------------------
Reporter: goldfire | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.8.2
Resolution: | Keywords:
Operating System: | Architecture: Unknown/Multiple
Unknown/Multiple | Difficulty: Unknown
Type of failure: | Blocked By:
None/Unknown | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by hvr):
Fyi, when you inform Cabal about the used language pragmas via `other-
extensions` (which then still need to be declared on a per-module basis
via pragmas), Cabal will refuse to build the project if your compiler
doesn't provide all those extensions. Moreover, there is tooling to
generate the `other-extensions` list automatically from the `.hs` files
making up a build-target.
So I'm a bit sceptical changing the semantics of `LANGUAGE` to be a mere
warning would interact badly with the Cabal tooling.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9378#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list