What is the best type to use to represent financial amounts in Haskell?
I am doing some heavy calculations on the price of a financial product and would like to know which is the best type to use when there could potentially be thousands of arithmetic operations done on the price and a list of prices could be averaged.
At the moment I am using Double
but I don't think that may be the best choice. Others types I have come across are RealFrac
and .Fractional
Update
For the person that has marked this post to be closed, the link provided debates whether to use Double or Float. My post is concerned with discounting both these types in favour of a potentially better suited type to represent financial amounts and calculations using financial amounts. Moreover, as @Carsten indicates Double is not a good idea.