-- Initial SocketIO.cabal generated by cabal init. For further -- documentation, see http://haskell.org/cabal/users-guide/ name: socketio version: 0.1.1 synopsis: Socket.IO server description: Socket.IO for Haskell folks. . [Socket.IO] . [Protocol] . @ {-# LANGUAGE OverloadedStrings #-} . import Web.SocketIO . \-\- listens to port 4000 main = server 4000 $ do . \-\- ping pong on "ping" $ emit "pong" [] . \-\- reply :: CallbackM [Text] on "echo" $ reply >>= emit "pong" . \-\- do some IO on "Kim Jong-Un" $ liftIO launchMissile @ license: MIT license-file: LICENSE author: Ting-Yen Lai maintainer: banacorn@gmail.com -- copyright: stability: experimental category: Web build-type: Simple cabal-version: >=1.8 source-repository head type: git location: https://github.com/banacorn/socket.io-haskell library ghc-options: -Wall -fno-warn-unused-do-bind exposed-modules: Web.SocketIO Other-modules: Web.SocketIO.Types Web.SocketIO.Types.Base Web.SocketIO.Types.Event Web.SocketIO.Types.Layer Web.SocketIO.Types.Log Web.SocketIO.Types.Request Web.SocketIO.Types.String Web.SocketIO.Connection Web.SocketIO.Channel Web.SocketIO.Event Web.SocketIO.Protocol Web.SocketIO.Request Web.SocketIO.Server Web.SocketIO.Session Web.SocketIO.Timeout Web.SocketIO.Util build-depends: base ==4.6.* , text ==1.1.* , bytestring ==0.10.* , aeson ==0.7.* , parsec ==3.1.* , ansi-terminal ==0.6.* , unordered-containers ==0.2.* , random ==1.0.* , wai ==2.0.* , warp ==2.0.* , http-types ==0.8.* , mtl ==2.1.* , transformers-base ==0.4.* , monad-control ==0.3.* , lifted-base ==0.2.* test-suite socketio-test type: exitcode-stdio-1.0 hs-source-dirs: test . main-is: main.hs ghc-options: -Wall -fno-warn-unused-do-bind build-depends: base ==4.6.* , QuickCheck ==2.6.* , HUnit ==1.2.* , test-framework ==0.8.* , test-framework-quickcheck2 ==0.3.* , test-framework-hunit ==0.3.* build-depends: base ==4.6.* , text ==1.1.* , bytestring ==0.10.* , aeson ==0.7.* , parsec ==3.1.* , ansi-terminal ==0.6.* , unordered-containers ==0.2.* , random ==1.0.* , wai ==2.0.* , warp ==2.0.* , http-types ==0.8.* , mtl ==2.1.* , transformers-base ==0.4.* , monad-control ==0.3.* , lifted-base ==0.2.*