summaryrefslogtreecommitdiffstats
path: root/test5.hs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-12-30 14:51:13 +0100
committertv <tv@shackspace.de>2014-12-30 14:51:13 +0100
commit7dc742185ada3808946122225a21b1e0ebff2adf (patch)
treeb7afe166db9507e3bd96246507754c8c3f4d7b9a /test5.hs
parent424f1589137f994cbf8041f8d11d3aaaed5605a1 (diff)
rewrite Scanner to use Event
Diffstat (limited to 'test5.hs')
-rw-r--r--test5.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test5.hs b/test5.hs
index fa3f4bb..5448470 100644
--- a/test5.hs
+++ b/test5.hs
@@ -20,7 +20,7 @@ import Data.Maybe
import Data.Monoid
import Data.Time
import Event
-import Scanner (getKey)
+import Scanner (scan)
import System.Directory
import System.Environment
import System.Exit
@@ -111,7 +111,7 @@ startup = do
]
threadIds <- mapM forkIO
- [ forever $ getKey >>= putEvent . EKey
+ [ forever $ scan stdin >>= putEvent
, run getEvent q0
]