Idris2Doc : FS.Resource

FS.Resource

(source)

Reexports

importpublic Control.Monad.MCancel
importpublic Control.Monad.Resource
importpublic FS.Pull

Definitions

bracketWeak : fesx-> (x->f [] ()) -> (x->Pullfoesr) ->Pullfoesr
  Like `bracket`, but acquires the resource in the current scope.

Totality: total
Visibility: export
bracket : fesx-> (x->f [] ()) -> (x->Pullfoesr) ->Pullfoesr
  Acquires a resource used for running a stream
making sure it is properly cleaned up once the stream terminates.

Totality: total
Visibility: export
finallyWeak : Applicative (fes) =>f [] () ->Pullfoesr->Pullfoesr
  Makes sure the given cleanup action is run once the stream
terminates.

Like `finally` but does not create a new inner scope.

Totality: total
Visibility: export
finally : Applicative (fes) =>f [] () ->Pullfoesr->Pullfoesr
  Makes sure the given cleanup action is run once the stream
terminates.

Totality: total
Visibility: export
resourceWeak : Resourcefx=>fesx-> (x->Pullfoesr) ->Pullfoesr
  Like `resource`, but acquires the resource in the current scope.

Totality: total
Visibility: export
resource : Resourcefx=>fesx-> (x->Pullfoesr) ->Pullfoesr
  Acquires a resource in a new scope, closing it once the scope is
cleaned up.

Totality: total
Visibility: export
resourcesWeak : All (Resourcef) rs=>All (fes) rs-> (HListrs->Pullfoesr) ->Pullfoesr
Totality: total
Visibility: export
resources : All (Resourcef) rs=>All (fes) rs-> (HListrs->Pullfoesr) ->Pullfoesr
Totality: total
Visibility: export