summaryrefslogtreecommitdiff
path: root/simplechat.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2013-06-16 22:46:18 -0400
committerjoe <joe@jerkface.net>2013-06-16 22:46:18 -0400
commitb76ded3e5ecff4b7866a3b2b4a2beffb8c9d1f04 (patch)
treef8cdb784af7bdc2eb9e74526e082a7e3711d4303 /simplechat.hs
parentb5770d982d2cb7d95ae400172a8bb1ca923a0de4 (diff)
repaired simplechat
Diffstat (limited to 'simplechat.hs')
-rw-r--r--simplechat.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/simplechat.hs b/simplechat.hs
index a763a982..54545b9b 100644
--- a/simplechat.hs
+++ b/simplechat.hs
@@ -18,7 +18,7 @@ import Control.Concurrent.Chan
18import Data.HList 18import Data.HList
19 19
20 20
21startCon st = do 21startCon socket st = do
22 let chan = hOccursFst st 22 let chan = hOccursFst st
23 nr = hOccursFst st :: ConnId 23 nr = hOccursFst st :: ConnId
24 hdl = hOccursFst st :: Handle 24 hdl = hOccursFst st :: Handle
@@ -60,5 +60,6 @@ main = do
60 doServer (5222 .*. chan .*. HNil) 60 doServer (5222 .*. chan .*. HNil)
61 doCon 61 doCon
62 startCon 62 startCon
63 getLine
63 64
64 65