chatty-0.6.4.1: Some monad transformers and typeclasses for abstraction of global dependencies.

Safe HaskellSafe
LanguageHaskell2010

System.Chatty.Spawn.Overlay

Description

Provides a MonadSpawn overlay that may catch specific spawn calls and handle them itself.

Synopsis

Documentation

newtype SpawnOverlayT m a Source

MonadSpawn overlay. Carries a map of own command implementations that are called instead of the actual ones.

Constructors

SpawnOverlay 

Fields

runSpawnOverlayT :: [(String, [String] -> String -> m (Int, String))] -> m (a, [(String, [String] -> String -> m (Int, String))])