Email parser and validation library.
Given a string, this returns true if the email is compatible with the spec.
isValid "[email protected]" == True
isValid "^^^^" == FalseGiven a string, parses into an EmailAddress model.
parse "[email protected]" == Ok { local = "hello", domain = "world.com" }
parse "^^^^" == Err [ dead ends ]Converts the EmailAddress model to a string.
A model for representing an email. This is exposed, but you'll probably only use it is using parseEmailAddress