clearer directions

This commit is contained in:
Stephen Diehl
2016-12-08 09:03:22 +00:00
parent dac4888f61
commit fb6f00b90b
+21 -8
View File
@@ -45,14 +45,6 @@ Supports:
Usage
-----
In your project simply disable the default Prelude and import Protolude.
```haskell
{-# LANGUAGE NoImplicitPrelude #-}
import Protolude
```
To try out standalone prelude at the interactive shell, from the Protolude
project directory run.
@@ -61,6 +53,27 @@ $ stack exec ghci
> import Protolude
```
Swapping out the old Prelude
----------------------------
Disable the built-in prelude at the top of your file:
```haskell
{-# LANGUAGE NoImplicitPrelude #-}
```
Or directly in your project cabal file:
```haskell
default-extensions: NoImplicitPrelude
```
Then in your modules:
```haskell
import Protolude
```
Exported Functions
------------------