Skip to content

Add more instances to 'o-clock' library #100

@chshersh

Description

@chshersh

I see that in safe-money package they choose the following approach for having aeson instances and other: they introduce flags in .cabal file and depend on each library conditionally. I think we can do the same thing:

Not sure we want all instances, but I think it's worth to have the following ones:

  • Hashable (hashable)
  • NFData (deepseq)
  • ToJSON/FromJSON/ToJSONKey/FromJSON/Key (aeson, also maybe with one extra newtype for additional behavior with mcs suffixes and without)
  • serialise (I saw this library was used in different projects)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions