Add EventType type
Also improve documentation
This commit is contained in:
parent
9d25ad5fba
commit
e427e8df90
2 changed files with 63 additions and 24 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue