summaryrefslogtreecommitdiff
path: root/prelude
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-01-14 18:34:26 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2018-01-14 18:34:26 -0800
commit2c0054048553565d3ccdd3b7e415fc001d70859c (patch)
tree4691369fa25e881c8940918a0da5e738f89c0fee /prelude
parent9184e1a55b60d3044e19c3a7896e55ba629219ea (diff)
Use base-compat for our custom prelude.
This should give us more complete coverage of newer base features. See #4255.
Diffstat (limited to 'prelude')
-rw-r--r--prelude/Prelude.hs20
1 files changed, 5 insertions, 15 deletions
diff --git a/prelude/Prelude.hs b/prelude/Prelude.hs
index 34f133d83..8f5181fba 100644
--- a/prelude/Prelude.hs
+++ b/prelude/Prelude.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE CPP #-}
@@ -6,21 +7,10 @@
module Prelude
(
- module P
-#if MIN_VERSION_base(4,8,0)
-#else
-, Monoid(..)
-, Applicative(..)
-, (<$>)
-, (<$)
-#endif
+ module Prelude.Compat
+, module Monoid.Compat
)
where
-#if MIN_VERSION_base(4,8,0)
-import "base" Prelude as P
-#else
-import "base" Prelude as P
-import Control.Applicative
-import Data.Monoid
-#endif
+import Prelude.Compat
+import Monoid.Compat