[Haskell-cafe] custom SQL-to-Haskell type conversion in HDBC

Brandon Allbery allbery.b at gmail.com
Mon Aug 22 07:56:01 CEST 2011

On Sun, Aug 21, 2011 at 20:29, Richard O'Keefe <ok at cs.otago.ac.nz> wrote:

> Values in data bases often represent sums of money, for which reading (1)
> is
> appropriate.  One tenth of $2.53 is $0.253; rounding that to $0.25 would in
> some circumstances count as fraud.
> Of course, values in data bases often represent physical measurements, for
> which
> reading (2) is appropriate.  There is, however, no SQL data type that
> expresses
> this intent.

Interestingly, my original exposure to this was math for physics, which
would imply reading (2) if I understand this correctly, yet I was taught
(1).  (Later exposure was for business databases, so (1) was still

brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110822/eb45cd2e/attachment.htm>

More information about the Haskell-Cafe mailing list