repa-array-4.0.0.1: Data/Repa/Fusion/Unpack.hs
module Data.Repa.Fusion.Unpack
(Unpack (..))
where
-- | Unpack the pieces of a structure into a tuple.
--
-- This is used in a low-level fusion optimisation to ensure that
-- intermediate values are unboxed.
--
class Unpack a t | a -> t where
unpack :: a -> t
repack :: a -> t -> a