Three patches for cabal

Niklas Broberg niklas.broberg at
Wed Jun 3 10:41:59 EDT 2009

(Trying again since my previous patches were too big for the list.)

While doing a survey[1] of the extensions registered with Cabal, I
came across two warts in the list of constructors, and one constructor
that should be deprecated.

First there's the constructor called TransformListComp, which should
really be named GeneralizedListComp, since the constructor should
describe the extension and not the implementation scheme.

Second there's the constructor NoMonoPatBinds, which actually
describes the default Haskell 98 behavior, even if GHC has a different
default. It's GHC's behavior that is the extension, so the constructor
in cabal should really be named MonoPatBinds.

Also, the PatternSignatures constructor has been deprecated in GHC and
superceded by ScopedTypeVariables.

The attached patches (three in one file) adds the proposed new
constructors, deprecates the old ones, and adds documentation.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: GeneralizedListComp-et-al.dpatch
Type: application/octet-stream
Size: 38047 bytes
Desc: not available
Url :

More information about the Libraries mailing list