diff options
author | John MacFarlane <jgm@berkeley.edu> | 2018-03-16 10:08:38 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-03-16 10:21:54 -0700 |
commit | e21b57991e589d88f50991b87c6ec01d350e9b22 (patch) | |
tree | 9318e623ab63dcef81de86ec19d69c8bebcde60a /prelude | |
parent | bc2f4422b2cfab80882316cdd595bd38dbe723a3 (diff) | |
download | pandoc-e21b57991e589d88f50991b87c6ec01d350e9b22.tar.gz |
Added custom prelude.
We need this again because of Monoid/Semigroup.
Diffstat (limited to 'prelude')
-rw-r--r-- | prelude/Prelude.hs | 22 |
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 |