Reorganoze examples in test/

This commit is contained in:
Joscha 2018-02-16 13:07:13 +00:00
parent 3733b2217c
commit 09944406ef
3 changed files with 1 additions and 1 deletions

11
test/connection_simple.hs Normal file
View file

@ -0,0 +1,11 @@
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"