duckling-0.2.0.0: A Haskell library for parsing text into structured data.
Safe HaskellNone
LanguageHaskell2010

Duckling.CreditCardNumber.Helpers

Synopsis

Documentation

visaCreditCardNumberRegex :: String Source #

Visa credit card regex informed by latest BIN info

amexCreditCardNumberRegex :: String Source #

American Express credit card regex informed by latest BIN info

discoverCreditCardNumberRegex :: String Source #

Discover credit card regex informed by latest BIN info

mastercardCreditCardNumberRegex :: String Source #

Mastercard credit card regex informed by latest BIN info

dinerClubCreditCardNumberRegex :: String Source #

Diner Club credit card regex informed by latest BIN info

isValidCreditCardNumber :: Text -> Bool Source #

An implementation of the Luhn algorithm (see https://en.wikipedia.org/wiki/Luhn_algorithm) to check if a given credit card number is valid