[GHC] #7765: Odd error message for `runghc` with missing `main` function.
GHC
cvs-ghc at haskell.org
Wed Mar 13 14:21:07 CET 2013
#7765: Odd error message for `runghc` with missing `main` function.
---------------------------------+------------------------------------------
Reporter: isaacdupree | Owner: igloo
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.1
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Changes (by simonpj):
* owner: => igloo
* difficulty: => Unknown
Comment:
Nothing to do with `runghc` really; its the `-e` mode:
{{{
ghc -e wombat what.hs
<interactive>:1:1: Not in scope: ‛womab’
}}}
But really it should say
{{{
what.hs:1:33:
Not in scope: `main'
Perhaps you meant `min' (imported from Prelude)
}}}
I'm not sure where the `-e` processing happens, and couldn't find it with
a quick look. Ian, you've been refactoring the pipeline recently, might
you look?
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7765#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list