{-# LANGUAGE MagicHash #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
module Data.Primitive (
module Data.Primitive.Types,
module Data.Primitive.Array,
module Data.Primitive.ByteArray,
module Data.Primitive.Addr,
sizeOf, alignment
) where
import Data.Primitive.Types
import Data.Primitive.Array
import Data.Primitive.ByteArray
import Data.Primitive.Addr
import GHC.Base ( Int(..) )
sizeOf :: Prim a => a -> Int
sizeOf x = I# (sizeOf# x)
alignment :: Prim a => a -> Int
alignment x = I# (alignment# x)