| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Polysemy.Resource
Contents
Effect
data Resource m a where Source #
An effect capable of providing bracket semantics. Interpreters for this
will successfully run the deallocation action even in the presence of other
short-circuiting effects.
Constructors
| Bracket | |
Fields
| |
Instances
| type DefiningModule Resource Source # | |
Defined in Polysemy.Resource | |
Actions
bracket :: forall a b. forall r. Member Resource r => Sem r a -> (a -> Sem r ()) -> (a -> Sem r b) -> Sem r b Source #