|
1 |
| -{-# LANGUAGE CPP, UnboxedTuples, MagicHash, DeriveDataTypeable #-} |
2 |
| -{-# LANGUAGE GeneralizedNewtypeDeriving, StandaloneDeriving #-} |
| 1 | +{-# LANGUAGE CPP #-} |
| 2 | +{-# LANGUAGE UnboxedTuples #-} |
| 3 | +{-# LANGUAGE MagicHash #-} |
| 4 | +{-# LANGUAGE DeriveDataTypeable #-} |
| 5 | +{-# LANGUAGE GeneralizedNewtypeDeriving #-} |
| 6 | +{-# LANGUAGE StandaloneDeriving #-} |
3 | 7 | {-# LANGUAGE ScopedTypeVariables #-}
|
4 |
| -{-# LANGUAGE TypeInType #-} |
5 | 8 | {-# LANGUAGE DeriveGeneric #-}
|
| 9 | +{-# LANGUAGE DataKinds #-} |
| 10 | +{-# LANGUAGE PolyKinds #-} |
| 11 | + |
| 12 | +#if __GLASGOW_HASKELL__ < 906 |
| 13 | +{-# LANGUAGE TypeInType #-} |
| 14 | +#endif |
6 | 15 |
|
7 | 16 | #include "HsBaseConfig.h"
|
8 | 17 |
|
@@ -49,9 +58,12 @@ import qualified GHC.Exts
|
49 | 58 | import Control.Applicative (Const(..))
|
50 | 59 | import Data.Functor.Identity (Identity(..))
|
51 | 60 | import qualified Data.Monoid as Monoid
|
52 |
| -import Data.Ord (Down(..)) |
53 | 61 | import qualified Data.Semigroup as Semigroup
|
54 | 62 |
|
| 63 | +#if !MIN_VERSION_base(4,13,0) |
| 64 | +import Data.Ord (Down(..)) |
| 65 | +#endif |
| 66 | + |
55 | 67 | -- | Class of types supporting primitive array operations. This includes
|
56 | 68 | -- interfacing with GC-managed memory (functions suffixed with @ByteArray#@)
|
57 | 69 | -- and interfacing with unmanaged memory (functions suffixed with @Addr#@).
|
|
0 commit comments