Module

Data.Profunctor.Split

Package
purescript-profunctor
Repository
purescript/purescript-profunctor

#Split Source

newtype Split f a b

Instances

#split Source

split :: forall x b a f. (a -> x) -> (x -> b) -> f x -> Split f a b

#unSplit Source

unSplit :: forall r b a f. (forall x. (a -> x) -> (x -> b) -> f x -> r) -> Split f a b -> r

#liftSplit Source

liftSplit :: forall a f. f a -> Split f a a

#lowerSplit Source

lowerSplit :: forall a f. Invariant f => Split f a a -> f a

#hoistSplit Source

hoistSplit :: forall b a g f. (f ~> g) -> Split f a b -> Split g a b