lens-core-0.1.0.3: 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 HaskellNone
LanguageHaskell2010

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
Lift (Either c) (Market a b) Source # 
Instance details

Defined in Control.Lens.Internal.Prism

Methods

lift :: Market a b a0 b0 -> Market a b (Either c a0) (Either c b0) #

Profunctor (Market a b) Source # 
Instance details

Defined in Control.Lens.Internal.Prism

Methods

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

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

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

Functor (Market a b s) Source # 
Instance details

Defined in Control.Lens.Internal.Prism

Methods

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

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

type Market' a = Market a a Source #

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