Idris2Doc : Data.Linear.ELift1

Data.Linear.ELift1

(source)

Reexports

importpublic Data.Linear.Token
importpublic Control.Monad.MErr

Definitions

dataERes : Type->ListType->Type->Type
  Result of a linear computation running in state thread
`s` producing either a value of type `a` or an error of
one of the types listed in `es`.

Totality: total
Visibility: public export
Constructors:
E : HSumes-> (1_ : T1s) ->ERessesa
R : a-> (1_ : T1s) ->ERessesa
0E1 : Type->ListType->Type->Type
  An alias similar to `F1 s a` but for linear computations that could
fail with one of the errors listed.

Totality: total
Visibility: public export
e1ToF1 : Monoida=>E1sesa->F1sa
  Replaces all errors with `neutral`, running an `E1` as an `F1`.

Totality: total
Visibility: export
f1ToE1 : F1sa->E1sesa
  Lifts a linear computation into an `E1 s a`.

Totality: total
Visibility: export
mapERes : (a->b) -> (1_ : EReseesa) ->EReseesb
Totality: total
Visibility: export
pattempt : (1_ : EReseesa) ->EResefs (Resultesa)
Totality: total
Visibility: export
toResult : (1_ : ERessesa) ->R1s (Resultesa)
Totality: total
Visibility: export
toEither : (1_ : ERess [e] a) ->R1s (Eitherea)
Totality: total
Visibility: export
throw1 : Hasees=>e->E1sesa
Totality: total
Visibility: export
fail1 : e->E1s [e] a
Totality: total
Visibility: export
interfaceELift1 : Type-> (ListType->Type->Type) ->Type
  An interface for lifting stateful, linear computation into
a monad with the potential of failure.

Parameters: s, f
Constraints: MErr f
Methods:
elift1 : E1sesa->fesa

Implementation: 
ELift1s (Elins)
elift1 : ELift1sf=>E1sesa->fesa
Totality: total
Visibility: public export
0EIO1 : (ListType->Type->Type) ->Type
  Convenience alias for `ELift1 World`

Totality: total
Visibility: public export