Ticket #160 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

PatternSignatures missing in Extensions

Reported by: guest Owned by:
Priority: high Milestone: Cabal-1.2
Component: Cabal library Version: 1.2.0
Severity: normal Keywords:
Cc: Difficulty: very easy (<1 hour)
GHC Version: 6.6 Platform: Linux

Description

GHC 6.8.1 release candidates support a -XPatternSignatures flag, but Cabal 1.2.0 does not know about this extension.

Attachments

cabal-1.2.0-extensions.patch Download (292 bytes) - added by guest 6 years ago.
patch

Change History

Changed 6 years ago by guest

patch

Changed 6 years ago by guest

I'ld like to add that the error message for a wrong entry under extensions is quite poor:

 Parse of field 'extensions' failed:

Christian.Maeder@…

Changed 6 years ago by duncan

See also:  http://www.haskell.org/pipermail/libraries/2007-November/008542.html

which has the full list of extensions that ghc-6.8.1 introduced and which I propose to add to the Language.Haskell.Extensions enumeration.

Changed 6 years ago by guest

The thing is, this particular one is a regression - code that used to compile with Cabal on ghc 6.6.1 can't be compiled with Cabal on ghc 6.8.1, because the shipped Cabal doesn't have the PatternSignatures? extension (which you didn't used to have to specify).

Changed 6 years ago by duncan

  • milestone set to Cabal-1.2

Changed 6 years ago by duncan

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

Now in darcs, including the cabal-1.2 branch, so it'll make it into the next 1.2.x release.

Note: See TracTickets for help on using tickets.