packages feed

IPv6Addr 1.0.4 → 1.1.0

raw patch · 3 files changed

+6/−1 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

IPv6Addr.cabal view
@@ -1,5 +1,5 @@ name:                IPv6Addr-version:             1.0.4+version:             1.1.0 synopsis:            Library to deal with IPv6 address text representations. description:         Library to deal with IPv6 address text representations, canonization and manipulations. homepage:            https://github.com/MichelBoucey/IPv6Addr
Text/IPv6Addr.hs view
@@ -331,6 +331,10 @@            diffNext (t:ts) = do              let h = head ts              case t of+               DoubleColon ->+                 case h of+                   Colon        -> False+                   _            -> True                 SixteenBit _ ->                  case h of                    SixteenBit _ -> False
tests/Main.hs view
@@ -23,6 +23,7 @@   , (~?=) (maybeIPv6Addr "0:0:0:0:0:0:0:0:0") Nothing   , (~?=) (maybeIPv6Addr "1") Nothing   , (~?=) (maybeIPv6Addr "::1") (Just (IPv6Addr "::1"))+  , (~?=) (maybeIPv6Addr ":::1") Nothing   , (~?=) (maybeIPv6Addr "::1:") Nothing   , (~?=) (maybeIPv6Addr "0000:0000:0000:0000:0000:0000:0000:0001") (Just (IPv6Addr "::1"))   , (~?=) (maybeIPv6Addr "0:0:0:0:0:0:0:1") (Just (IPv6Addr "::1"))