Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.7 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.7 KB

html-email-validate

Validating an email address against HTML standard.

Travis

Hackage Stackage LTS Stackage Nightly

The library allows to validate and parse an email address as it's defined in HTML standard.

Note that HTML specification of a valid email address is a 'willful violation' of RFC 5322. If you want to validate an address against RFC 5322 you should use email-validate.

Usage

Prelude> import Text.Html.Email.Validate 
Prelude Text.Html.Email.Validate> :set -XOverloadedStrings 
Prelude Text.Html.Email.Validate> isValidEmail "mailto@@mail.to"
False
Prelude Text.Html.Email.Validate> parseEmail "mailto@mail.to"
Right mailto@mail.to

For more examples see documentation on Hackage.