Module

Data.Lens.Common

This module defines common lenses and prisms.

Re-exports from Data.Lens.Lens.Tuple

#second

second :: forall a b c p. Strong p => p b c -> p (Tuple a b) (Tuple a c)

#first

first :: forall a b c p. Strong p => p a b -> p (Tuple a c) (Tuple b c)

#_2

_2 :: forall a b c. Lens (Tuple c a) (Tuple c b) a b

Lens for the second component of a Tuple.

#_1

_1 :: forall a b c. Lens (Tuple a c) (Tuple b c) a b

Lens for the first component of a Tuple.

Re-exports from Data.Lens.Lens.Unit

#united

united :: forall a. Lens' a Unit

There is a Unit in everything.

Re-exports from Data.Lens.Prism.Either

#right

right :: forall a b c p. Choice p => p b c -> p (Either a b) (Either a c)

#left

left :: forall a b c p. Choice p => p a b -> p (Either a c) (Either b c)

#_Right

_Right :: forall a b c. Prism (Either c a) (Either c b) a b

Prism for the Right constructor of Either.

#_Left

_Left :: forall a b c. Prism (Either a c) (Either b c) a b

Prism for the Left constructor of Either.

Re-exports from Data.Lens.Prism.Maybe

#_Nothing

_Nothing :: forall a b. Prism (Maybe a) (Maybe b) Unit Unit

Prism for the Nothing constructor of Maybe.

#_Just

_Just :: forall a b. Prism (Maybe a) (Maybe b) a b

Prism for the Just constructor of Maybe.

Modules