irc-client 0.4.2.2 → 0.4.3.0
raw patch · 3 files changed
+5/−6 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Network.IRC.Client.Utils: addHandler :: EventHandler () -> StatefulIRC () ()
+ Network.IRC.Client.Utils: addHandler :: EventHandler s -> StatefulIRC s ()
Files
- Network/IRC/Client.hs +1/−1
- Network/IRC/Client/Utils.hs +2/−3
- irc-client.cabal +2/−2
Network/IRC/Client.hs view
@@ -136,7 +136,7 @@ , _realname = n , _password = Nothing , _channels = []- , _ctcpVer = "irc-client-0.4.2"+ , _ctcpVer = "irc-client-0.4.3" , _eventHandlers = defaultEventHandlers , _ignore = [] }
Network/IRC/Client/Utils.hs view
@@ -40,15 +40,14 @@ iconf <- readTVar tvarI writeTVar tvarI iconf { _channels = filter (/=chan) $ _channels iconf } --- | Add an eventHandler-addHandler :: EventHandler () -> StatefulIRC () ()+-- | Add an event handler+addHandler :: EventHandler s -> StatefulIRC s () 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 ()
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.4.2.2+version: 0.4.3.0 -- A short (one-line) description of the package. synopsis: An IRC client library.@@ -107,4 +107,4 @@ source-repository this type: git location: https://github.com/barrucadu/irc-client.git- tag: 0.4.2.2+ tag: 0.4.3.0