Skip to content

Missing instances for some domain types #61

@mirko-plowtech

Description

@mirko-plowtech

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 and ToJSON from aeson

  • Hashable from hashable package

  • Serialize from cereal package

  • Arbitrary from Quickcheck (I saw you have them for the test module)

    ex.

    instance Arbitrary (AddrRange IPv4) where
        arbitrary = arbitraryIP arbitrary 32
  • ToADTArbitrary from quickcheck-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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions