-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Major version changes (v3) #22
Comments
8c6e0c7 adds the Another thing to think about: I should be testing the canonicalized versions of email addresses to ensure the normal form is as expected. (The |
Idea: use This way we have Also: add a Edit: didn't use DataKinds because that forces it onto the consumer. Instead we have a typeclass |
@Porges Don't you know my IPv6Addr package? It should give all you need about IPv6 addresses. If not, feel free to contact me. |
@MichelBoucey I didn't come across it when I was looking. It looks like it could be useful. I'll stick with One thing that might be required is: in order to pass the test-suite, in some situations I have to be able to parse IPv4-only addresses and not accept IPv6 ones. I'm not sure if this is possible with your current API (except if I parse and then check the result to see if it is IPv4-compatible). |
Ideas for v3:
isemail
, and won't be inlined in the code.EmailAddress
should not provide individual access tolocalPart
/domainPart
, but instead be anewtype
aroundText
. This will facilitate loading/storing from unvalidated stores in a simpler fashion than is currently possible (e.g. at the moment you can useunsafeEmailAddress
but it takes the two parts separately, not a single email address string).ParseOptions
to type level, per this comment.EmailAddress
type...)DomainPart = HostName | IP
.TODO: what modules to depend on for IP address types? There are currently ip, network-ip, others? Do any of them expose parsers from
Text
?Resolution: I chose
ip
for now, since it provides AttoparsecText
parsers.To pass tests I need to close these issues:
this should fall out of better domain parsing
emailaddress
)The text was updated successfully, but these errors were encountered: