[GHC] #3805: Bad error message "Invalid type signature"

GHC trac at galois.com
Wed Jan 6 12:15:35 EST 2010


#3805: Bad error message "Invalid type signature"
--------------------------------+-------------------------------------------
  Reporter:  asuffield          |          Owner:                  
      Type:  bug                |         Status:  new             
  Priority:  normal             |      Milestone:                  
 Component:  Compiler (Parser)  |        Version:  6.12.1          
Resolution:                     |       Keywords:                  
Difficulty:                     |             Os:  Unknown/Multiple
  Testcase:                     |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown       |  
--------------------------------+-------------------------------------------
Comment (by simonpj):

 Ah I see.  I think I'll make it say
 {{{
 TestErr.hs:1:0: Invalid type signature: should be of form <variable> ::
 <type>
 }}}
 That should be an improvement. And if "foreign" is the first word (ie your
 original example).
 {{{
 TestErr.hs:1:0:
   Invalid type signature; perhaps you meant to use
 -XForeignFunctionInterface
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3805#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the Glasgow-haskell-bugs mailing list