aboutsummaryrefslogtreecommitdiff
path: root/prelude/Prelude.hs
blob: ca5c687ea127a490965879ee2b0d001ba21901d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{-# LANGUAGE PackageImports #-}
{-# LANGUAGE CPP #-}

module Prelude
(
  module P
, Monoid(..)
, Applicative(..)
#if MIN_VERSION_base(4,8,0)
#else
, (<$>)
, (<$)
#endif
, (<>)
)
where

#if MIN_VERSION_base(4,8,0)
import "base" Prelude as P
import Data.Monoid ((<>))
#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

#if MIN_VERSION_base(4,5,0)
#else
infixr 6 <>

-- | An infix synonym for 'mappend'.
(<>) :: Monoid m => m -> m -> m
(<>) = mappend
{-# INLINE (<>) #-}
#endif