currencies 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+35/−3 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- README.md +32/−0
- currencies.cabal +3/−3
README.md view
@@ -1,3 +1,35 @@ [](https://circleci.com/gh/alx741/currencies) # currencies++ISO 4217 Currencies representation, pretty printing and conversion:++* Represent monetary amounts of a particular currency in a type-safe manner+* Convert amounts between different currencies+* Print human readable amounts++```haskell+prettyPrint (Amount USD 2342.2)+-- "USD 2,342.20"++prettyPrint (Amount EUR 45827.346)+-- "UER 45,827.35"++prettyPrintWith (defaultConfig { useCurrencySymbol = True }) (Amount USD 2342.2)+-- "$ a,342.20"++prettyPrintWith (defaultConfig { useCurrencySymbol = True }) (Amount EUR 2342.2)+-- "€ 2,342.20"++prettyPrintWith (defaultConfig { showDecimals = False }) (Amount USD 25.50)+-- "USD 25"++convert USD (Amount EUR 23482.34)+-- Amount USD 27709.1612++prettyPrint $ convert USD (Amount EUR 23482.34)+-- "USD 27,709.16"++compareAmounts (Amount EUR 1000) (Amount BTC 1)+-- LT+```
currencies.cabal view
@@ -1,13 +1,13 @@ name: currencies-version: 0.1.0.0+version: 0.1.0.1 synopsis: Currencies representation, pretty printing and conversion description: ISO 4217 Currencies representation, pretty printing and conversion: .- * Represent monetary amouts of a particular currency in a type-safe manner+ * Represent monetary amounts of a particular currency in a type-safe manner . * Convert amounts between different currencies .- * Print human readable amouts+ * Print human readable amounts homepage: https://github.com/alx741/currencies#readme license: BSD3 license-file: LICENSE