socket.io-haskell icon indicating copy to clipboard operation
socket.io-haskell copied to clipboard

The example code doesn't work.

Open viclib opened this issue 11 years ago • 2 comments

Press ENTER or type command to continue [1 of 1] Compiling Main ( socketio.hs, socketio.o )

socketio.hs:13:24: Not in scope: ‘liftIO’

socketio.hs:13:31: Not in scope: ‘launchMissile’

shell returned 1

Press ENTER or type command to continue /bin/bash: ./socketio: No such file or directory

viclib avatar Aug 28 '14 19:08 viclib

liftIO can be found in Control.Monad.Trans. The launchMissiles function is just some arbitrary IO-action. The example is probably only meant to provide a basic idea of how to use the package, unless you have access to a missile facility.

davnils avatar Aug 28 '14 21:08 davnils

Yes, thank you @davnils.

And @viclib, even if you have liftIO and a missile facility ready, I'm afraid the code still won't work under the present socket.io 1.0. I apologize for that, I'm working on it :)

banacorn avatar Aug 29 '14 06:08 banacorn