Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type Coalgebraic s t a b = forall p. MChoice p => Optic p s t a b Source #
type Coalgebraic' s a = Coalgebraic s s a a Source #
swapEither :: Either a b -> Either b a Source #
class Profunctor p => MChoice p where Source #
Nothing
coprism :: (b -> t) -> (s -> Either t a) -> Coalgebraic s t a b Source #
coalgPrism :: Prism s t a b -> Coalgebraic s t a b Source #