Created
November 15, 2019 17:05
-
-
Save goolord/d0ed3b6805897cc0a3b9d1c0e166b085 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app :: Connection -> IO (Event t a) | |
app conn = do | |
(event, triggerEvent) <- newTriggerEvent | |
forever $ do | |
msg <- receiveData conn | |
let m = parseSocketData msg | |
triggerEvent m | |
pure event |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment