summaryrefslogtreecommitdiff
blob: 97afb4f2d7e4e63378ac4998d15f895c4359543a (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
--- text-icu-0.7.0.0-orig/Data/Text/ICU/Break.hsc	2014-08-15 07:17:37.000000000 +1000
+++ text-icu-0.7.0.0/Data/Text/ICU/Break.hsc	2015-01-03 15:05:27.300927099 +1100
@@ -64,7 +64,11 @@
 import Foreign.Marshal.Array (allocaArray, peekArray)
 import Foreign.Marshal.Utils (with)
 import Foreign.Ptr (FunPtr, Ptr, nullPtr)
+#if MIN_VERSION_base(4,8,0)
+import Prelude hiding (last, Word)
+#else
 import Prelude hiding (last)
+#endif
 import System.IO.Unsafe (unsafePerformIO)
 
 -- $indices
--- text-icu-0.7.0.0-orig/Data/Text/ICU/Break/Pure.hs	2014-08-15 07:17:37.000000000 +1000
+++ text-icu-0.7.0.0/Data/Text/ICU/Break/Pure.hs	2015-01-03 15:06:16.528158894 +1100
@@ -1,4 +1,4 @@
-{-# LANGUAGE BangPatterns, RecordWildCards #-}
+{-# LANGUAGE BangPatterns, CPP, RecordWildCards #-}
 -- |
 -- Module      : Data.Text.ICU.Break.Pure
 -- Copyright   : (c) 2010 Bryan O'Sullivan
@@ -44,6 +44,9 @@
 import Data.Text.ICU.Break (Line, Word)
 import Data.Text.ICU.Break.Types (BreakIterator(..))
 import Data.Text.ICU.Internal (LocaleName)
+#if MIN_VERSION_base(4,8,0)
+import Prelude hiding (Word)
+#endif
 import System.IO.Unsafe (unsafeInterleaveIO, unsafePerformIO)
 import qualified Data.Text.ICU.Break as IO