packages feed

bluefin-0.10.1.0: src/Bluefin/Capability/ThrowCatch.hs

-- | You probably don't want to use this module, rather you'll want
-- "Bluefin.Capability.Throw" for most exception use
-- cases. @ThrowCatch@ exists mainly to support @MonadError@
-- instances.
module Bluefin.Capability.ThrowCatch
  ( -- * Capability
    ThrowCatch,

    -- * Handlers
    try,
    handle,
    catch,

    -- * Effectful operations
    throw,

    -- * Local handling
    localTry,
    localCatch,
    localHandle,
  )
where

import Bluefin.Internal.Capability.ThrowCatch
  ( ThrowCatch,
    handle,
    catch,
    localCatch,
    localHandle,
    localTry,
    throw,
    try,
  )