Add EventType type

Also improve documentation
This commit is contained in:
Joscha 2018-02-09 18:03:06 +00:00
parent 9d25ad5fba
commit e427e8df90
2 changed files with 63 additions and 24 deletions

View file

@ -7,5 +7,5 @@ main = do
printEvents con = do
event <- E.getEvent con
case event of
Just e -> print e >> putStrLn "" >> printEvents con
Nothing -> putStrLn "[] end of events"
E.EuphEvent e -> print e >> putStrLn "" >> printEvents con
_ -> putStrLn "[] end of events"