Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Data/Vector/Primitive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

module Data.Vector.Primitive (
-- * Primitive vectors
Vector, MVector(..), Prim,
Vector(..), MVector(..), Prim,

-- * Accessors

Expand Down Expand Up @@ -173,7 +173,7 @@ import qualified GHC.Exts as Exts
-- | Unboxed vectors of primitive types
data Vector a = Vector {-# UNPACK #-} !Int
{-# UNPACK #-} !Int
{-# UNPACK #-} !ByteArray
{-# UNPACK #-} !ByteArray -- ^ offset, length, underlying byte array
deriving ( Typeable )

instance NFData (Vector a)
Expand Down
2 changes: 1 addition & 1 deletion Data/Vector/Primitive/Mutable.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ import Data.Typeable ( Typeable )
-- | Mutable vectors of primitive types.
data MVector s a = MVector {-# UNPACK #-} !Int
{-# UNPACK #-} !Int
{-# UNPACK #-} !(MutableByteArray s)
{-# UNPACK #-} !(MutableByteArray s) -- ^ offset, length, underlying mutable byte array
deriving ( Typeable )

type IOVector = MVector RealWorld
Expand Down