This question arose on #haskell irc chat:
How can I start ghci without importing prelude?
The possible answer seemed obvious:
ghci -XNoImplicitPrelude
, or load a file withimport Prelude ()
The latter seems to work, while the former strangely does not. However, import Prelude ()
imports the declared instances from Prelude, right? Is there a better way of creating a ghci session without loading Prelude at all?