microgroove-0.2.1.0: Array-backed extensible records

Safe HaskellNone
LanguageHaskell2010

Data.Microgroove.Lib.Cast

Synopsis

Documentation

cast# :: forall b a. a -> b Source #

unsafeCoerce with the type arguments flipped for easier TypeApplications

castf# :: forall g f x. f x -> g x Source #

unsafeCoerce as a natural transformation, keeping the inner type fixed

mapCast# :: forall b f a. f a -> f b Source #

equivalent to fmap cast# but avoids traversing the datastructure