(Unsafely) attempts to create a CurrencyCode value with the given currency code.
This function may throw an error if the given argument is not a valid currency code. For the monadic version, see mkCurrencyCode.
A currency code represented as string.
If the argument has leading or trailing spaces OR it is empty, an error is thrown, CurrencyCode is returned otherwise.
(Unsafely) attempts to create a CurrencyCode value with the given currency code.
This function may throw an error if the given argument is not a valid currency code. For the monadic version, see mkCurrencyCode.