acquire-0.2: Abstraction over management of resources
Acquire.Acquire
Synopsis
newtype Acquire resource Source #
Implementation of http://www.haskellforall.com/2013/06/the-resource-applicative.html
Constructors
Instances
Methods
(>>=) :: Acquire a -> (a -> Acquire b) -> Acquire b #
(>>) :: Acquire a -> Acquire b -> Acquire b #
return :: a -> Acquire a #
fail :: String -> Acquire a #
fmap :: (a -> b) -> Acquire a -> Acquire b #
(<$) :: a -> Acquire b -> Acquire a #
pure :: a -> Acquire a #
(<*>) :: Acquire (a -> b) -> Acquire a -> Acquire b #
liftA2 :: (a -> b -> c) -> Acquire a -> Acquire b -> Acquire c #
(*>) :: Acquire a -> Acquire b -> Acquire b #
(<*) :: Acquire a -> Acquire b -> Acquire a #
liftIO :: IO a -> Acquire a #