Skip to content

Commit

Permalink
add monitoring function in main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
kfish committed Nov 14, 2011
1 parent 2e1a659 commit 796f19e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.hs
Expand Up @@ -8,3 +8,9 @@ import GUI
main = later waitForChildren $ do
chan <- newChan
forkChild (guiMain chan)
monitor chan

monitor chan = do
x <- readChan chan
putStrLn $ "Received message: " ++ x
monitor chan

0 comments on commit 796f19e

Please sign in to comment.