| Copyright | (C) 2021 Isaac Elliott |
|---|---|
| License | BSD-3 (see the file LICENSE) |
| Maintainer | Isaac Elliott <isaace71295@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Control.Monad.Trans.HandleWriter
Description
Synopsis
- newtype HandleWriterT w m a = HandleWriterT {
- unHandleWriterT :: ReaderT (Env w) m a
- runHandleWriterT :: Handle -> (Handle -> w -> IO ()) -> HandleWriterT w m a -> m a
- data Env w = Env !Handle !(Handle -> w -> IO ())
Documentation
newtype HandleWriterT w m a Source #
A monad that can write a monoidal summary to a Handle.
Constructors
| HandleWriterT | |
Fields
| |
Instances
Arguments
| :: Handle | Target file handle |
| -> (Handle -> w -> IO ()) | The function that will write to the file handle |
| -> HandleWriterT w m a | |
| -> m a |