Idris2Doc : Control.Monad.Resource

Control.Monad.Resource

(source)

Definitions

interfaceResource : (ListType->Type->Type) ->Type->Type
Parameters: f, a
Methods:
cleanup : a->f [] ()
cleanup : Resourcefa=>a->f [] ()
Totality: total
Visibility: public export
use1 : MCancelf=>Resourcefa=>fesa-> (a->fesb) ->fesb
  Allocate a resource, use it in a program, and make sure to release it
afterwards.

Totality: total
Visibility: export
use : All (Resourcef) ts=>MCancelf=>All (fes) ts-> (HListts->fesb) ->fesb
  Like `use1` but for a heterogeneous list of resources.

Totality: total
Visibility: export