Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Cabal confused about DeriveFunctor #741

Closed
bos opened this Issue May 24, 2012 · 5 comments

Comments

Projects
None yet
1 participant
Contributor

bos commented May 24, 2012

Contributor

bos commented May 24, 2012

(Imported comment by guest on 2010-10-23)

patch to add DeriveFunctor?, DeriveFoldable?, and DeriveTypeable? extensions

Contributor

bos commented May 24, 2012

(Imported comment by guest on 2010-10-23)

I attached a patch to add DeriveFunctor?, DeriveFoldable?, and DeriveTraversable?, but I don't know if I did everything necessary to add the extensions. In particular, the notes in Language.Haskell.Extension.hs say that new extensions should be added to the lists in Distribution.Simple.X.languageExtensions, but (at least for GHC) that seems to be generated dynamically.

Contributor

bos commented May 24, 2012

(Imported comment by guest on 2010-10-23)

In the comment for the attached file, s/DeriveTypeable/DeriveTraversable/ . It's correct in the patch.

Contributor

bos commented May 24, 2012

(Imported comment by @dcoutts on 2010-10-23)

Replying to guest:

I attached a patch to add `DeriveFunctor?`?, `DeriveFoldable?`?, and `DeriveTraversable?`?, but I don't know if I did everything necessary to add the extensions.

Thanks for the patch, I will ask the GHC devs to look at it, as they are responsible for registering new extensions that GHC implements.

In particular, the notes in Language.Haskell.Extension.hs say that new extensions should be added to the lists in Distribution.Simple.X.languageExtensions, but (at least for GHC) that seems to be generated dynamically.

Right. For newer GHC versions they are generated dynamically. The same is not yet true of other compilers, but I think at the moment only GHC implements these extensions.

Contributor

bos commented May 24, 2012

(Imported comment by @dcoutts on 2010-10-25)

Fixed.

Tue Oct 26 23:04:09 BST 2010  Ian Lynagh <igloo@earth.li>
  * Add some more extensions that GHC knows about

@bos bos closed this May 24, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment