iproute
iproute copied to clipboard
Missing instances for some domain types
1st of all thanks for creating and sharing this library!
My concern is about the lack of some "common" instances for some of the types. Examples:
What about support these ones:
-
FromJSON
andToJSON
fromaeson
-
Hashable
fromhashable
package -
Serialize
fromcereal
package -
Arbitrary
fromQuickcheck
(I saw you have them for thetest
module)ex.
instance Arbitrary (AddrRange IPv4) where arbitrary = arbitraryIP arbitrary 32
-
ToADTArbitrary
fromquickcheck-arbitrary-adt
I'm assuming maybe you decided to not implement them (or export them) in order to keep library number of dependencies low. If is that the reason, do you think some extra lib called iproute-instances
(or any other name) could be created? I mean, it would be really helpful in order to avoid wrappers or proxy for types like IPRange
, IP
, etc.
Either way, if you decide to implement the instances in the library or create this new one, feel free to ping me if you want or need some collaboration.