quadratic-irrational-0.0.5: An implementation of quadratic irrationals

PortabilityRank2Types
Stabilityprovisional
MaintainerJohan Kiviniemi <devel@johan.kiviniemi.name>
Safe HaskellSafe-Inferred

Numeric.QuadraticIrrational.Internal.Lens

Description

A tiny implementation of some lens primitives. Please see http://hackage.haskell.org/package/lens for proper documentation.

Documentation

type Lens s t a b = Functor f => (a -> f b) -> s -> f tSource

type Traversal s t a b = Applicative f => (a -> f b) -> s -> f tSource

type Lens' s a = Functor f => (a -> f a) -> s -> f sSource

type Traversal' s a = Applicative f => (a -> f a) -> s -> f sSource

type Getting r s a = (a -> Const r a) -> s -> Const r sSource

type Setting s t a b = (a -> Identity b) -> s -> Identity tSource

view :: Getting a s a -> s -> aSource

over :: Setting s t a b -> (a -> b) -> s -> tSource

set :: Setting s t a b -> b -> s -> tSource