MoneyMan v1.2.4 Money.Sigils

Summary

Macros

Handles the sigil ~M for Money

Macros

sigil_M(arg, currency)

Handles the sigil ~M for Money

The lower case ~m variant does not exist as interpolation and excape characters are not useful for Money sigils.

Usage

import Money.Sigils
~M[1000] # With a configured default currency (e.g. GBP)
#> %Money{amount: 1000, currency: :GBP3}

~M[1000]USD
#> %Money{amount: 1000, currency: :USD}