#1310: confusing error message when trying to give a type-signature to an
imported
symbol
-----------------------------+----------------------------------------------
Reporter: Isaac Dupree | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 6.6.1
Severity: normal | Resolution: fixed
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
-----------------------------+----------------------------------------------
Changes (by simonpj):
* resolution: => fixed
* status: new => closed
Comment:
Good point. I've improved the error messages. For imports:
{{{
Foo.hs:4:11:
Misplaced type signature: putStrLn :: String -> IO ()
You cannot give a type signature for an imported value
}}}
For locals:
{{{
Foo.hs:4:11:
Misplaced type signature: p :: String -> IO ()
The type signature must be given where `p' is declared
}}}
Thanks for the suggestion
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1310>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs