diff options
author | joe <joe@jerkface.net> | 2018-06-20 16:08:42 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2018-06-20 17:24:19 -0400 |
commit | c8f7f30885f14b6239fac2a8b3157866494ae775 (patch) | |
tree | 78436d01af46d61515cf380a65460e899ad5ada5 /examples/dhtd.hs | |
parent | 9ee162744e9f03f8a3c1ab0e5b3688f9dc534241 (diff) |
Export non-ResourceT interface to xmppServer.
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r-- | examples/dhtd.hs | 4 |
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 | |||
27 | import Control.Monad | 27 | import Control.Monad |
28 | import Control.Monad.IO.Class (liftIO) | 28 | import Control.Monad.IO.Class (liftIO) |
29 | import Control.Monad.Trans.Control | 29 | import Control.Monad.Trans.Control |
30 | import Control.Monad.Trans.Resource (runResourceT) | 30 | import Control.Monad.Trans.Resource (runResourceT,allocate) |
31 | import Data.Bool | 31 | import Data.Bool |
32 | import Data.Char | 32 | import Data.Char |
33 | import Data.Conduit as C | 33 | import 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 |