chatty-0.3.1.4: Some monad transformers and typeclasses to simplify I/O on a transformer stack.

Safe HaskellSafe-Inferred

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))])