[Haskell-cafe] What is a safe Haskell data type to store and manipulate Money values?

Jeremy Shaw jeremy at n-heptane.com
Wed Apr 5 00:31:44 UTC 2017


I once implemented a decimal library based around this PEP,

https://www.python.org/dev/peps/pep-0327/

Not sure if that is a good idea or not -- but it seemed like a good idea at
the time.

- jeremy

On Mon, Apr 3, 2017 at 7:48 PM, Sandeep Cr <sandeepcr2 at gmail.com> wrote:

> Hello all,
>
> What is a good data type for storing and manipulating monetary values in a
> typical web application with payment processing? What are the pros and cons
> of various options like Data.Scientific, Rational and Decimal?
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170404/fd6a21ab/attachment.html>


More information about the Haskell-Cafe mailing list