Skip to content
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

added domain name validation module #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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