All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to the Haskell Package Versioning Policy.
- Update package metadata.
- Relaxed upper bounds on dependencies.
- Add
isSubsetOf
forIPv4
andIPv6
ranges.
- Bump upper bound on
text
to< 2.1
. - Add
Hashable
instances forIP
andIPv6
.
- Add
boundedBuilderOctetsBE
andboundedBuilderOctetsLE
toNet.IPv4
. - Make doctests work again. Requires
doctest-0.20
or higher. - Bump upper bound on
attoparsec
to< 0.15
. - Bump upper bound on
hashable
to< 1.5
. - Derive
Generic
forNet.IPv6.IPv6
. - Bump lower bound on
wide-word
to>= 0.1.1.2
. - Add compatibility with GHC 9.2.3.
- Add
decodeUtf8Bytes
toNet.IP
. - Fix IPv4 octet overflow bug (#74)
- Export
decodeOctets
fromNet.Mac
. - Add
encodeShort
toNet.Mac
.
- Fix bug in
doctest
documentation - Bump upper bound on
aeson
: (< 1.5) -> (< 1.6)
- Deprecate 'decodeBytes' in favor of 'decodeOctets'.
- Add
Bytes
-oriented encode and decode functions toNet.Mac
:boundedBuilderUtf8
,decodeUtf8Bytes
, andparserUtf8Bytes
. - Add
parserRangeUtf8Bytes
andparserRangeUtf8BytesLenient
to bothNet.IPv4
andNet.IPv6
modules.
- Add
Data
instances for all types. - Add
Ix
instances for all address types. - Add missing
ToJSON
/FromJSON
instances forIPv6Range
. - Remove
Num
,Integral
, andReal
instances fromIPv6
. - Remove
Bits
instance forIPv4Range
. - Switch to derived
Bits
instance for `IPv4. - Remove old spec test for IPv4 Bits laws, instead use quickcheck-classes.
- Bump exclusive upper bound on small-bytearray-builder
- Provide decode functions for decoding from
ShortText
and fromBytes
. These two are implemented internally using the same function. - Dependency on
bytesmith
effectively restricts users to GHC 8.6 and up. Since GHC 8.8 is about to be released, this is deemed an acceptable cost. - Require cabal version 2.2 so that leading commas are accepted in dependencies lists.
- Allow building with primitive-0.7.
- Add more doctests to Net.IP.
- Add to Net.IP:
isIPv4
andisIPv6
. - Bump lower bound on primitive from 0.6 to 0.6.4.
- Bump upper bound on hashable from < 1.3. to < 1.4.
- Implement
IPv6
usingwide-word
'sWord128
. (This is a breaking change.)
- Docfix for
Net.IPv4.toList
- Fix existing
spec
test suite. - 100% haddock coverage, along with significantly more doctest coverage.
- Add
Net.IPv4.localhost
andNet.IPv6.localhost
, aliases forloopback
.
- Add
Enum
andBounded
instances forMac
. - Add
NFData
instances for all types.
- Combine
Net.IPv4
andNet.IPv4.Range
modules. - Add
IPv6Range
. - Drop support for older aeson.
- Add
Enum
instance forIPv6
.
- Added a
Prim
instance forMac
.