Money v0.0.15 Money.Sigil

Summary

Functions

Implements the sigil ~M for Money

Functions

sigil_M(amount, currency)

Implements the sigil ~M for Money

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

Example

import Money.Sigil

iex> ~M[1000]usd
#Money<:USD, 1000>