aeson-iproute 0.1.3 → 0.2
raw patch · 2 files changed
+6/−6 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/Aeson/IP.hs +4/−4
- aeson-iproute.cabal +2/−2
Data/Aeson/IP.hs view
@@ -30,7 +30,7 @@ Nothing -> fail "Unable to parse IPv4" -- | The @ToJSON@ instance produces JSON strings matching the @Show@ instance.---+-- -- >>> toJSON (toIPv4 [127,0,0,1]) -- String "127.0.0.1" instance ToJSON IPv4 where@@ -52,7 +52,7 @@ Nothing -> fail "Unable to parse IPv6" -- | The @ToJSON@ instance produces JSON strings matching the @Show@ instance.---+-- -- >>> toJSON (toIPv6 [0x2001,0xDB8,0,0,0,0,0,1]) -- String "2001:db8::1" instance ToJSON IPv6 where@@ -126,7 +126,7 @@ <*> p v <?> Key k <*> rt) (pure RouteTable.empty)- _ -> \_ -> fail "using IPRTable in this context is not yet supported"+ _ -> fail "using IPRTable in this context is not yet supported" instance ( FromJSONKey k , Read (AddrRange k)@@ -140,7 +140,7 @@ ToJSONKeyText f _ -> Object . HashMap.fromList . map (\(k, v) -> (f k, g v)) . RouteTable.toList- _ -> error "using IPRTable as a JSON key is not yet supported"+ _ -> fail "using IPRTable as a JSON key is not yet supported" instance (Routable k, Show k, ToJSON k, ToJSON v) => ToJSON (IPRTable k v) where toJSON = toJSON1
aeson-iproute.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: aeson-iproute-version: 0.1.3+version: 0.2 synopsis: Aeson instances for iproute types description: Aeson instances for iproute types. license: BSD3@@ -13,7 +13,7 @@ category: Data build-type: Simple cabal-version: >=1.10-Tested-With: GHC == 8.0.2, GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.3+Tested-With: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2 library exposed-modules: Data.Aeson.IP