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

Peter Simons simons at nospf.cryp.to
Tue Apr 4 11:50:19 UTC 2017


Hi Saurabh,

a good place to start might be the "Amount" type provided by the
hleder-lib package:

  http://hackage.haskell.org/package/hledger-lib-1.2/docs/Hledger-Data-Types.html#t:Amount

It is based on 'Decimal':

  http://hackage.haskell.org/package/Decimal

Best regards,
Peter



More information about the Haskell-Cafe mailing list