Idris2Doc : Monocle.Getter

Monocle.Getter

(source)

Definitions

recordGetter : Type->Type->Type->Type->Type
  Getters allows us to extract exactly one piece of data of type `a` from
a source value of type `s`. They are therefore like Folds but with
stronger guarantees.

Just like Folds and other optics, Getters can be composed sequentially,
and just like Folds, Getters have two additional type parameters
(`t` and `b`), which have no runtime relevance and are only used to
compose them with other optics.

Totality: total
Visibility: public export
Constructor: 
G : (s->a) ->Getterstab

Projection: 
.to_ : Getterstab->s->a

Hints:
OSeqIsoGetterGetter
OSeqLensGetterGetter
OSeqPrismGetterFold
OSeqOptionalGetterFold
OSeqTraversalGetterFold
OSeqGetterGetterGetter
OSeqGetterIsoGetter
OSeqGetterLensGetter
OSeqGetterPrismFold
OSeqGetterOptionalFold
OSeqGetterTraversalFold
OSeqGetterFoldFold
OSeqFoldGetterFold
ToFoldGetter
ToGetterGetter
.to_ : Getterstab->s->a
Totality: total
Visibility: public export
to_ : Getterstab->s->a
Totality: total
Visibility: public export
(~>) : Getterstab->Getterabcd->Getterstcd
  Sequential composition of Getters.

Totality: total
Visibility: public export
Fixity Declaration: infixl operator, level 0
interfaceToGetter : (Type->Type->Type->Type->Type) ->Type
  Interface for converting other optics to Getters.

Parameters: o
Methods:
toGetter : ostab->Getterstab

Implementations:
ToGetterIso
ToGetterGetter
ToGetterLens
toGetter : ToGettero=>ostab->Getterstab
Totality: total
Visibility: public export
to : ToGettero=>ostab->s->a
  Use a Getter to extract a piece of data from a source value.

Totality: total
Visibility: public export
getST : Monadm=>ToGettero=>ostab->StateTsma
  View the current state through a `Getter`

Totality: total
Visibility: export
withST : Monadm=>ToGettero=>ossaa-> (a->StateTsmt) ->StateTsmt
Totality: total
Visibility: export