@hackage / unlift-stm

(un)lifted classes and functions for the STM monad

Latest0.1.0.0

About

Metadata

  • Last updated , by hololeap
  • License BSD-2-Clause
  • Categories Concurrency
  • Maintained by: hololeap@users.noreply.github.com

  • Lottery factor: 0

Links

Installation

Readme

unlift-stm

(un)lifted classes and functions for the STM monad

Lifted and unlifted classes and functions for the STM monad. To get started, just:

import Control.Concurrent.STM.Unlift

This is meant to be a drop-in replacement for Control.Concurrent.STM.

This package provides functionality for the STM monad, which is highly analagous to the functionalty for the IO monad found in Control.Monad.IO.Class, Control.Monad.IO.Unlift, and UnliftIO.STM:

  • MonadSTM is a copy of MonadIO modified for STM
  • MonadUnliftSTM is a copy of MonadUnliftIO modified for STM
  • Some functions found in Control.Concurrent.STM.Unlift are re-exported directly from UnliftIO.STM