-
Notifications
You must be signed in to change notification settings - Fork 16
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
Do not export the constructor of Pass #5
Comments
This seems like a good idea. Maybe in the future, we could export the constructor in a module like |
Also, I'm wondering what the added value is of having a Defining the instance Show Pass where
show _ = "**PASSWORD**" This way no one can make their own |
I am kind of on the fence with having a On one hand, I don't want people to ever get lax about just On the other hand, it is really annoying when types don't implement a I guess I'd be okay with adding a
I don't really buy into the Now that I've taken a look at it, I think the bigger problem is that there is no documentation about what format the To sum up, I guess I don't really care about |
To make it more safe, it'd be better that the
Pass
data constructor not be exported. This way, users can't pattern match on it and just remove theText
without using a function that's clearly labeled asunsafe
.Obviously, accompanying this should be a function like
mkPass :: Text -> Pass
to have users still be able to produce aPass
.The text was updated successfully, but these errors were encountered: