HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehledger-lib-1.52.4GHC2021

Hledger.Data.Currency

Currency names, symbols and codes. Reference: - https://www.xe.com/symbols - https://www.xe.com/currency

Synopsis
valuecurrencySymbolToCode :: CurrencySymbol -> Maybe CurrencyCode

Look for a ISO 4217 currency code corresponding to this currency symbol.

Example2 expressions
currencySymbolToCode ""NothingcurrencySymbolToCode "$"Just "USD"
valuecurrencyCodeToSymbol :: CurrencyCode -> Maybe CurrencySymbol

Look for a currency symbol corresponding to this ISO 4217 currency code.

Example1 expression
currencyCodeToSymbol "CZK"  -- Just "Kč"Just "K\269"