Skip to content

Conversation

afcady
Copy link

@afcady afcady commented Jan 24, 2016

I couldn't find anything on hackage to validate just a domain name, so I used your domainLiteral parser.

I added a Text.Domain.Validate module which is just Text.Email.Validate with the parser and return type changed.

@Porges
Copy link
Owner

Porges commented Jan 24, 2016

Thanks for this!

Unfortunately at the moment this won't be that useful as the domain parsing is quite lenient - the email-address RFC allows many more things in domain names than the domain-name RFC (see #5, for example).

I intend to do some work this week to make this stricter, so I'll hold off merging your PR until that is complete.

@Porges Porges self-assigned this Jan 24, 2016
@Porges Porges added this to the v2.3 milestone Jan 24, 2016
@afcady
Copy link
Author

afcady commented Jan 24, 2016

Ooops, I used domainLiteral where I should have used dottedAtoms. Fixed now.

Unfortunately I used git commit --amend thinking this wouldn't have been seen yet, sorry.

@Porges Porges removed this from the v2.3 milestone Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants