[Haskell-cafe] how can one load Prelude into ghci?

Thomas Hartman tphyahoo at gmail.com
Mon Apr 27 12:25:01 EDT 2009


One reason it would be nice to be able to do this, is you could then
get lambdabot :src style listings of prelude function definitions by
using the ghci debugger and :list for prelude functions.

is this possible? so far I have tried

thartman at ubuntu:~/haskellInstalls/ghcInstalls/source/ghc-6.10.1/libraries/base>head
Prelude.hs
{-# OPTIONS_GHC -XNoImplicitPrelude #-}
-----------------------------------------------------------------------------

thartman at ubuntu:~/haskellInstalls/ghcInstalls/source/ghc-6.10.1/libraries/base>ghci
-i. Prelude.hs
GHCi, version 6.10.1: 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

thartman at ubuntu:~/haskellInstalls/ghcInstalls/source/ghc-6.10.1/libraries/base>ghci
Prelude.hs
GHCi, version 6.10.1: 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


More information about the Haskell-Cafe mailing list