Skip to content

Instantly share code, notes, and snippets.

@orblivion
Forked from tsloughter/gist:11161451
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orblivion/11161808 to your computer and use it in GitHub Desktop.
Save orblivion/11161808 to your computer and use it in GitHub Desktop.
subscribeSink_ fun =
awaitForever $ (\x ->
case decode (L.fromStrict x) of
Just (SubscribeResponse (resp, _)) -> do
_ <- liftIO $ mapM (onMsg subOpts . fun) resp
return ()
Nothing ->
return ())
subscribeSink = subscribeSink_ id
encryptedSubscribeSink c i = subscribeSink_ $ decodeEncrypted c i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment