rest-core-0.39: Rest API library.

Safe HaskellNone
LanguageHaskell98

Rest.Driver.RestM

Documentation

data RestM m a Source #

Instances

MonadTrans RestM Source # 

Methods

lift :: Monad m => m a -> RestM m a #

Monad m => Monad (RestM m) Source # 

Methods

(>>=) :: RestM m a -> (a -> RestM m b) -> RestM m b #

(>>) :: RestM m a -> RestM m b -> RestM m b #

return :: a -> RestM m a #

fail :: String -> RestM m a #

Functor m => Functor (RestM m) Source # 

Methods

fmap :: (a -> b) -> RestM m a -> RestM m b #

(<$) :: a -> RestM m b -> RestM m a #

Applicative m => Applicative (RestM m) Source # 

Methods

pure :: a -> RestM m a #

(<*>) :: RestM m (a -> b) -> RestM m a -> RestM m b #

(*>) :: RestM m a -> RestM m b -> RestM m b #

(<*) :: RestM m a -> RestM m b -> RestM m a #

(Functor m, Applicative m, Monad m) => Rest (RestM m) Source # 

runRestM_ :: Functor m => RestInput -> RestM m a -> m a Source #