[GHC] #9642: LANGUAGE pragma synonyms
GHC
ghc-devs at haskell.org
Sun Sep 28 12:42:05 UTC 2014
#9642: LANGUAGE pragma synonyms
-------------------------------------+-------------------------------------
Reporter: dreixel | Owner:
Type: feature | Status: new
request | Milestone:
Priority: normal | Version: 7.9
Component: Compiler | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: | Difficulty: Unknown
Unknown/Multiple | Blocked By:
Type of failure: | Related Tickets:
None/Unknown |
Test Case: |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by jstolarek):
Are you aware of the possibility of specifying extensions in package's
`.cabal` file? Here's an example:
{{{
library
hs-source-dirs: src
exposed-modules: ...
build-depends: ...
extensions: BangPatterns
EmptyDataDecls
FlexibleContexts
FlexibleInstances
...
}}}
This addresses the issue of code duplication. It does not address auto-
enabling of LANGUAGE extensions for modules that import a package.
Personally I don't like the idea of having extensions automatically (and
implicitly) enabled without my knowledge just because I imported a module.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9642#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list