On Friday, 19 August 2011, Erik Hesselink wrote: [...] > Perhaps a solution would be to not treat the database precision as > your primary source of information, but represent that in Haskell > using some data type that correctly propagates precision information, > and marshall your database data to and from that. This means some > duplication of information (precision in both database and Haskell) > but you do the same with NULL and Maybe, etc. I guess that's inherent > to (the way HDBC does) database access.
That's exactly what I'm after: getting the data out of the db as a Haskell data type that preserves the precision information (which the use of Rational does not). -- Henry House +1 530 848-1238 _______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
