lens-4.16: Lenses, Folds and Traversals

Copyright(C) 2012-2016 Edward Kmett
LicenseBSD-style (see the file LICENSE)
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell98

Control.Lens.Internal.Prism

Description

 

Synopsis

Documentation

data Market a b s t Source #

This type is used internally by the Prism code to provide efficient access to the two parts of a Prism.

Constructors

Market (b -> t) (s -> Either t a) 

Instances

Choice (Market a b) Source # 

Methods

left' :: Market a b a b -> Market a b (Either a c) (Either b c) #

right' :: Market a b a b -> Market a b (Either c a) (Either c b) #

Profunctor (Market a b) Source # 

Methods

dimap :: (a -> b) -> (c -> d) -> Market a b b c -> Market a b a d #

lmap :: (a -> b) -> Market a b b c -> Market a b a c #

rmap :: (b -> c) -> Market a b a b -> Market a b a c #

(#.) :: Coercible * c b => (b -> c) -> Market a b a b -> Market a b a c #

(.#) :: Coercible * b a => Market a b b c -> (a -> b) -> Market a b a c #

Functor (Market a b s) Source # 

Methods

fmap :: (a -> b) -> Market a b s a -> Market a b s b #

(<$) :: a -> Market a b s b -> Market a b s a #

type Market' a = Market a a Source #

type Market' a s t = Market a a s t