bishbosh-0.0.0.7: Plays chess.
Safe HaskellNone
LanguageHaskell2010

BishBosh.Data.Ratio

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION
Defines a pickler for Ratio.
CAVEAT

Rational numbers are converted imprecisely to floating-point for representation as XML. To remedy the loss of precision on reading from XML, they're rounded to the epsilon for IEEE double-precision https://en.wikipedia.org/wiki/Machine_epsilon.

Orphan instances

Integral i => XmlPickler (Ratio i) Source # 
Instance details

Methods

xpickle :: PU (Ratio i) #