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

Validate user input to avoid creating malformed files #23

Open
utdemir opened this issue Oct 15, 2021 · 0 comments
Open

Validate user input to avoid creating malformed files #23

utdemir opened this issue Oct 15, 2021 · 0 comments

Comments

@utdemir
Copy link
Owner

utdemir commented Oct 15, 2021

Currently most of the inputs we allow are raw strings. The user can easily pass incorrect values (project names with disallowed characters, module names that does not fit haskell syntax).

We should have a script which validates them to ensure that the files we generate are correct.

It doesn't have to be a super strict validation, I am happy if a dedicated user can break it; but we should at least protect for simple mistakes.

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

No branches or pull requests

1 participant