euph-api/test/euphtest.hs
Joscha 9d25ad5fba Add test script for connecting to euphoria
I know this is not how tests are meant to work, but hey :)
2018-02-08 20:47:08 +00:00

11 lines
313 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
Just e -> print e >> putStrLn "" >> printEvents con
Nothing -> putStrLn "[] end of events"