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-evaluation.html _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe