Idris2Doc : Control.Monad.JustAMonad

Control.Monad.JustAMonad

(source)

Reexports

importpublic System.Clock

Definitions

Arrow : Type->Type->Type
Visibility: public export
dataChannel : Type
Totality: total
Visibility: public export
Constructors:
Timing : Channel
Debug : Channel

Hints:
EqChannel
ShowChannel
channelShow : ShowChannel
Visibility: export
Subset : Type->Type
Visibility: public export
M : Type->Type->Type->Type
  Failure over stateful computation wrapped in IO.

Visibility: public export
(>>=) : Mesa-> (a->Mesb) ->Mesb
  Chain computations. Main ingredient for overloaded do-notation.

Visibility: public export
Fixity Declaration: infixl operator, level 1
(=<<) : (a->Mesb) ->Mesa->Mesb
Visibility: public export
Fixity Declaration: infixl operator, level 1
(>=>) : (a->Mesb) -> (b->Mesc) ->a->Mesc
  Composition of monadic functions.

Visibility: public export
Fixity Declaration: infixl operator, level 1
(<=<) : (b->Mesc) -> (a->Mesb) ->a->Mesc
Visibility: public export
Fixity Declaration: infixl operator, level 1
(>>) : Mes () ->Mesb->Mesb
Visibility: public export
Fixity Declaration: infixl operator, level 1
return : a->Mesa
  Wrap a pure result in a computation/monad.

Visibility: public export
throw : e->Mesa
  Throw an error.

Visibility: public export
get : Mess
  Get the state.

Visibility: public export
set : s->Mes ()
Visibility: public export
update : (s->s) ->Mes ()
  Update the state.

