on master help sign in
Fix build with GHC 7.3+
commit4b5864eedf0d8e4a1cb35f2f9a562ea15b8ed649 authorJohan Tibell <johan.tibell@gmail.com> dateSat 29 Oct 2011, 08:25 (15 years ago) parent587e36f
1 file changed+4
Data/Text/Array.hs+4
Data/Text/Array.hs+4
@@ -64,7 +64,11 @@ import Control.Monad.ST (unsafeIOToST)
6464import Data.Bits ((.&.), xor)
6565import Data.Text.Unsafe.Base (inlinePerformIO)
6666import Data.Text.UnsafeShift (shiftL, shiftR)
67+#if __GLASGOW_HASKELL__ >= 703
68+import Foreign.C.Types (CInt(CInt), CSize(CSize))
69+#else
6770import Foreign.C.Types (CInt, CSize)
71+#endif
6872import GHC.Base (ByteArray#, MutableByteArray#, Int(..),
6973 indexWord16Array#, newByteArray#,
7074 unsafeCoerce#, writeWord16Array#)