This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env runhaskell | |
-- Example of tailing a file, using two communicating Haskell threads. It's not | |
-- really necessary to do this concurrently, but the approach here generalizes | |
-- nicely if we want to filter or transform the output. | |
import Control.Concurrent | |
import Control.Monad | |
import System.Environment | |
import System.Exit |
NewerOlder