diff options
| author | Joey Hess <joeyh@joeyh.name> | 2015-11-01 16:53:25 -0400 |
|---|---|---|
| committer | Joey Hess <joeyh@joeyh.name> | 2015-11-01 16:53:25 -0400 |
| commit | 592c65d02bf07d053d2fbe8a568f88d1b28e1a65 (patch) | |
| tree | 49a3c1a7aa976043d72ee396681fe11ddd3e0194 /src/System/Console/Concurrent.hs | |
| parent | 4d63a9f0ad327cba305e239e51d02e5e33213eda (diff) | |
merge from concurrent-output
Diffstat (limited to 'src/System/Console/Concurrent.hs')
| -rw-r--r-- | src/System/Console/Concurrent.hs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/System/Console/Concurrent.hs b/src/System/Console/Concurrent.hs new file mode 100644 index 00000000..efbfaa15 --- /dev/null +++ b/src/System/Console/Concurrent.hs @@ -0,0 +1,39 @@ +-- | +-- Copyright: 2015 Joey Hess <id@joeyh.name> +-- License: BSD-2-clause +-- +-- Concurrent output handling. +-- +-- > import Control.Concurrent.Async +-- > import System.Console.Concurrent +-- > +-- > main = withConcurrentOutput $ +-- > outputConcurrent "washed the car\n" +-- > `concurrently` +-- > outputConcurrent "walked the dog\n" +-- > `concurrently` +-- > createProcessConcurrent (proc "ls" []) + +module System.Console.Concurrent ( + -- * Concurrent output + withConcurrentOutput, + Outputable(..), + outputConcurrent, + ConcurrentProcessHandle, + createProcessConcurrent, + waitForProcessConcurrent, + createProcessForeground, + flushConcurrentOutput, + lockOutput, + -- * Low level access to the output buffer + OutputBuffer, + StdHandle(..), + bufferOutputSTM, + outputBufferWaiterSTM, + waitAnyBuffer, + waitCompleteLines, + emitOutputBuffer, +) where + +import System.Console.Concurrent.Internal + |
