From dd53545154c5149dc720cc34c9990b92aec78c1a Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 18 Mar 2018 09:20:21 -0700 Subject: New approach to custom Prelude. We use no custom Prelude with the latest ghc version (8.4.1), so we don't have problems with ghci. See https://ghc.haskell.org/trac/ghc/ticket/10920 https://www.reddit.com/r/haskell/comments/3ryf2p/how_can_you_use_a_custom_prelude_with_ghci/ This may help with #4464. --- prelude/Prelude.hs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'prelude') diff --git a/prelude/Prelude.hs b/prelude/Prelude.hs index 9c8ac9363..5ea523433 100644 --- a/prelude/Prelude.hs +++ b/prelude/Prelude.hs @@ -1,17 +1,17 @@ +{-# LANGUAGE NoImplicitPrelude #-} {-# LANGUAGE PackageImports #-} {-# LANGUAGE CPP #-} +-- The intent is that this Prelude provide the API of +-- the base 4.11 Prelude in a way that is portable for +-- all base versions. + module Prelude ( - module P -, Monoid(..) + module Prelude.Compat , Semigroup(..) -, Applicative(..) ) where -import "base" Prelude as P +import Prelude.Compat import Data.Semigroup (Semigroup(..)) -- includes (<>) -#if MIN_VERSION_base(4,11,0) -import Data.Monoid (Monoid(..)) -#endif -- cgit v1.2.3