Visibility: public export
mapError : (e->e') ->Mesa->Me'sa
Visibility: public export
mapState : (s->s') -> (s'->s) ->Mesa->Mes'a
Visibility: public export
mapResult : (a->b) ->Mesa->Mesb
Visibility: public export
(<$>) : (a->b) ->Mesa->Mesb
Visibility: public export
Fixity Declaration: infixr operator, level 4
(<&>) : Mesa-> (a->b) ->Mesb
Visibility: public export
Fixity Declaration: infixl operator, level 1
(<*>) : Mes (a->b) ->Mesa->Mesb
Visibility: public export
Fixity Declaration: infixl operator, level 3
fromEither : Eitherea->Mesa
Visibility: public export
run : Mesr->s->IO (Eithere (s, r))
  Runs gathering output from all channels.

Visibility: public export
eval : Mesr->s->IO (Eitherer)
  Runs gathering output from all channels, throws away the resulting state.

Visibility: public export
discard : Mesa->Mes ()
  Run the computation and discard its result.

Visibility: public export
when : Bool->Mes () ->Mes ()
  Run the computation when the condition is true.

Visibility: public export
isListening : Channel->MesBool
  Check if the channel is listened.

Visibility: public export
doListen : Channel->Bool->Mes ()
  Sets whether to listen or not on that channel.

Visibility: public export
sequenceMaybe : Maybe (Mesa) ->Mes (Maybea)
Visibility: public export
sequenceList : List (Mesa) ->Mes (Lista)
Visibility: public export
sequenceVect : Vectn (Mesa) ->Mes (Vectna)
Visibility: public export
sequenceSnocList : SnocList (Mesa) ->Mes (SnocLista)
Visibility: public export
sequenceList1 : List1 (Mesa) ->Mes (List1a)
Visibility: public export
sequenceProduct : (Mesa, Mesb) ->Mes (a, b)
Visibility: public export
sequenceEither : Either (Mesa) (Mesb) ->Mes (Eitherab)
Visibility: public export
forList : Lista-> (a->Mesb) ->Mes (Listb)
  Run a computation for each element of the list and join the results.

Visibility: public export
forProduct : (a, b) -> (a->Mesa') -> (b->Mesb') ->Mes (a', b')
  Run a computation for each element of the pair and join the results.

Visibility: public export
traverseProduct : (a->Mesa') -> (b->Mesb') -> (a, b) ->Mes (a', b')
Visibility: public export
forCatMaybes : Lista-> (a->Mes (Maybeb)) ->Mes (Listb)
Visibility: public export
forList1 : List1a-> (a->Mesb) ->Mes (List1b)
  Run a computation for each element of the List1 and join the results.

Visibility: public export
forSnocList : SnocLista-> (a->Mesb) ->Mes (SnocListb)
  Run a computation for each element of the SnocList and join the results.

Visibility: public export
traverseSnocList : (a->Mesb) ->SnocLista->Mes (SnocListb)
Visibility: public export
traverseList : (a->Mesb) ->Lista->Mes (Listb)
Visibility: public export
traverseList1 : (a->Mesb) ->List1a->Mes (List1b)
Visibility: public export
traverseList_ : (a->Mes ()) ->Lista->Mes ()
Visibility: public export
traverseList1_ : (a->Mes ()) ->List1a->Mes ()
Visibility: public export
forVect : Vectna-> (a->Mesb) ->Mes (Vectnb)
  Run a computation for each element of the Vect and join the results.

Visibility: public export
forMaybe : Maybea-> (a->Mesb) ->Mes (Maybeb)
  Run a computation for each element of the Maybe and join the results.

Visibility: public export
traverseMaybe : (a->Mesb) ->Maybea->Mes (Maybeb)
Visibility: public export
forList_ : Lista-> (a->Mesb) ->Mes ()
Visibility: public export
forSnocList_ : SnocLista-> (a->Mesb) ->Mes ()
Visibility: public export
forVect_ : Vectna-> (a->Mesb) ->Mes ()
Visibility: public export
filterMaybeListM : Lista-> (a->Mes (Maybeb)) ->Mes (Listb)
Visibility: public export
try : Mesa->Mes (Eitherea)
  Never fails.

Visibility: public export
one : Mesa->Mesb->Mes (Eitherab)
  Either one must work. Tries the left one first.

Visibility: public export
both : Mesa->Mesb->Mes (a, b)
  Both must work. Tries the left one first.

Visibility: public export
(<|>) : Mesa->Mesa->Mesa
  First working alternative.

Visibility: public export
Fixity Declaration: infixr operator, level 2
allList : List (MesBool) ->MesBool
Visibility: public export
or : MesBool->MesBool->MesBool
  Lazy logical disjunction.

Visibility: public export
Fixity Declaration: infixr operator, level 7
and : MesBool->MesBool->MesBool
  Lazy logical conjunction.

Visibility: public export
Fixity Declaration: infixr operator, level 8
io : IOa->Mesa
Visibility: public export
dataOutputMode : Type
Totality: total
Visibility: public export
Constructors:
STDOUT : OutputMode
FILE : String->OutputMode
print_ : Channel->OutputMode->String->Mes ()
  Eagerly prints something out (using IO) on the given channel.

Visibility: public export
timestamp : Mes (ClockProcess)
Visibility: public export
gcTimestamp : FromStringe=>Mes (ClockGCCPU)
Visibility: public export
formatted : Clocktype->String
Visibility: public export
clock : FromStringe=>String->Mesa->Mesa
  Clocks the given computation, prints out (eagerly) the time it took to run the computation.

Visibility: public export
clockWhen : FromStringe=>Bool->String->Mesa->Mesa
  Clocks the given computation when the condition is true, prints out (eagerly) the time it took to run the computation.

Visibility: public export
clockThresholdD : FromStringe=> (a->MesString) ->Integer->Mesa->Mesa
Visibility: public export
clockThreshold : FromStringe=>String->Integer->Mesa->Mesa
  Clocks the given computation, prints out (eagerly) the time it took to run the computation.

Visibility: public export
write : String->Mes ()
  Currently, write is just an alias to print_ on *Debug* channel.
So all output of write is eagerly shown in console.

Visibility: public export
time : FromStringe=>Mesa->Mes (a, ClockDuration)
  Computes the workload time (process time - GC time)

Visibility: public export