Commits

Bryan O'Sullivan committed fa7bb09 Merge

Merge pull request #12 from tibbe/ffi-fix

Fix build with GHC 7.3+

  • Participants
  • Parent commits 7b5cc22, 126c69b

Comments (0)

Files changed (1)

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#)