Safe Haskell | None |
---|---|
Language | Haskell2010 |
Something to coerce between two records with the same field names and compatible field types
Documentation
shapeCoerce :: (Generic a, Generic b, GShapeCoerce (Rep a) (Rep b)) => a -> b Source #
type ShapeCoerce a b = (Generic a, Generic b, GShapeCoerce (Rep a) (Rep b)) Source #
class GShapeCoerce f g where Source #
gshapeCoerce :: f a -> g b Source #