block

block :: IO a -> IO a
base Control.Exception.Base, base Control.Exception, base Control.OldException
Note: this function is deprecated, please use mask instead. Applying block to a computation will execute that computation with asynchronous exceptions blocked. That is, any thread which attempts to raise an exception in the current thread with Control.Exception.throwTo will be blocked until asynchronous exceptions are unblocked again. There's no need to worry about re-enabling asynchronous exceptions; that is done automatically on exiting the scope of block. Threads created by Control.Concurrent.forkIO inherit the blocked state from the parent; that is, to start a thread in blocked mode, use block $ forkIO .... This is particularly useful if you need to establish an exception handler in the forked thread before any asynchronous exceptions are received.
blocked :: IO Bool
base Control.Exception.Base, base Control.Exception
returns True if asynchronous exceptions are blocked in the current thread.
package blocking-transactions
package
A variable type (BVar), monad (BTM), and arrow (BTA), which provide fast, atomic, composable, blocking inter-thread communication. Blocking transactions are strictly less expressive than software transactional memory, but may be more efficient under very high contention. Version 0.1.0.5
blockquote :: Html -> Html
html Text.Html, xhtml Text.XHtml.Strict, xhtml Text.XHtml.Frameset, xhtml Text.XHtml.Transitional
blockSignals :: SignalSet -> IO ()
unix System.Posix.Signals
blockSignals mask calls sigprocmask with SIG_BLOCK to add all interrupts in mask to the set of blocked interrupts.
blockSpecialMode :: FileMode
unix System.Posix.Files.ByteString, unix System.Posix.Files
BlockBuffering :: (Maybe Int) -> BufferMode
base System.IO, base GHC.IO.Handle
block-buffering should be enabled if possible. The size of the buffer is n items if the argument is Just n and is otherwise implementation-dependent.
BlockedIndefinitely :: Exception
base Control.OldException
The current thread was waiting to retry an atomic memory transaction that could never become possible to complete because there are no other threads referring to any of the TVars involved.
BlockedIndefinitelyOnMVar :: BlockedIndefinitelyOnMVar
base Control.Exception.Base, base Control.Exception
data BlockedIndefinitelyOnMVar
base Control.Exception.Base, base Control.Exception
The thread is blocked on an MVar, but there are no other references to the MVar so it can't ever continue.
BlockedIndefinitelyOnSTM :: BlockedIndefinitelyOnSTM
base Control.Exception.Base, base Control.Exception
data BlockedIndefinitelyOnSTM
base Control.Exception.Base, base Control.Exception
The thread is waiting to retry an STM transaction, but there are no other references to any TVars involved, so it can't ever continue.
BlockedOnDeadMVar :: Exception
base Control.OldException
The current thread was executing a call to Control.Concurrent.MVar.takeMVar that could never return, because there are no other references to this MVar.
bLOCK_SIZE :: Int
base GHC.Constants
bLOCK_SIZE_W :: Int
base GHC.Constants
BlockedOnBlackHole :: BlockReason
base GHC.Conc.Sync, base GHC.Conc
blocked on a computation in progress by another thread
BlockedOnException :: BlockReason
base GHC.Conc.Sync, base GHC.Conc
blocked in throwTo
BlockedOnForeignCall :: BlockReason
base GHC.Conc.Sync, base GHC.Conc
currently in a foreign call
BlockedOnMVar :: BlockReason
base GHC.Conc.Sync, base GHC.Conc
blocked on on MVar
BlockedOnOther :: BlockReason
base GHC.Conc.Sync, base GHC.Conc
blocked on some other resource. Without -threaded, I/O and threadDelay show up as BlockedOnOther, with -threaded they show up as BlockedOnMVar.
BlockedOnSTM :: BlockReason
base GHC.Conc.Sync, base GHC.Conc
blocked in retry in an STM transaction
data BlockReason
base GHC.Conc.Sync, base GHC.Conc
bLOCKS_PER_MBLOCK :: Int
base GHC.Constants
data BlockTable a
html Text.Html.BlockTable
module Text.Html.BlockTable
html Text.Html.BlockTable
An Html combinator library
eWOULDBLOCK :: Errno
base Foreign.C.Error
hGetBufNonBlocking :: Handle -> Ptr a -> Int -> IO Int
base System.IO, base GHC.IO.Handle
hGetBufNonBlocking hdl buf count reads data from the handle hdl into the buffer buf until either EOF is reached, or count 8-bit bytes have been read, or there is no more data available to read immediately. hGetBufNonBlocking is identical to hGetBuf, except that it will never block waiting for data to become available, instead it returns only whatever data is available. To wait for data to arrive before calling hGetBufNonBlocking, use hWaitForInput. If the handle is a pipe or socket, and the writing end is closed, hGetBufNonBlocking will behave as if EOF was reached. hGetBufNonBlocking ignores the prevailing TextEncoding and NewlineMode on the Handle, and reads bytes directly. NOTE: on Windows, this function does not work correctly; it behaves identically to hGetBuf.
hPutBufNonBlocking :: Handle -> Ptr a -> Int -> IO Int
base System.IO, base GHC.IO.Handle
throwErrnoIfMinus1RetryMayBlock :: Num a => String -> IO a -> IO b -> IO a
base Foreign.C.Error
as throwErrnoIfMinus1Retry, but checks for operations that would block.
throwErrnoIfMinus1RetryMayBlock_ :: Num a => String -> IO a -> IO b -> IO ()
base Foreign.C.Error
as throwErrnoIfMinus1RetryMayBlock, but discards the result.
throwErrnoIfNullRetryMayBlock :: String -> IO (Ptr a) -> IO b -> IO (Ptr a)
base Foreign.C.Error
as throwErrnoIfNullRetry, but checks for operations that would block.
throwErrnoIfRetryMayBlock :: (a -> Bool) -> String -> IO a -> IO b -> IO a
base Foreign.C.Error
as throwErrnoIfRetry, but additionally if the operation yields the error code eAGAIN or eWOULDBLOCK, an alternative action is executed before retrying.
throwErrnoIfRetryMayBlock_ :: (a -> Bool) -> String -> IO a -> IO b -> IO ()
base Foreign.C.Error
as throwErrnoIfRetryMayBlock, but discards the result.
unblock :: IO a -> IO a
base Control.Exception.Base, base Control.Exception, base Control.OldException
Note: this function is deprecated, please use mask instead. To re-enable asynchronous exceptions inside the scope of block, unblock can be used. It scopes in exactly the same way, so on exit from unblock asynchronous exception delivery will be disabled again.
package 4Blocks
package
A tetris-like game implemented in Haskell and making use of Gtkh2s (works with GHC 6.8.3 and Gtk2hs 0.9.13) Version 0.2
package fallingblocks
package
A game where blocks of different shapes fall down the screen. If you either fill an entire line or get four of the same color in a row, those disappear.  How long can you go before the blocks fill the screen? Version 0.1.4
hGetNonBlocking :: Handle -> Int -> IO ByteString
bytestring Data.ByteString, bytestring Data.ByteString.Char8, bytestring Data.ByteString.Lazy, bytestring Data.ByteString.Lazy.Char8
hGetNonBlocking is similar to hGet, except that it will never block waiting for data to become available, instead it returns only whatever data is available. If there is no data available to be read, hGetNonBlocking returns empty. Note: on Windows and with Haskell implementation other than GHC, this function does not work correctly; it behaves identically to hGet.
hook_readBlock :: StreamHooks ty -> (ty -> String) -> Int -> Result ty -> IO ()
HTTP Network.TCP
hook_writeBlock :: StreamHooks ty -> (ty -> String) -> ty -> Result () -> IO ()
HTTP Network.TCP
hPutNonBlocking :: Handle -> ByteString -> IO ByteString
bytestring Data.ByteString, bytestring Data.ByteString.Char8, bytestring Data.ByteString.Lazy, bytestring Data.ByteString.Lazy.Char8
Similar to hPut except that it will never block. Instead it returns any tail that did not get written. This tail may be empty in the case that the whole string was written, or the whole original string if nothing was written. Partial writes are also possible. Note: on Windows and with Haskell implementation other than GHC, this function does not work correctly; it behaves identically to hPut.

Show more results