diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-10-28 21:34:09 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-10-28 21:38:43 -0400 |
| commit | ceee9305dce89a9529b316db6d6a5eabe1ad8adb (patch) | |
| tree | d6292c45ec784878881a5de56ec91bdda4fc468b /src/Utility/ConcurrentOutput.hs | |
| parent | 60e4e2bc400b811376442a3886bf3ede63190b18 (diff) | |
example
Diffstat (limited to 'src/Utility/ConcurrentOutput.hs')
| -rw-r--r-- | src/Utility/ConcurrentOutput.hs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Utility/ConcurrentOutput.hs b/src/Utility/ConcurrentOutput.hs index 20c60ba8..94cd4202 100644 --- a/src/Utility/ConcurrentOutput.hs +++ b/src/Utility/ConcurrentOutput.hs @@ -1,7 +1,21 @@ {-# LANGUAGE BangPatterns #-} {-# OPTIONS_GHC -fno-warn-tabs #-} --- | Concurrent output handling. +-- | +-- Copyright: 2013 Joey Hess <id@joeyh.name> +-- License: BSD-2-clause +-- +-- Concurrent output handling. +-- +-- > import Control.Concurrent.Async +-- > import Control.Concurrent.Output +-- > +-- > main = withConcurrentOutput $ +-- > outputConcurrent "washed the car\n" +-- > `concurrently` +-- > outputConcurrent "walked the dog\n" +-- > `concurrently` +-- > createProcessConcurrent (proc "ls" []) module Utility.ConcurrentOutput ( withConcurrentOutput, |
