summaryrefslogtreecommitdiff
path: root/packages/base/src/Internal/Vector.hs
diff options
context:
space:
mode:
authorSidharth Kapur <sidharthkapur1@gmail.com>2016-03-21 14:12:24 -0500
committerSidharth Kapur <sidharthkapur1@gmail.com>2016-03-21 14:12:24 -0500
commit40c98255c234dc3bf854dfdedf95c6b6f831c27f (patch)
tree81f81b09a167542f0da82d2588055b0a4d35f6dc /packages/base/src/Internal/Vector.hs
parentf5e235bbdb4bc342b623676b07245d781a9fb994 (diff)
Remove BINARY ifdefs and CPP pragmas
Diffstat (limited to 'packages/base/src/Internal/Vector.hs')
-rw-r--r--packages/base/src/Internal/Vector.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/base/src/Internal/Vector.hs b/packages/base/src/Internal/Vector.hs
index de4e670..b4e235c 100644
--- a/packages/base/src/Internal/Vector.hs
+++ b/packages/base/src/Internal/Vector.hs
@@ -1,4 +1,4 @@
1{-# LANGUAGE MagicHash, CPP, UnboxedTuples, BangPatterns, FlexibleContexts #-} 1{-# LANGUAGE MagicHash, UnboxedTuples, BangPatterns, FlexibleContexts #-}
2{-# LANGUAGE TypeSynonymInstances #-} 2{-# LANGUAGE TypeSynonymInstances #-}
3 3
4 4
@@ -39,12 +39,10 @@ import GHC.Base(realWorld#, IO(IO), when)
39import qualified Data.Vector.Storable as Vector 39import qualified Data.Vector.Storable as Vector
40import Data.Vector.Storable(Vector, fromList, unsafeToForeignPtr, unsafeFromForeignPtr, unsafeWith) 40import Data.Vector.Storable(Vector, fromList, unsafeToForeignPtr, unsafeFromForeignPtr, unsafeWith)
41 41
42#ifdef BINARY
43import Data.Binary 42import Data.Binary
44import Control.Monad(replicateM) 43import Control.Monad(replicateM)
45import qualified Data.ByteString.Internal as BS 44import qualified Data.ByteString.Internal as BS
46import Data.Vector.Storable.Internal(updPtr) 45import Data.Vector.Storable.Internal(updPtr)
47#endif
48 46
49type I = CInt 47type I = CInt
50type Z = Int64 48type Z = Int64
@@ -380,7 +378,6 @@ mapVectorWithIndex f v = unsafePerformIO $ do
380-------------------------------------------------------------------------------- 378--------------------------------------------------------------------------------
381 379
382 380
383#ifdef BINARY
384 381
385-- a 64K cache, with a Double taking 13 bytes in Bytestring, 382-- a 64K cache, with a Double taking 13 bytes in Bytestring,
386-- implies a chunk size of 5041 383-- implies a chunk size of 5041
@@ -432,7 +429,6 @@ instance (Binary a, Storable a) => Binary (Vector a) where
432 429
433 -- get = fmap bs2v get 430 -- get = fmap bs2v get
434 431
435#endif
436 432
437 433
438------------------------------------------------------------------- 434-------------------------------------------------------------------