Commit a0969993 authored by Eyal Dechter's avatar Eyal Dechter

Suggest using cabal repl.

parent d90bbebc
......@@ -92,7 +92,7 @@ Module Quickstart:
First steps:
- Fork and clone the repository.
- Build IHaskell.
˝
```bash
cd <path-to-IHaskell>
cabal configure
......@@ -101,7 +101,19 @@ cabal build
**Loading IHaskell into GHCi for testing:**
If you want to play around with IHaskell by loading it into GHCi, you need to include the ghc package and the cabal macros file. cabal_macros.h is generated by the ```cabal build``` command and the file is placed in the build directory. You will also need to use the OverloadedStrings language extension. So if you are at the top level of the IHaskell project, you can load GHCi as follows:
**Using cabal repl**
If you have the latest version of cabal (>v1.18.0), the simplest thing to do is
```bash
cd <path-to-IHaskell>
cabal repl
```
**Using GHCi directly**
Alternatively you can just call ghci with the appropriate options. You can find these in the IHaskell.cabal file.
```bash
ghci -XDoAndIfThenElse -XNoImplicitPrelude -XOverloadedStrings -package ghc -optP-include -optPdist/build/autogen/cabal_macros.h
```
......@@ -118,13 +130,11 @@ or you can create a .ghci file in the top level directory, like so:
```
**Using cabal-dev instead:**
Another option is to use [cabal-dev](https://github.com/creswick/cabal-dev/blob/master/README.md) instead of cabal. This creates a sandboxed environment within the project directory. This avoids dependency conflicts. But it does take a little while to download and install all the dependencies. You can also use cabal-dev to call ghci with all the cabal options automatically imported.
```bash
cd <path-to-IHaskell>
cabal-dev install
cabal-dev ghci
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment