Excerpts from Sean McLaughlin's message of Mon Nov 16 19:06:06 -0500 2009:
Hi. I'm aware of this option, and use it frequently to override the
default prelude, but it doesn't help this problem:
I suppose this is the appropriate quote from the GHC manual:
GHC normally imports Prelude.hi files
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 ...
Excerpts from Sean McLaughlin's message of Mon Nov 16 15:27:55 -0500 2009:
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.
Hi. I'm aware of this option, and use it frequently to override the
default prelude, but it doesn't help this problem:
$ ghci -XNoImplicitPrelude
GHCi, version 6.10.4: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ...
On 15-May-2000, S.D.Mechveliani [EMAIL PROTECTED] wrote:
... only several days ago I have realized or recalled that it is
possible to replace some algebraic part of Prelude-98 with the
user prelude. Someone, - thanks for the help, - had confirmed
this recently: use import qualified
On 15-May-2000, Marcin 'Qrczak' Kowalczyk [EMAIL PROTECTED] wrote:
Mon, 15 May 2000 08:53:21 +0400 (MSD), S.D.Mechveliani [EMAIL PROTECTED] pisze:
I expect, it would not be good to repeat the definitions of
data Maybe, data Bool
in MyPrelude.
1. import qualified
Mon, 15 May 2000 08:53:21 +0400 (MSD), S.D.Mechveliani [EMAIL PROTECTED] pisze:
I expect, it would not be good to repeat the definitions of
data Maybe, data Bool
in MyPrelude.
1. import qualified Prelude
import Prelude (Bool(..), Maybe(..), etc.)
2. import Prelude