Module

Optic.Prism

Package
purescript-lensDEPRECATED
Repository
joneshf/purescript-lens

#clonePrism Source

clonePrism :: forall b a t s p f. Applicative f => Choice p => APrism s t a b -> p a (f b) -> p s (f t)

#is Source

is :: forall b a t s. APrism s t a b -> s -> Boolean

#isn't Source

isn't :: forall b a t s. APrism s t a b -> s -> Boolean

#matching Source

matching :: forall b a t s. APrism s t a b -> s -> Either t a

#nearly Source

nearly :: forall a. a -> (a -> Boolean) -> Prism' a Unit

#only Source

only :: forall a. Eq a => a -> Prism' a Unit

#prism Source

prism :: forall b a t s p f. Applicative f => Choice p => (b -> t) -> (s -> Either t a) -> p a (f b) -> p s (f t)

#prism' Source

prism' :: forall b a s. (b -> s) -> (s -> Maybe a) -> Prism s s a b

#withPrism Source

withPrism :: forall s t a r b. APrism s t a b -> ((b -> t) -> (s -> Either t a) -> r) -> r