handle

handle :: (Exception -> IO a) -> IO a -> IO a
base Control.OldException
A version of catch with the arguments swapped around; useful in situations > do handle (\e -> exitWith (ExitFailure 1)) $ > ...
handle :: Exception e => (e -> IO a) -> IO a -> IO a
base Control.Exception.Base, base Control.Exception
A version of catch with the arguments swapped around; useful in situations > do handle (\NonTermination -> exitWith (ExitFailure 1)) $ > ...
handle :: Handle -> String -> IO ()
QuickCheck Test.QuickCheck.Text
handleJust :: (Exception -> Maybe b) -> (b -> IO a) -> IO a -> IO a
base Control.OldException
A version of catchJust with the arguments swapped around (see handle).
handleJust :: Exception e => (e -> Maybe b) -> (b -> IO a) -> IO a -> IO a
base Control.Exception.Base, base Control.Exception
A version of catchJust with the arguments swapped around (see handle).
handleErrors :: (MonadCGI m, MonadCatchIO m) => m CGIResult -> m CGIResult
cgi Network.CGI
Catches any exception thrown by the given CGI action, returns an error page with a 500 Internal Server Error, showing the exception information, and logs the error. Typical usage: > cgiMain :: CGI CGIResult > cgiMain = ... > > main :: IO () > main = runCGI (handleErrors cgiMain)
handleExceptionCGI :: (MonadCGI m, MonadCatchIO m) => m a -> (SomeException -> m a) -> m a
cgi Network.CGI.Monad, cgi Network.CGI
Deprecated: Use catchCGI instead.
handleSocketError :: Socket -> IOException -> IO (Result a)
HTTP Network.StreamSocket
Exception handler for socket operations.
handleToFd :: Handle -> IO Fd
unix System.Posix.IO.ByteString, unix System.Posix.IO
Extracts the Fd from a Handle. This function has the side effect of closing the Handle and flushing its write buffer, if necessary.
data Handle
base System.IO, base GHC.IO.Handle
Haskell defines operations to read and write characters from and to files, represented by values of type Handle. Each value of this type is a handle: a record used by the Haskell run-time system to manage I/O with file system objects. A handle has at least the following properties: * whether it manages input or output or both; * whether it is open, closed or semi-closed; * whether the object is seekable; * whether buffering is disabled, or enabled on a line or block basis; * a buffer (whose length may be zero). Most handles will also have a current I/O position indicating the next input or output operation will occur. A handle is readable if it manages only input or both input and output; likewise, it is writable if it manages only output or both input and output. A handle is open when first allocated. Once it is closed it can no longer be used for either input or output, though an implementation cannot re-use its storage while references remain to it. Handles are in the Show and Eq classes. The string produced by showing a handle is system dependent; it should include enough information to identify the handle for debugging. A handle is equal according to == only to itself; no attempt is made to compare the internal state of different handles for equality.
module GHC.IO.Handle
base GHC.IO.Handle
External API for GHC's Handle implementation
data HandlePosn
base System.IO, base GHC.IO.Handle
Handler :: (e -> IO a) -> Handler a
base Control.Exception
data Handler a
base Control.Exception
You need this when using catches.
type HandlePosition = Integer
base GHC.IO.Handle
HandlePosn :: Handle -> HandlePosition -> HandlePosn
base GHC.IO.Handle
data Handler
unix System.Posix.Signals
The actions to perform when a signal is received.
type HandlerFun = ForeignPtr Word8 -> IO ()
base GHC.Conc.Signal, base GHC.Conc
package HandlerSocketClient
package
This package implemets API for a HandlerSocket client. Version 0.0.5
data HandleStream a
HTTP Network.TCP
module Network.HTTP.HandleStream
HTTP Network.HTTP.HandleStream
A HandleStream-based version of Network.HTTP interface. For more detailed information about what the individual exports do, please consult the documentation for Network.HTTP. Notice however that the functions here do not perform any kind of normalization prior to transmission (or receipt); you are responsible for doing any such yourself, or, if you prefer, just switch to using Network.HTTP function instead.
getUncaughtExceptionHandler :: IO (Exception -> IO ())
base Control.OldException
ioeGetHandle :: IOError -> Maybe Handle
base System.IO.Error
ioeSetHandle :: IOError -> Handle -> IOError
base System.IO.Error
setUncaughtExceptionHandler :: (Exception -> IO ()) -> IO ()
base Control.OldException
package bytestring-handle
package
childHandler :: SomeException -> IO ()
base GHC.Conc.Sync, base GHC.Conc
ConvertedToHandle :: SocketStatus
network Network.Socket
DLHandle :: (Ptr ()) -> DL
unix System.Posix.DynamicLinker.Prim
package event-handlers
package
Simple event handler set management. Version 0.0.0.3
fdToHandle :: FD -> IO Handle
base GHC.IO.Handle.FD
Turn an existing file descriptor into a Handle. This is used by various external libraries to make Handles. Makes a binary Handle. This is for historical reasons; it should probably be a text Handle with the default encoding and newline translation instead.
fdToHandle :: Fd -> IO Handle
unix System.Posix.IO.ByteString, unix System.Posix.IO
Converts an Fd into a Handle that can be used with the standard Haskell IO library (see System.IO). GHC only: this function has the side effect of putting the Fd into non-blocking mode (O_NONBLOCK) due to the way the standard IO library implements multithreaded I/O.
fdToHandle' :: CInt -> Maybe IODeviceType -> Bool -> FilePath -> IOMode -> Bool -> IO Handle
base GHC.IO.Handle.FD
Old API kept to avoid breaking clients
getUncaughtExceptionHandler :: IO (SomeException -> IO ())
base GHC.Conc.Sync, base GHC.Conc
module GHC.ConsoleHandler
base GHC.ConsoleHandler
NB. the contents of this module are only available on Windows. Installing Win32 console handlers.
package hack-handler-cgi
package
package hack-handler-epoll
package
Hack handler implemented using System.Linux.Epoll Version 0.1.3
package hack-handler-evhttp
package
Hack EvHTTP (libevent) Handler Version 2009.8.4
package hack-handler-fastcgi
package
package hack-handler-happstack
package
Hack Happstack server handler Version 2009.12.20

Show more results