euph-api/test/euphtest.hs
Joscha e427e8df90 Add EventType type
Also improve documentation
2018-02-09 18:03:06 +00:00

11 lines
325 B
Haskell

import qualified EuphApi.Connection as E
main = do
con <- E.startEuphConnection "euphoria.io" "test"
printEvents con
where
printEvents con = do
event <- E.getEvent con
case event of
E.EuphEvent e -> print e >> putStrLn "" >> printEvents con
_ -> putStrLn "[] end of events"