miso-0.13.0.0: A tasty Haskell front-end framework

Copyright(C) 2016-2018 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <djohnson.m@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Miso.Lens

Description

 

Documentation

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

type Lens' s a = Lens s s a a Source #

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

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

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

makeLens :: (s -> a) -> (s -> b -> t) -> Lens s t a b Source #