Search code examples
haskellghci

Haskell How do i know GHCi is working corretly


Hi I'm a student and completely new to programming and Haskell. I'm using a Mac 10.11.5 downloaded and installed Xcode, Command Line Tools, and the Haskell Platform and managed to find the Terminal and start the GHCi Interpreter simply by typing $ghci.

Problem is in my University documents and in The GHC documentation it says it should look like:

user@local:~$ ghci -W
GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> 

In my case it's just

Moritzs-Air:~ mm$ ghci
GHCi, version 7.10.3: http://www.haskell.org/ghc/  :? for help
Prelude> 

I've checked ghc-pkg list. The cabal packages are installed. Is everything working correctly or do i have to load the packages somehow?

Is there any possibility for a complete noob to check that ghci is working correctly. i have to run a few simple tasks and my results are graded.

Moritz


Solution

  • Those three packages (ghc-prim, integer-gmp, and base) just don't report loading in new versions of ghci.

    base, for example, provides Prelude> and its support libraries, so if you see it, it's loaded.