-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathSocketIO.cabal
122 lines (114 loc) · 4.88 KB
/
SocketIO.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
-- Initial SocketIO.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: socketio
version: 0.1.3
synopsis: Socket.IO server
description:
Socket.IO for Haskell folks.
.
[Socket.IO] <http://socket.io/>
.
[Protocol] <https://github.com/LearnBoost/socket.io-spec>
.
@
{-# LANGUAGE OverloadedStrings #-}
.
import Web.SocketIO
.
\-\- listens to port 4000
main = server 4000 $ do
.
    \-\- ping pong
    on "ping" $ emit "pong" []
.
    \-\- msg :: CallbackM [Text]
    on "echo" $ msg >>= emit "pong"
.
    \-\- do some IO
    on "Kim Jong-Un" $ liftIO launchMissile
@
license: MIT
license-file: LICENSE
author: Ting-Yen Lai
maintainer: [email protected]
-- 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.Log
build-depends: base >=4.6 && <5.0
, text >=1.1 && <2.0
, bytestring >=0.10 && <1.0
, blaze-builder >=0.3 && <1.0
, aeson >=0.7 && <1.0
, conduit >=1.1 && <2.0
, conduit-extra >=1.1 && <2.0
, attoparsec >=0.11 && <1.0
, ansi-terminal >=0.6 && <1.0
, unordered-containers >=0.2 && <1.0
, random >=1.0 && <2.0
, wai >=3.0 && <4.0
, wai-conduit >=3.0 && <4.0
, warp >=3.0 && <4.0
, http-types >=0.8 && <1.0
, mtl >=2.1 && <3.0
, transformers-base >=0.4 && <1.0
, monad-control >=0.3 && <1.0
, lifted-base >=0.2 && <1.0
, vector >=0.10 && <1.0
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 && <5.0
, QuickCheck >=2.6 && <3.0
, HUnit >=1.2 && <2.0
, test-framework >=0.8 && <1.0
, test-framework-quickcheck2 >=0.3 && <1.0
, test-framework-hunit >=0.3 && <1.0
, scientific >=0.2 && <1.0
build-depends: base >=4.6 && <5.0
, text >=1.1 && <2.0
, bytestring >=0.10 && <1.0
, blaze-builder >=0.3 && <1.0
, aeson >=0.7 && <1.0
, conduit >=1.1 && <2.0
, conduit-extra >=1.1 && <2.0
, attoparsec >=0.11 && <1.0
, ansi-terminal >=0.6 && <1.0
, unordered-containers >=0.2 && <1.0
, random >=1.0 && <2.0
, wai >=3.0 && <4.0
, wai-conduit >=3.0 && <4.0
, warp >=3.0 && <4.0
, http-types >=0.8 && <1.0
, mtl >=2.1 && <3.0
, transformers-base >=0.4 && <1.0
, monad-control >=0.3 && <1.0
, lifted-base >=0.2 && <1.0
, vector >=0.10 && <1.0