Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- data IBAN = IBAN {}
- data IBANError
- parseIBAN :: Text -> Either IBANError IBAN
- prettyIBAN :: IBAN -> Text
- data SElement
- country :: IBAN -> CountryCode
- checkStructure :: BBANStructure -> Text -> Bool
- parseStructure :: Text -> (CountryCode, BBANStructure)
- countryStructures :: Map CountryCode BBANStructure
- mod97_10 :: Text -> Int
Documentation
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. |
prettyIBAN :: IBAN -> Text Source
show a IBAN in 4-blocks
country :: IBAN -> CountryCode Source
Get the country of the IBAN
checkStructure :: BBANStructure -> Text -> Bool Source
parseStructure :: Text -> (CountryCode, BBANStructure) Source
countryStructures :: Map CountryCode BBANStructure Source