quadratic-irrational-0.1.0: An implementation of quadratic irrationals

Copyright© 2014 Johan Kiviniemi
LicenseMIT
MaintainerJohan Kiviniemi <devel@johan.kiviniemi.name>
Stabilityprovisional
PortabilityRankNTypes
Safe HaskellSafe
LanguageHaskell2010

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 = forall f. Functor f => (a -> f b) -> s -> f t Source #

type Traversal s t a b = forall f. Applicative f => (a -> f b) -> s -> f t Source #

type Lens' s a = forall f. Functor f => (a -> f a) -> s -> f s Source #

type Traversal' s a = forall f. Applicative f => (a -> f a) -> s -> f s Source #

type Getting r s a = (a -> Const r a) -> s -> Const r s Source #

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

view :: Getting a s a -> s -> a Source #

over :: Setting s t a b -> (a -> b) -> s -> t Source #

set :: Setting s t a b -> b -> s -> t Source #