Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class ReversibleOptic k where #
type ReversedOptic k :: OpticKind #
re :: Optic k '[] s t a b -> Optic (ReversedOptic k) '[] b a t s #
Reverses optics, turning around Equality
into Equality
, Iso
into
Iso
, Prism
into PrismaticGetter
(and back), Lens
into LensyReview
(and back) and Getter
into Review
(and back).