| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
UnliftIO.MessageBox.CatchAll
Description
Utilities for exception safe message boxes.
This provides a wrapper around UnliftIO.MessageBox.Class instances
to catch SomeException in all methods like deliver and receive.
Synopsis
- newtype CatchAllArg cfg = CatchAllArg cfg
- newtype CatchAllBox box a = CatchAllBox (box a)
- newtype CatchAllInput i a = CatchAllInput (i a)
Documentation
newtype CatchAllArg cfg Source #
A wrapper around values that are instances
of IsMessageBoxArg. The factory wraps
the result of the delegated newMessageBox
invocation into a CatchAllBox.
Constructors
| CatchAllArg cfg |
Instances
newtype CatchAllBox box a Source #
A wrapper around values that are instances
of IsMessageBox.
The Input type will be wrapped using
CatchAllInput.
Constructors
| CatchAllBox (box a) |
Instances
| IsMessageBox box => IsMessageBox (CatchAllBox box) Source # | |
Defined in UnliftIO.MessageBox.CatchAll Methods receive :: MonadUnliftIO m => CatchAllBox box a -> m (Maybe a) Source # tryReceive :: MonadUnliftIO m => CatchAllBox box a -> m (Future a) Source # receiveAfter :: MonadUnliftIO m => CatchAllBox box a -> Int -> m (Maybe a) Source # newInput :: MonadUnliftIO m => CatchAllBox box a -> m (Input (CatchAllBox box) a) Source # | |
| type Input (CatchAllBox box) Source # | |
Defined in UnliftIO.MessageBox.CatchAll | |
newtype CatchAllInput i a Source #
A wrapper around values that are instances
of IsInput.
Constructors
| CatchAllInput (i a) |
Instances
| IsInput i => IsInput (CatchAllInput i) Source # | |
Defined in UnliftIO.MessageBox.CatchAll Methods deliver :: MonadUnliftIO m => CatchAllInput i a -> a -> m Bool Source # deliver_ :: MonadUnliftIO m => CatchAllInput i a -> a -> m () Source # | |