iban-0.1.1.1: Validate and generate IBANs

Safe HaskellSafe
LanguageHaskell2010

Finance.IBAN

Synopsis

Documentation

data IBANError Source

Constructors

IBANInvalidCharacters

The IBAN string contains invalid characters.

IBANInvalidStructure

The IBAN string has the wrong structure.

IBANWrongChecksum

The checksum does not match.

IBANInvalidCountry Text

The country identifier is either not a valid ISO3166-1 identifier or that country does not issue IBANs.

country :: IBAN -> CountryCode Source

Get the country of the IBAN

prettyIBAN :: IBAN -> Text Source

show a IBAN in 4-blocks

parseIBAN :: Text -> Either IBANError IBAN Source

try to parse an IBAN