diff options
Diffstat (limited to 'prelude/Prelude.hs')
-rw-r--r-- | prelude/Prelude.hs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/prelude/Prelude.hs b/prelude/Prelude.hs new file mode 100644 index 000000000..50e86a7b9 --- /dev/null +++ b/prelude/Prelude.hs @@ -0,0 +1,30 @@ +{-# LANGUAGE PackageImports #-} +{-# LANGUAGE CPP #-} + +-- This custom Prelude emulates the API of the prelude +-- with base 4.8. + +module Prelude +( + module P +#if MIN_VERSION_base(4,8,0) +#else +, Monoid(..) +, Applicative(..) +, (<$>) +, (<$) +#endif +) +where + +#if MIN_VERSION_base(4,8,0) +import "base" Prelude as P +#elif MIN_VERSION_base(4,6,0) +import "base" Prelude as P +import Control.Applicative +import Data.Monoid +#else +import "base" Prelude as P hiding (catch) +import Control.Applicative +import Data.Monoid +#endif |