serokell / o-clock

:hourglass: Type-safe time units in Haskell
Mozilla Public License 2.0
49 stars 6 forks source link

[#132] Add Data instance to Time #139

Closed aeqz closed 1 year ago

aeqz commented 1 year ago

Description

Problem: Currently, o-clock does not provide a Data instance for its Time type, which can be useful for using it together with some generics library such as uniplate.

Solution: Derive Data for Time with DeriveDataTypeable.

Related issue(s)

Fixes #132

Related changes (conditional)

Stylistic guide (mandatory)

aeqz commented 1 year ago

Thank you for reviewing @treeowl!