Ticket #506 (closed defect: invalid)

Opened 4 years ago

Last modified 4 years ago

Extensions field not being used

Reported by: fasta Owned by:
Priority: normal Milestone:
Component: Cabal library Version: 1.6.0.1
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: 6.10.1 Platform:

Description

ghc --version The Glorious Glasgow Haskell Compilation System, version 6.10.1 cabal --version cabal-install version 0.6.0 using version 1.6.0.1 of the Cabal library

I use the extensions field and I specified NoImplicitPrelude? as its value. The problem is that this is ignored in a module without any LANGUAGE pragma (but I believe it also doesn't work with a LANGUAGE pragma).

I expect that the extensions for a module compiled via Cabal are the union of those specified in the extensions field in the Cabal file and those of the corresponding Module.hs file as specified with the LANGUAGE pragma.

Attachments

test.cabal Download (0.6 KB) - added by fasta 4 years ago.
Setup.lhs Download (76 bytes) - added by fasta 4 years ago.
LICENSE Download (10 bytes) - added by fasta 4 years ago.
Main.hs Download (81 bytes) - added by fasta 4 years ago.
Main.2.hs Download (81 bytes) - added by fasta 4 years ago.
Foo.hs Download (41 bytes) - added by fasta 4 years ago.

Change History

Changed 4 years ago by fasta

Changed 4 years ago by fasta

Changed 4 years ago by fasta

Changed 4 years ago by fasta

Changed 4 years ago by fasta

Changed 4 years ago by fasta

Changed 4 years ago by duncan

  • status changed from new to closed
  • resolution set to invalid

Turns out this was tracked down to a ghc bug:  http://hackage.haskell.org/trac/ghc/ticket/3044

Note: See TracTickets for help on using tickets.