From fb6f00b90b1cf102b7674c6734f810921ddb145c Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Thu, 8 Dec 2016 09:03:22 +0000 Subject: [PATCH] clearer directions --- README.md | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a32dc14ba..6569908ec 100644 --- a/README.md +++ b/README.md @@ -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 ------------------