packages feed

irc-client 0.2.5.0 → 0.2.6.0

raw patch · 2 files changed

+14/−4 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Network.IRC.Client.Utils: addHandler :: EventHandler () -> StatefulIRC () ()

Files

Network/IRC/Client/Utils.hs view
@@ -40,6 +40,16 @@   iconf <- readTVar tvarI   writeTVar tvarI iconf { _channels = filter (/=chan) $ _channels iconf } +-- | Add an eventHandler+addHandler :: EventHandler () -> StatefulIRC () ()+addHandler handler = do+  tvarI <- instanceConfigTVar++  liftIO . atomically $  do+    iconf <- readTVar tvarI+    writeTVar tvarI iconf { _eventHandlers = handler : _eventHandlers iconf }++ -- | Send a message to the source of an event. reply :: UnicodeEvent -> Text -> StatefulIRC s () reply ev txt = case _source ev of
irc-client.cabal view
@@ -10,7 +10,7 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             0.2.5.0+version:             0.2.6.0  -- A short (one-line) description of the package. synopsis:            An IRC client library.@@ -103,9 +103,9 @@    source-repository head   type:     git-  location: https://github.com/barrucadu/irc-conduit.git+  location: https://github.com/barrucadu/irc-client.git  source-repository this   type:     git-  location: https://github.com/barrucadu/irc-conduit.git-  tag:      0.2.4.0+  location: https://github.com/barrucadu/irc-client.git+  tag:      0.2.6.0