iban-0.1.0.0: Validate and generate IBANs

Safe HaskellNone

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 -> CountryCodeSource

Get the country of the IBAN

prettyIBAN :: IBAN -> TextSource

show a IBAN in 4-blocks

parseIBAN :: Text -> Either IBANError IBANSource

try to parse an IBAN