| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Polysemy.Resource
Contents
Effect
data Resource m a where Source #
An effect capable of providing bracket semantic. 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 => Semantic r a -> (a -> Semantic r ()) -> (a -> Semantic r b) -> Semantic r b Source #