on master help sign in
Merge pull request #12 from tibbe/ffi-fix

Fix build with GHC 7.3+

commitc02bc867b19a8f5626e640f7204ac1d51bedce4d authorBryan O'Sullivan <bos@serpentine.com> dateSat 29 Oct 2011, 09:38 (15 years ago) parent587e36f4b5864e
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#)