#2294: Misleading error message suggestion
-----------------------------+----------------------------------------------
    Reporter:  NeilMitchell  |       Owner:          
        Type:  bug           |      Status:  new     
    Priority:  normal        |   Component:  Compiler
     Version:  6.8.2         |    Severity:  normal  
    Keywords:                |    Testcase:          
Architecture:  Unknown       |          Os:  Unknown 
-----------------------------+----------------------------------------------
 Given a rank-2 type, such as:

 {{{
 id :: forall a . a -> a
 id x = x
 }}}

 The compiler complains:

 {{{
 Uniplate.hs:3:15:
     Illegal operator `.' in type `forall a . (a -> a)'
       (Use -XTypeOperators to allow operators in types)
 }}}

 Of course, people using {{{`.'}}} in a type signature are much more likely
 to be aiming for {{{Rank2Types}}} - so perhaps in this one type operator
 the suggestion should be towards rank-2 types.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2294>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to