aboutsummaryrefslogtreecommitdiff
path: root/prelude
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2018-03-16 10:08:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2018-03-16 10:21:54 -0700
commite21b57991e589d88f50991b87c6ec01d350e9b22 (patch)
tree9318e623ab63dcef81de86ec19d69c8bebcde60a /prelude
parentbc2f4422b2cfab80882316cdd595bd38dbe723a3 (diff)
downloadpandoc-e21b57991e589d88f50991b87c6ec01d350e9b22.tar.gz
Added custom prelude.
We need this again because of Monoid/Semigroup.
Diffstat (limited to 'prelude')
-rw-r--r--prelude/Prelude.hs22
1 files changed, 22 insertions, 0 deletions
diff --git a/prelude/Prelude.hs b/prelude/Prelude.hs
new file mode 100644
index 000000000..68e1b30f7
--- /dev/null
+++ b/prelude/Prelude.hs
@@ -0,0 +1,22 @@
+{-# LANGUAGE PackageImports #-}
+{-# LANGUAGE CPP #-}
+
+module Prelude
+(
+ module P
+, Monoid(..)
+, Semigroup(..)
+, Applicative(..)
+#if MIN_VERSION_base(4,9,0)
+-- <> is exported in Semigroup
+#else
+, (<>)
+#endif
+)
+where
+
+import "base" Prelude as P
+import Data.Semigroup (Semigroup(..)) -- includes (<>)
+#if MIN_VERSION_base(4,11,0)
+import Data.Monoid (Monoid(..))
+#endif