simpleirc-lens 0.1.0.0 → 0.2.0.0
raw patch · 3 files changed
+38/−27 lines, 3 filesdep ~simpleircPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: simpleirc
API changes (from Hackage documentation)
+ Network.SimpleIRC.Core.Lens: secure :: Functor f => (Bool -> f Bool) -> IrcConfig -> f IrcConfig
Files
- simpleirc-lens.cabal +7/−2
- src/Network/SimpleIRC/Core/Lens.hs +29/−24
- src/Network/SimpleIRC/Messages/Lens.hs +2/−1
simpleirc-lens.cabal view
@@ -1,11 +1,12 @@ name: simpleirc-lens-version: 0.1.0.0+version: 0.2.0.0 synopsis: Lenses for simpleirc types description: Provides lenses for types in the <https://hackage.haskell.org/package/simpleirc simpleirc> package without depending on <https://hackage.haskell.org/package/lens lens>. homepage: https://github.com/relrod/simpleirc-lens+bug-reports: https://github.com/relrod/simpleirc-lens/issues license: BSD2 license-file: LICENSE author: Ricky Elrod@@ -15,12 +16,16 @@ build-type: Simple cabal-version: >=1.10 +source-repository head+ type: git+ location: git://github.com/relrod/simpleirc-lens.git+ library exposed-modules: Network.SimpleIRC.Core.Lens Network.SimpleIRC.Messages.Lens build-depends: base >= 4 && < 5 , bytestring >= 0.10 && < 0.11- , simpleirc >= 0.3 && < 0.4+ , simpleirc >= 0.3.1 && < 0.3.2 hs-source-dirs: src default-language: Haskell2010 ghc-options: -Wall
src/Network/SimpleIRC/Core/Lens.hs view
@@ -7,12 +7,13 @@ -- Stability : provisional -- Portability : portable ----- This module provides lenses for types in 'Network.SimpleIRC.Core'.+-- This module provides lenses for types in+-- <https://hackage.haskell.org/package/simpleirc/docs/Network-SimpleIRC-Core.html Network.SimpleIRC.Core>. ------------------------------------------------------------------------------- module Network.SimpleIRC.Core.Lens ( -- * 'IrcConfig'- addr, port, nick, pass, username, realname, channels, events,+ addr, port, secure, nick, pass, username, realname, channels, events, ctcpVersion, ctcpTime, ctcpPingTimeoutInterval ) where @@ -20,58 +21,62 @@ addr :: Functor f => (String -> f String) -> IrcConfig -> f IrcConfig-addr fn (IrcConfig a b c d e f g h i j k) =- fmap (\a' -> IrcConfig a' b c d e f g h i j k) (fn a)+addr fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\a' -> IrcConfig a' b c d e f g h i j k l) (fn a) port :: Functor f => (Int -> f Int) -> IrcConfig -> f IrcConfig-port fn (IrcConfig a b c d e f g h i j k) =- fmap (\b' -> IrcConfig a b' c d e f g h i j k) (fn b)+port fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\b' -> IrcConfig a b' c d e f g h i j k l) (fn b) +secure :: Functor f => (Bool -> f Bool) -> IrcConfig -> f IrcConfig+secure fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\c' -> IrcConfig a b c' d e f g h i j k l) (fn c)+ nick :: Functor f => (String -> f String) -> IrcConfig -> f IrcConfig-nick fn (IrcConfig a b c d e f g h i j k) =- fmap (\c' -> IrcConfig a b c' d e f g h i j k) (fn c)+nick fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\d' -> IrcConfig a b c d' e f g h i j k l) (fn d) pass :: Functor f => (Maybe String -> f (Maybe String)) -> IrcConfig -> f IrcConfig-pass fn (IrcConfig a b c d e f g h i j k) =- fmap (\d' -> IrcConfig a b c d' e f g h i j k) (fn d)+pass fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\e' -> IrcConfig a b c d e' f g h i j k l) (fn e) username :: Functor f => (String -> f String) -> IrcConfig -> f IrcConfig-username fn (IrcConfig a b c d e f g h i j k) =- fmap (\e' -> IrcConfig a b c d e' f g h i j k) (fn e)+username fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\f' -> IrcConfig a b c d e f' g h i j k l) (fn f) realname :: Functor f => (String -> f String) -> IrcConfig -> f IrcConfig-realname fn (IrcConfig a b c d e f g h i j k) =- fmap (\f' -> IrcConfig a b c d e f' g h i j k) (fn f)+realname fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\g' -> IrcConfig a b c d e f g' h i j k l) (fn g) channels :: Functor f => ([String] -> f [String]) -> IrcConfig -> f IrcConfig-channels fn (IrcConfig a b c d e f g h i j k) =- fmap (\g' -> IrcConfig a b c d e f g' h i j k) (fn g)+channels fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\h' -> IrcConfig a b c d e f g h' i j k l) (fn h) events :: Functor f => ([IrcEvent] -> f [IrcEvent]) -> IrcConfig -> f IrcConfig-events fn (IrcConfig a b c d e f g h i j k) =- fmap (\h' -> IrcConfig a b c d e f g h' i j k) (fn h)+events fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\i' -> IrcConfig a b c d e f g h i' j k l) (fn i) ctcpVersion :: Functor f => (String -> f String) -> IrcConfig -> f IrcConfig-ctcpVersion fn (IrcConfig a b c d e f g h i j k) =- fmap (\i' -> IrcConfig a b c d e f g h i' j k) (fn i)+ctcpVersion fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\j' -> IrcConfig a b c d e f g h i j' k l) (fn j) ctcpTime :: Functor f => (IO String -> f (IO String)) -> IrcConfig -> f IrcConfig-ctcpTime fn (IrcConfig a b c d e f g h i j k) =- fmap (\j' -> IrcConfig a b c d e f g h i j' k) (fn j)+ctcpTime fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\k' -> IrcConfig a b c d e f g h i j k' l) (fn k) ctcpPingTimeoutInterval :: Functor f => (Int -> f Int) -> IrcConfig -> f IrcConfig-ctcpPingTimeoutInterval fn (IrcConfig a b c d e f g h i j k) =- fmap (\k' -> IrcConfig a b c d e f g h i j k') (fn k)+ctcpPingTimeoutInterval fn (IrcConfig a b c d e f g h i j k l) =+ fmap (\l' -> IrcConfig a b c d e f g h i j k l') (fn l)
src/Network/SimpleIRC/Messages/Lens.hs view
@@ -7,7 +7,8 @@ -- Stability : provisional -- Portability : portable ----- This module provides lenses for types in 'Network.SimpleIRC.Messages'.+-- This module provides lenses for types in+-- <https://hackage.haskell.org/package/simpleirc/docs/Network-SimpleIRC-Messages.html Network.SimpleIRC.Messages>. ------------------------------------------------------------------------------- module Network.SimpleIRC.Messages.Lens