unliftio-messagebox-1.0.2: Fast and robust message queues for concurrent processes
Safe HaskellNone
LanguageHaskell2010

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

Documentation

newtype CatchAllFactory cfg Source #

A wrapper around values that are instances of IsMessageBoxFactory. The factory wraps the result of the delegated newMessageBox invocation into a CatchAllBox.

Constructors

CatchAllFactory cfg 

Instances

Instances details
Eq cfg => Eq (CatchAllFactory cfg) Source # 
Instance details

Defined in UnliftIO.MessageBox.CatchAll

Ord cfg => Ord (CatchAllFactory cfg) Source # 
Instance details

Defined in UnliftIO.MessageBox.CatchAll

Show cfg => Show (CatchAllFactory cfg) Source # 
Instance details

Defined in UnliftIO.MessageBox.CatchAll

IsMessageBoxFactory cfg => IsMessageBoxFactory (CatchAllFactory cfg) Source # 
Instance details

Defined in UnliftIO.MessageBox.CatchAll

Associated Types

type MessageBox (CatchAllFactory cfg) :: Type -> Type Source #

type MessageBox (CatchAllFactory cfg) Source # 
Instance details

Defined in UnliftIO.MessageBox.CatchAll

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

Instances details
IsMessageBox box => IsMessageBox (CatchAllBox box) Source # 
Instance details

Defined in UnliftIO.MessageBox.CatchAll

Associated Types

type Input (CatchAllBox box) :: Type -> Type Source #

type Input (CatchAllBox box) Source # 
Instance details

Defined in UnliftIO.MessageBox.CatchAll

newtype CatchAllInput i a Source #

A wrapper around values that are instances of IsInput.

Constructors

CatchAllInput (i a) 

Instances

Instances details
IsInput i => IsInput (CatchAllInput i) Source # 
Instance details

Defined in UnliftIO.MessageBox.CatchAll

Methods

deliver :: MonadUnliftIO m => CatchAllInput i a -> a -> m Bool Source #