Skip to content

zudov/html-email-validate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

923b8df · Nov 4, 2017

History

34 Commits
Feb 22, 2015
Nov 4, 2017
Apr 5, 2015
Oct 15, 2016
Oct 28, 2017
Oct 15, 2016
Nov 4, 2017
Oct 15, 2016
Oct 15, 2016
Oct 15, 2016
Oct 29, 2017

Repository files navigation

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 "[email protected]"
Right mailto@mail.to

For more examples see documentation on Hackage.

About

Validating an email adress against HTML standard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published