Monad m => String -> m a

fail :: Monad m => String -> m a
base Prelude, base Control.Monad, base Control.Monad.Instances
parseContentType :: Monad m => String -> m ContentType
cgi Network.CGI
Parse the standard representation of a content-type. If the input cannot be parsed, this function calls fail with a (hopefully) informative error message.
throwErrno :: String -> IO a
base Foreign.C.Error
Throw an IOError corresponding to the current value of getErrno.
badIO :: String -> IO a
template-haskell Language.Haskell.TH.Syntax
throwSocketError :: String -> IO a
network Network.Socket.Internal
Throw an IOError corresponding to the current socket error.
error :: [Char] -> a
base Prelude
error stops execution and displays an error message.
return :: Monad m => a -> m a
base Prelude, base Control.Monad, base Control.Monad.Instances
foldM :: Monad m => (a -> b -> m a) -> a -> [b] -> m a
base Control.Monad
The foldM function is analogous to foldl, except that its result is encapsulated in a monad. Note that foldM works from left-to-right over the list arguments. This could be an issue commutative. > foldM f a1 [x1, x2, ..., xm] == > do > a2 <- f a1 x1 > a3 <- f a2 x2 > ... > f am xm If right-to-left evaluation is required, the input list should be reversed.
ReqArg :: (String -> a) -> String -> ArgDescr a
base System.Console.GetOpt
option requires argument
OptArg :: (Maybe String -> a) -> String -> ArgDescr a
base System.Console.GetOpt
optional argument
throwSocketErrorCode :: String -> CInt -> IO a
network Network.Socket.Internal
Like throwSocketError, but the error code is supplied as an argument. On Windows, do not use errno. Use a system error code instead.
withProgName :: String -> IO a -> IO a
base System.Environment
withProgName name act - while executing action act, have getProgName return name.
ParseFailed :: SrcLoc -> String -> ParseResult a
haskell-src Language.Haskell.ParseMonad, haskell-src Language.Haskell.Parser
The parse failed at the specified source location, with an error message.
runParser :: P a -> String -> ParseResult a
haskell-src Language.Haskell.ParseMonad
setRequestVersion :: String -> Request a -> Request a
HTTP Network.HTTP.Base
setRequestVersion v req returns a new request, identical to req, but with its HTTP version set to v.
setResponseVersion :: String -> Response a -> Response a
HTTP Network.HTTP.Base
setResponseVersion v rsp returns a new response, identical to rsp, but with its HTTP version set to v.
trace :: String -> a -> a
base Debug.Trace
When called, trace outputs the string in its first argument, before returning the second argument as its result. The trace function is not referentially transparent, and should only be used for debugging, or for monitoring execution. Some implementations of trace may decorate the string that's output to indicate that you're tracing. The function is implemented on top of putTraceMsg.
buf_fromStr :: BufferOp a -> String -> a
HTTP Network.BufferType
mapM_ :: Monad m => (a -> m b) -> [a] -> m ()
base Prelude, base Control.Monad
mapM_ f is equivalent to sequence_ . map f.
forM_ :: Monad m => [a] -> (a -> m b) -> m ()
base Control.Monad
forM_ is mapM_ with its arguments flipped

Show more results