
12 Nov
2007
12 Nov
'07
9:59 p.m.
On Mon, 12 Nov 2007, Chris Smith wrote:
Dan Piponi wrote:
Several months late I now have a simple test case for what I think is either a GHC bug or a "misexpectation" on my part.
Here's what it looks like to me.
If there is a .hi and .o file sitting around for a module, then GHCi will load it in compiled mode, and only let you access those symbols that are exported by the .hi file. If you compile a source file that has no module header, it compiles to the module Main and *only* exports the symbol main. You can fix it by adding a module header explicitly, or by deleting either the .hi or .o file.
See http://www.haskell.org/ghc/docs/latest/html/users_guide/interactive-evaluati...