#5418: Constructor import error message suggests invalid syntax
---------------------------------+------------------------------------------
    Reporter:  YitzGale          |       Owner:          
        Type:  bug               |      Status:  new     
    Priority:  normal            |   Component:  Compiler
     Version:  7.2.1             |    Keywords:          
    Testcase:                    |   Blockedby:          
          Os:  Unknown/Multiple  |    Blocking:          
Architecture:  Unknown/Multiple  |     Failure:  Other   
---------------------------------+------------------------------------------
 {{{
 In module `Data.List.NonEmpty':
   `:|' is a data constructor of `NonEmpty'
 To import it use
   `import Data.List.NonEmpty (NonEmpty (:|))'
 or ...
 }}}
 That is not a very good suggestion, since it won't compile.
 It should be:
 {{{
   `import Data.List.NonEmpty (NonEmpty ((:|)))'
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5418>
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