httpspec-0.1: Specification of HTTP request/response generators and parsers

Data.HttpSpec.MiscHelper

Documentation

errorToMaybe :: MonadError e m => m a -> m (Maybe a)Source

errorToDefault :: MonadError e m => a -> m a -> m aSource

maybeToM :: Monad m => String -> Maybe a -> m aSource

eitherToM :: (Show a, Monad m) => Either a b -> m bSource