#143 No quick fix for some LANGUAGE pragmas

closed-fixed
Feature (28)
5
2012-05-20
2012-04-09
No

EcdlipseFP has quickfixes for adding LANGUAGE pragmas for almost every haskell extension, but not all.

For this line

newtype A a = A (Maybe a) deriving Monad

an error without a quickfix suggests to add -XGeneralizedNewtypeDeriving

And for this line

data B

the error suggests -XEmptyDataDecls

And this one

data C a = C a deriving Typeable

makes it suggest -XDeriveDataTypeable

Discussion

  • JP Moresmau

    JP Moresmau - 2012-04-09

    Will be done for next release, shouldn't be hard to detect the proper messages. Also, will add a quick fix to add OverloadedStrings if we get a message saying "inferred [Char]"

     
  • JP Moresmau

    JP Moresmau - 2012-04-09
    • assigned_to: nobody --> jpmoresmau
     
  • JP Moresmau

    JP Moresmau - 2012-05-20
    • status: open --> open-fixed
     
  • JP Moresmau

    JP Moresmau - 2012-05-20
    • status: open-fixed --> closed-fixed