Changelog for safe-money-0.5
Version 0.5
-
COMPILER ASSISTED BREAKING CHANGE. The
round
,floor
,ceiling
andtruncate
functions were replaced by a singlediscreteFromDense
function taking an argument of typeApproximation
(Round
,Floor
,Ceiling
orTruncate
) as an argument. -
COMPILER ASSISTED BREAKING CHANGE. The
fromDiscrete
function was renamed todenseFromDiscrete
. -
COMPILER ASSISTED BREAKING CHANGE. The
fromExchangeRate
function was renamed toexchangeRateToRational
. -
COMPILER ASSISTED BREAKING CHANGE. The
flipExchangeRate
function was renamed toexchangeRateRecip
. -
COMPILER ASSISTED BREAKING CHANGE. The
Dense
is not an instance ofFractional
anymore becauserecip
and/
could potentially crash. -
Introduced new functions for rendering and parsing decimal reperesentations of monetary amounts:
denseCurrency
,discreteCurrency
,denseFromDecimal
,denseToDecimal
,discreteFromDecimal
,exchangeRateFromDecimal
,exchangeRateToDecimal
. -
Introduced optional
AdditiveGroup
andVectorSpace
group instances forDense
andDiscrete
. These type-classes come from thevector-space
library and they can be enabled or disabled via thevector-space
Cabal flag, which is enabled by default. -
Introduced
discrete
constructor which behaves just likefromInteger
. -
Introduced the
dense'
constructor as an unsafe but convenient version ofdense
. -
The
ErrScaleNonCanonical
type is now exported. -
The
Money.Internal
module is now exposed, but hidden from the Haddock documentation. -
New scale:
"BTC" "millibitcoin"
. -
Added many tests.
Version 0.4.1
ExchangeRate
is now aCategory
.
Version 0.4
-
BREAKING CHANGE REQUIRING HUMAN INTERVENTION. The JSON serializations for all of
Dense
,SomeDense
,Discrete
,SomeDiscrete
,ExchangeRate
andSomeExchangeRate
changed. TheFromJSON
instances are backwards compatible with the old serializations, but theToJSON
instances will only generate the new format, which is the same as the old format except the leading strings"Dense"
,"Discrete"
and"ExchangeRate"
, respectively, are not present in the rendered JSON array anymore. So, if you were manually relying on theToJSON
instance, please update your code. -
COMPILER ASSISTED BREAKING CHANGE. Changed the
Rep
suffix for aSome
prefix Everywhere. For example,DenseRep
was renamed toSomeDense
. -
COMPILER ASSISTED BREAKING CHANGE. Replaced the
someDenseAmountNumerator
andsomeDenseAmountDenominator
Integers
with a singlesomeDenseAmount
Rational
number. Similarly forsomeDiscreteScale
andsomeExchangeRateRate
. ThemkSomeDense
,someDiscreteScale
andmkSomeDense
also take aRational
now. -
COMPILER ASSISTED BREAKING CHANGE. The
truncate
,floor
,celing
andround
functions now return just0
as a reminder if there's no significant reminder, instead ofNothing
. -
Added instances for
serialise
. -
Added instances for
xmlbf
. -
Fixed
Show
instances so that surrounding parentheses are included when necessary. -
New currencies: Ripple, Litecoin, Ada, Monero.
Version 0.3
-
COMPILER ASSISTED BREAKING CHANGE. The
Data.Money
module was renamed toMoney
. -
COMPILER ASSISTED BREAKING CHANGE. The
Data.Money.Internal
module is not exposed anymore. All of its contents are now exported from theMoney
module. -
COMPILER ASSISTED BREAKING CHANGE. Renamed
discreteRep
totoDiscreteRep
. -
COMPILER ASSISTED BREAKING CHANGE. Renamed
denseRep
totoDenseRep
. -
COMPILER ASSISTED BREAKING CHANGE. Renamed
exchangeRateRep
totoExchangeRateRep
. -
COMPILER ASSISTED BREAKING CHANGE. Renamed Iceleandic currency
"eyir"
to"eyrir"
-
Remove upper bound constraints from all dependencies except
base
. -
Made dependency on
store
optional for the test suite, so that it can run on GHCJS.
Version 0.2
-
Cabal flags are now manual (
aeson
,binary
,bytes
,cereal
,deepseq
,hashable
). -
Backwards compatibility with GHC 7.10.
-
Fix
Store
instances and test them.
Version 0.1
- Initial release.