From ceee9305dce89a9529b316db6d6a5eabe1ad8adb Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 28 Oct 2015 21:34:09 -0400 Subject: example --- src/Utility/ConcurrentOutput.hs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src') 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 +-- 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, -- cgit v1.2.3