Commits

tibbe committed 126c69b

Fix build with GHC 7.3+

  • Participants
  • Parent commits 7b5cc22

Comments (0)

Files changed (1)

File Data/Text/Array.hs

 import Data.Bits ((.&.), xor)
 import Data.Text.Unsafe.Base (inlinePerformIO)
 import Data.Text.UnsafeShift (shiftL, shiftR)
+#if __GLASGOW_HASKELL__ >= 703
+import Foreign.C.Types (CInt(CInt), CSize(CSize))
+#else
 import Foreign.C.Types (CInt, CSize)
+#endif
 import GHC.Base (ByteArray#, MutableByteArray#, Int(..),
                  indexWord16Array#, newByteArray#,
                  unsafeCoerce#, writeWord16Array#)