Idris2Doc : Control.Lens.Setter

Control.Lens.Setter

(source)

Definitions

recordIsSetter : (Type->Type->Type) ->Type
Totality: total
Visibility: public export
Constructor: 
MkIsSetter : Mappingp->IsSetterp

Projection: 
.runIsSetter : IsSetterp->Mappingp

Hints:
IsSetterp=>IsSetter (Indexedip)
IsSetterp=>IsTraversalp
.runIsSetter : IsSetterp->Mappingp
Totality: total
Visibility: public export
runIsSetter : IsSetterp->Mappingp
Totality: total
Visibility: public export
setterToTraversal : IsSetterp=>IsTraversalp
Totality: total
Visibility: export
indexedSetter : IsSetterp=>IsSetter (Indexedip)
Totality: total
Visibility: export
0Setter : Type->Type->Type->Type->Type
  A setter is an optic that only supports setting, not getting.

More specifically, a setter can modify zero or more focus elements. This
means that all traversals are setters.

Setters can be thought of as a generalization of the `Functor` interface,
allowing one to map over the contents of a structure.

Totality: total
Visibility: public export
0Setter' : Type->Type->Type
  `Setter'` is the `Simple` version of `Setter`.

Totality: total
Visibility: public export
0IndexedSetter : Type->Type->Type->Type->Type->Type
  An indexed setter allows access to an index while setting.

Totality: total
Visibility: public export
0IndexedSetter' : Type->Type->Type->Type
  `IndexedSetter'` is the `Simple` version of `IndexedSetter`.

Totality: total
Visibility: public export
sets : ((a->b) ->s->t) ->Setterstab
  Construct a setter from a modifying function.

Totality: total
Visibility: public export
isets : ((i->a->b) ->s->t) ->IndexedSetteristab
  Construct an indexed setter from a modifying function.

Totality: total
Visibility: public export
mapped : Functorf=>Setter (fa) (fb) ab
  Derive a setter from a `Functor` implementation.

Totality: total
Visibility: public export
contramapped : Contravariantf=>Setter (fa) (fb) ba
  Derive a setter from a `Contravariant` implementation.

Totality: total
Visibility: public export
over : Setterstab-> (a->b) ->s->t
  Modify the focus or focuses of an optic.

Totality: total
Visibility: public export
(%~) : Setterstab-> (a->b) ->s->t
  Modify the focus or focuses of an optic.

This is the operator form of `over`.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
iover : IndexedSetteristab-> (i->a->b) ->s->t
  Modify the focus or focuses of an indexed optic, having access to the index.

Totality: total
Visibility: public export
(%@~) : IndexedSetteristab-> (i->a->b) ->s->t
  Modify the focus or focuses of an indexed optic, having access to the index.

This is the operator form of `iover`.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
set : Setterstab->b->s->t
  Set the focus or focuses of an optic to a constant value.

Totality: total
Visibility: public export
(.~) : Setterstab->b->s->t
  Set the focus or focuses of an optic to a constant value.

This is the operator form of `set`.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
iset : IndexedSetteristab-> (i->b) ->s->t
  Set the focus or focuses of an indexed optic, having access to the index.

Totality: total
Visibility: public export
(.@~) : IndexedSetteristab-> (i->b) ->s->t
  Set the focus or focuses of an indexed optic, having access to the index.

This is the operator form of `iset`.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(?~) : Settersta (Maybeb) ->b->s->t
  Set the focus of an optic to `Just` a value.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(<.~) : Setterstab->b->s-> (b, t)
  Set a value with pass-through.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(<?~) : Settersta (Maybeb) ->b->s-> (b, t)
  Set `Just` a value with pass-through.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(+~) : Numa=>Setterstaa->a->s->t
  Add a constant value to the focus of an optic.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(*~) : Numa=>Setterstaa->a->s->t
  Multiply the focus of an optic by a constant value.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(-~) : Nega=>Setterstaa->a->s->t
  Subtract a constant value from the focus of an optic.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(/~) : Fractionala=>Setterstaa->a->s->t
  Divide the focus of an optic by a constant value.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(||~) : SetterstBoolBool-> Lazy Bool->s->t
  Logically OR the focus of an optic with a constant value.

Like `(||)`, this operator takes a lazy second argument.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(&&~) : SetterstBoolBool-> Lazy Bool->s->t
  Logically AND the focus of an optic with a constant value.

Like `(&&)`, this operator takes a lazy second argument.

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(<+>~) : Semigroupa=>Setterstaa->a->s->t
  Modify the focus of an optic using the semigroup/monoid operator.

The constant value is applied to the focus from the right:
```idris
l <+>~ x = over l (<+> x)
```

Totality: total
Visibility: public export
Fixity Declaration: infixr operator, level 4
(%=) : MonadStatesm=>Setterssab-> (a->b) ->m ()
  Modify the focus of an optic within a state monad.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(%@=) : MonadStatesm=>IndexedSetterissab-> (i->a->b) ->m ()
  Modify the focus of an optic within a state monad, having access to the index.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(.=) : MonadStatesm=>Setterssab->b->m ()
  Set the focus of an optic within a state monad.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(.@=) : MonadStatesm=>IndexedSetterissab-> (i->b) ->m ()
  Set the focus of an optic within a state monad, having access to the index.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(?=) : MonadStatesm=>Setterssa (Maybeb) ->b->m ()
  Set the focus of an optic within a state monad to `Just` a value.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(<.=) : MonadStatesm=>Setterssab->b->mb
  Set within a state monad with pass-through.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(<?=) : MonadStatesm=>Setterssa (Maybeb) ->b->mb
  Set to `Just` a value within a state monad with pass-through.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(+=) : Numa=>MonadStatesm=>Setter'sa->a->m ()
  Add a constant value to the focus of an optic within a state monad.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(*=) : Numa=>MonadStatesm=>Setter'sa->a->m ()
  Multiply the focus of an optic into state by a constant value.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(-=) : Nega=>MonadStatesm=>Setter'sa->a->m ()
  Subtract a constant value from the focus of an optic within a state monad.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(//=) : Fractionala=>MonadStatesm=>Setter'sa->a->m ()
  Divide the focus of an optic into state by a constant value.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(||=) : MonadStatesm=>Setter'sBool-> Lazy Bool->m ()
  Logically OR the focus of an optic into state with a constant value.

Like `(||)`, this operator takes a lazy second argument.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(&&=) : MonadStatesm=>Setter'sBool-> Lazy Bool->m ()
  Logically AND the focus of an optic into state with a constant value.

Like `(&&)`, this operator takes a lazy second argument.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(<+>=) : Semigroupa=>MonadStatesm=>Setter'sa->a->m ()
  Modify the focus of an optic into state using the semigroup/monoid operator.

The constant value is applied to the focus from the right.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 4
(<~) : MonadStatesm=>Setterssab->mb->m ()
  Run a monadic action and set the focus of an optic in state to the result.

This can be thought of as a variation on the do-notation pseudo-operator (<-),
storing the result of a computation within state instead of in a local
variable.

Totality: total
Visibility: public export
Fixity Declarations:
infix operator, level 1
infixl operator, level 0
(<<~) : MonadStatesm=>Setterssab->mb->mb
  Run a monadic action and set the focus of an optic in state to the result.
This is different from `(<~)` in that it also passes though the output of
the action.

Totality: total
Visibility: public export
Fixity Declaration: infix operator, level 1