Skip to content

Suggest LANGUAGE pragmas instead of -XFoo

Minor, but still: Currently GHC says:

readFail037.hs:4:1:
    Too many parameters for class ‛Foo’
    (Use -XMultiParamTypeClasses to allow multi-parameter classes)
    In the class declaration for ‛Foo’

Maybe it is just me, but generally I find LANGUAGE pragmas are the way to go. So I think it should read

readFail037.hs:4:1:
    Too many parameters for class ‛Foo’
    (Use {-# LANGUAGE MultiParamTypeClasses #-} to allow multi-parameter classes)
    In the class declaration for ‛Foo’

Note that it is easier to copying MultiParamTypeClasses (by double-clicking), entering "-X", and pasting, than copying XMultiParamTypeClasses and removing the X again.

If noone complains or someone says that it is a good idea I’ll fix it myself.

Trac metadata
Trac field Value
Version 7.6.3
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information