@@ -344,6 +344,7 @@ class Unbox a where
344344 -- | Get the size. Size cannot be zero.
345345 sizeOf :: Proxy a -> Int
346346
347+ {-# INLINE sizeOf #-}
347348 default sizeOf :: (SizeOfRep (Rep a)) => Proxy a -> Int
348349 sizeOf = genericSizeOf
349350
@@ -354,6 +355,7 @@ class Unbox a where
354355 -- of the array, the caller must not assume that.
355356 peekByteIndex :: Int -> MutableByteArray -> IO a
356357
358+ {-# INLINE peekByteIndex #-}
357359 default peekByteIndex :: (Generic a, PeekRep (Rep a)) =>
358360 Int -> MutableByteArray -> IO a
359361 peekByteIndex i arr = genericPeekByteIndex arr i
@@ -365,6 +367,7 @@ class Unbox a where
365367 -- of the array, the caller must not assume that.
366368 pokeByteIndex :: Int -> MutableByteArray -> a -> IO ()
367369
370+ {-# INLINE pokeByteIndex #-}
368371 default pokeByteIndex :: (Generic a, PokeRep (Rep a)) =>
369372 Int -> MutableByteArray -> a -> IO ()
370373 pokeByteIndex i arr = genericPokeByteIndex arr i