[Haskell-cafe] ghci + user prelude

Sean McLaughlin seanmcl at gmail.com
Mon Nov 16 15:27:55 EST 2009


Hello,

  If there's a file called Prelude.hs in a directory, and ghci is
started from that directory, ghci dies.

-- Prelude.hs
module A.Prelude where

$ ghci
GHCi, version 6.10.4: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
<command line>: module `Prelude' is not loaded

Is there a way around this?  I often like to have a modified Prelude
file in a subdirectory of my project, and this behavior keeps me from
being able to start ghci there.

Thanks!

Sean


More information about the Haskell-Cafe mailing list