diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-01-14 18:34:26 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-01-14 18:34:26 -0800 |
commit | 2c0054048553565d3ccdd3b7e415fc001d70859c (patch) | |
tree | 4691369fa25e881c8940918a0da5e738f89c0fee | |
parent | 9184e1a55b60d3044e19c3a7896e55ba629219ea (diff) | |
download | pandoc-2c0054048553565d3ccdd3b7e415fc001d70859c.tar.gz |
Use base-compat for our custom prelude.
This should give us more complete coverage of newer
base features.
See #4255.
-rw-r--r-- | pandoc.cabal | 3 | ||||
-rw-r--r-- | prelude/Prelude.hs | 20 |
2 files changed, 7 insertions, 16 deletions
diff --git a/pandoc.cabal b/pandoc.cabal index 48a43ad2b..7b8e3e623 100644 --- a/pandoc.cabal +++ b/pandoc.cabal @@ -626,7 +626,8 @@ test-suite test-pandoc containers >= 0.4.2.1 && < 0.6, executable-path >= 0.0 && < 0.1, zip-archive >= 0.2.3.4 && < 0.4, - xml >= 1.3.12 && < 1.4 + xml >= 1.3.12 && < 1.4, + base-compat >= 0.9 if flag(old-locale) build-depends: old-locale >= 1 && < 1.1, time >= 1.2 && < 1.5 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 |