Idris2Doc : Control.App

Control.App

Definitions

Error : Type
  `Error` is a type synonym for `Type`, specify for exception handling.

Visibility: public export
dataHasErr : Error->ListError->Type
Totality: total
Visibility: public export
Constructors:
Here : HasErre (e::es)
There : HasErrees->HasErre (e'::es)

Hint: 
HasErrAppHasIOe=>PrimIOe
dataPath : Type
  States whether the program's execution path is linear or might throw exceptions so that we can know
whether it is safe to reference linear resources.

Totality: total
Visibility: public export
Constructors:
MayThrow : Path
NoThrow : Path

Hints:
Applicative (Appes)
Functor (Appes)
Uninhabited (OneOf [] p)
dataUsage : Type
Totality: total
Visibility: public export
Constructors:
One : Usage
Any : Usage
0Has : List (a->Type) ->a->Type
Visibility: public export
dataSafeBind : Path->Path->Type
Totality: total
Visibility: public export
Constructors:
SafeSame : SafeBindll
SafeToThrow : SafeBindNoThrowMayThrow
dataApp : {defaultMayThrow_ : Path} ->ListError->Type->Type
  A type supports throwing and catching exceptions. See `interface Exception err e` for details.
@ l An implicit Path states whether the program's execution path is linear or might throw
exceptions. The default value is `MayThrow` which represents that the program might throw.
@ es A list of exception types that can be thrown. Constrained interfaces can be defined by
parameterising with a list of errors `es`.

Totality: total
Visibility: export
Constructor: 
MkApp : (1_ : ((1_ : %World) ->AppRes (execTylet))) ->Appet

Hints:
Applicative (Appes)
Functor (Appes)
Monad (Appes)
dataApp1 : {defaultOne_ : Usage} ->ListError->Type->Type
Totality: total
Visibility: export
Constructor: 
MkApp1 : (1_ : ((1_ : %World) ->App1Resut)) ->App1et
Cont1Type : Usage->Type->Usage->ListError->Type->Type
Visibility: public export
bindApp1 : (1_ : App1ea) -> (1_ : Cont1Typeuau'eb) ->App1eb
Visibility: export
dataAppHasIO : Type
  When type is present in app "errors" list, app is allowed to perform I/O.

Totality: total
Visibility: public export
Hints:
HasErrAppHasIOe=>PrimIOe
UninhabitedAppHasIO
bindL : Appea-> (1_ : (a->Appeb)) ->Appeb
Visibility: export
seqL : Appe () -> (1_ : Appeb) ->Appeb
Visibility: export
app : (1_ : Appea) ->App1ea
Visibility: export
app1 : (1_ : App1ea) ->Appea
Visibility: export
(>>=) : SafeBindll'=>Appea-> (a->Appeb) ->Appeb
Visibility: export
Fixity Declaration: infixl operator, level 1
(>>=) : (1_ : App1ea) -> (1_ : Cont1Typeuau'eb) ->App1eb
Visibility: export
Fixity Declaration: infixl operator, level 1
(>>) : (1_ : App1e ()) -> (1_ : App1eb) ->App1eb
Visibility: export
Fixity Declaration: infixl operator, level 1
pure : a->App1ea
Visibility: export
pure1 : (1_ : a) ->App1ea
Visibility: export
dataState : a->Type->ListError->Type
Totality: total
Visibility: export
Constructor: 
MkState : IOReft->Statetagte

Hint: 
Statetagte->Statetagt (eff::e)
mapState : Statetagte->Statetagt (eff::e)
Visibility: export
get : (0tag : {_:2831}) ->Statetagte=>Appet
Visibility: export
put : (0tag : {_:2883}) ->Statetagte=>t->Appe ()
Visibility: export
modify : (0tag : {_:2941}) ->Statetagte=> (t->t) ->Appe ()
Visibility: export
new : t-> (Statetagte=>Appea) ->Appea
Visibility: export
Exception : Error->ListError->Type
  An alias for `HasErr`.

Visibility: public export
throw : HasErrerres=>err->Appesa
Visibility: export
catch : HasErrerres=>Appesa-> (err->Appesa) ->Appesa
Visibility: export
handle : App (err::e) a-> (a->Appeb) -> (err->Appeb) ->Appeb
Visibility: export
lift : Appea->App (err::e) a
Visibility: export
Init : ListError
Visibility: public export
run : AppInita->IOa
  The only way provided by `Control.App` to run an App.
@ Init A concrete list of errors.

Visibility: export
noThrow : AppInita->AppInita
Visibility: export
interfacePrimIO : ListError->Type
Parameters: e
Methods:
primIO : IOa->Appea
primIO1 : (1_ : IOa) ->App1ea
fork : (PrimIOe'=>Appe' ()) ->Appe ()

Implementation: 
HasErrAppHasIOe=>PrimIOe
primIO : PrimIOe=>IOa->Appea
Visibility: public export
primIO1 : PrimIOe=> (1_ : IOa) ->App1ea
Visibility: public export
fork : PrimIOe=> (PrimIOe'=>Appe' ()) ->Appe ()
Visibility: public export
new1 : t-> (1_ : (Statetagte=>App1ea)) ->App1ea
Visibility: export
dataFileEx : Type
Totality: total
Visibility: public export
Constructors:
GenericFileEx : Int->FileEx
FileReadError : FileEx
FileWriteError : FileEx
FileNotFound : FileEx
PermissionDenied : FileEx
FileExists : FileEx

Hint: 
ShowFileEx
dataIOError : Type
Totality: total
Visibility: public export
Constructors:
GenericErr : String->IOError
FileErr : FileEx->IOError

Hint: 
ShowIOError