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.