clearer directions
This commit is contained in:
@@ -45,14 +45,6 @@ Supports:
|
|||||||
Usage
|
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
|
To try out standalone prelude at the interactive shell, from the Protolude
|
||||||
project directory run.
|
project directory run.
|
||||||
|
|
||||||
@@ -61,6 +53,27 @@ $ stack exec ghci
|
|||||||
> import Protolude
|
> 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
|
Exported Functions
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user