JSON and CSV encoding for rationals as decimal point numbers. https://github.com/blockscope/flare-timing/tree/master/detour-via-sci#readme
|Version on this page:||1.0.0|
|LTS Haskell 12.22:||1.0.0|
|Stackage Nightly 2018-12-12:||1.0.0|
|Latest on Hackage:||1.0.0|
For encoding and decoding newtype rationals as scientific with a fixed number of decimal places.
Initial version with;
fromScifor converting Rational to and from Scientific.
showScifor showing Rational as if Scientific.
- For JSON, instances of
FromJSONfor newtype Rational that also have instances of
- For CSV, instances of
FromFieldin the same way.
- Template Haskell functions to generate instances.