summaryrefslogtreecommitdiff
path: root/examples/dhtd.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2018-06-20 16:08:42 -0400
committerjoe <joe@jerkface.net>2018-06-20 17:24:19 -0400
commitc8f7f30885f14b6239fac2a8b3157866494ae775 (patch)
tree78436d01af46d61515cf380a65460e899ad5ada5 /examples/dhtd.hs
parent9ee162744e9f03f8a3c1ab0e5b3688f9dc534241 (diff)
Export non-ResourceT interface to xmppServer.
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r--examples/dhtd.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index f6c57130..b635f04e 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -27,7 +27,7 @@ import Control.Exception
27import Control.Monad 27import Control.Monad
28import Control.Monad.IO.Class (liftIO) 28import Control.Monad.IO.Class (liftIO)
29import Control.Monad.Trans.Control 29import Control.Monad.Trans.Control
30import Control.Monad.Trans.Resource (runResourceT) 30import Control.Monad.Trans.Resource (runResourceT,allocate)
31import Data.Bool 31import Data.Bool
32import Data.Char 32import Data.Char
33import Data.Conduit as C 33import Data.Conduit as C
@@ -1707,7 +1707,7 @@ main = runResourceT $ liftBaseWith $ \resT -> do
1707 1707
1708 state <- newPresenceState cw (toxman announcer toxbkts <$> mbtox) serverVar 1708 state <- newPresenceState cw (toxman announcer toxbkts <$> mbtox) serverVar
1709 1709
1710 sv <- resT $ xmppServer (presenceHooks state (verbosity opts) (Just cport) (Just sport)) 1710 sv <- resT $ xmppServer allocate (presenceHooks state (verbosity opts) (Just cport) (Just sport))
1711 -- We now have a server object but it's not ready to use until 1711 -- We now have a server object but it's not ready to use until
1712 -- we put it into the 'server' field of our /state/ record. 1712 -- we put it into the 'server' field of our /state/ record.
1713 conns <- xmppConnections sv 1713 conns <- xmppConnections sv