[{"name":"Money","comment":" All the worlds currencies.\n\n\n# Types\n\n@docs Currency\n\n\n# Basics\n\n@docs all, toString, fromString\n\n\n# Properties\n\n@docs toSymbol, toName, toNativeSymbol, toDecimalDigits\n\n\n# Search\n\n@docs search, searchCustom\n\n","unions":[{"name":"Currency","comment":" This type represents all the possible currencies as currency codes.\n","args":[],"cases":[["USD",[]],["CAD",[]],["EUR",[]],["BTC",[]],["AED",[]],["AFN",[]],["ALL",[]],["AMD",[]],["ARS",[]],["AUD",[]],["AZN",[]],["BAM",[]],["BDT",[]],["BGN",[]],["BHD",[]],["BIF",[]],["BND",[]],["BOB",[]],["BRL",[]],["BWP",[]],["BYR",[]],["BZD",[]],["CDF",[]],["CHF",[]],["CLP",[]],["CNY",[]],["COP",[]],["CRC",[]],["CVE",[]],["CZK",[]],["DJF",[]],["DKK",[]],["DOP",[]],["DZD",[]],["EEK",[]],["EGP",[]],["ERN",[]],["ETB",[]],["GBP",[]],["GEL",[]],["GHS",[]],["GNF",[]],["GTQ",[]],["HKD",[]],["HNL",[]],["HRK",[]],["HUF",[]],["IDR",[]],["ILS",[]],["INR",[]],["IQD",[]],["IRR",[]],["ISK",[]],["JMD",[]],["JOD",[]],["JPY",[]],["KES",[]],["KHR",[]],["KMF",[]],["KRW",[]],["KWD",[]],["KZT",[]],["LAK",[]],["LBP",[]],["LKR",[]],["LTL",[]],["LVL",[]],["LYD",[]],["MAD",[]],["MDL",[]],["MGA",[]],["MKD",[]],["MMK",[]],["MOP",[]],["MUR",[]],["MXN",[]],["MYR",[]],["MZN",[]],["NAD",[]],["NGN",[]],["NIO",[]],["NOK",[]],["NPR",[]],["NZD",[]],["OMR",[]],["PAB",[]],["PEN",[]],["PHP",[]],["PKR",[]],["PLN",[]],["PYG",[]],["QAR",[]],["RON",[]],["RSD",[]],["RUB",[]],["RWF",[]],["SAR",[]],["SDG",[]],["SEK",[]],["SGD",[]],["SOS",[]],["SYP",[]],["THB",[]],["TND",[]],["TOP",[]],["TRY",[]],["TTD",[]],["TWD",[]],["TZS",[]],["UAH",[]],["UGX",[]],["UYU",[]],["UZS",[]],["VEF",[]],["VND",[]],["XAF",[]],["XOF",[]],["YER",[]],["ZAR",[]],["ZMK",[]]]}],"aliases":[],"values":[{"name":"all","comment":" All the currency codes in a list\n\n    all =\n        [ USD\n        , EUR\n        , CAD\n\n        --..\n        ]\n\n","type":"List.List Money.Currency"},{"name":"fromString","comment":" Attempt to derive a `Currency` from a `String`. This function presumes the `String` is a currency code like `\"USD\"`.\n\n        fromString \"DKK\" == Just DKK\n        fromString \"Danish Krone\" == Nothing\n\n","type":"String.String -> Maybe.Maybe Money.Currency"},{"name":"search","comment":" Search all currencies by case-insensitive string matching on the name, symbol, and code.\n","type":"String.String -> List.List Money.Currency"},{"name":"searchCustom","comment":" Search through a list of currencies by case-insensitive string matching on the name, symbol, and code.\n","type":"String.String -> List.List Money.Currency -> List.List Money.Currency"},{"name":"toDecimalDigits","comment":" Get the number of decimal digits in a currency. of a currency from its code\n\nThe decimal digits is basically the size of the smaller unit the currency comes in.\nAmerican dollars and Euros, for example, both have cents, and 100 cents make a dollar or Euro. So the decimal\ndigits for these currencies is `2`. Extreme cases include the Japanese Yen, which has `0`, and\nBitcoin, which has `8`.\n\n","type":"Money.Currency -> Basics.Int"},{"name":"toName","comment":" Get the name of a currency from its code\n\n        toName { plural = True } EUR == \"euros\"\n        toName { plural = False } ALL == \"Albanian Lek\"\n        toName { plural = True } ALL == \"Albanian lekë\"\n\n","type":"{ plural : Basics.Bool } -> Money.Currency -> String.String"},{"name":"toNativeSymbol","comment":" Get the native symbol of a currency from its code.\n\n        toNativeSymbol LAK == \"ກີບ\"\n        toSymbol LAK == \"₭\"\n\n        toNativeSymbol CAD == \"$\"\n        toSymbol CAD == \"CA$\"\n\n        toNativeSymbol USD == \"$\"\n        toSymbol USD == \"$\"\n\nThe `native symbol` is different from the `symbol`. The `symbol` is what is used\nin international currency exchange contexts. Imagine a currency exchange shop\nat an airport that lists several currencies right next to each other. The native symbol,\nhowever, is used in more local and natural settings of the currency; such as if someone\nwere looking at a restaurant menu with currency amounts next to menu items.\n\n","type":"Money.Currency -> String.String"},{"name":"toString","comment":" Get the currency's code as a `String`\n\n        toString CNY == \"CNY\"\n\n","type":"Money.Currency -> String.String"},{"name":"toSymbol","comment":" Get the symbol of a currency from its code\n\n        toSymbol USD == \"$\"\n        toSymbol CAD == \"CA$\"\n        toSymbol BTC == \"BTC\"\n\nLook at the documentation for `toNativeSymbol` for more details.\n\n","type":"Money.Currency -> String.String"}],"binops":[]}]