-
Notifications
You must be signed in to change notification settings - Fork 158
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
Module for standard type aliases #185
Comments
fthomas
added a commit
that referenced
this issue
Dec 24, 2016
fthomas
added a commit
that referenced
this issue
Dec 24, 2016
Thanks @fthomas Im introducing these now to a codebase and finding them useful :) |
@benhutchison I'm very pleased to hear that! I'm currently working on #369 which hopefully makes working with type aliases easier. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are some very common refined types that it would be nice to give short, standardized names to.
Int Refined Positive
andInt Refined NonNegative
being two examples, which I found myself aliasing after using refined for about an hour.Without standard names, different users will invariably choose different aliases to refer to the same refinement. Eg I chose
NatInt
andNat0Int
for the above two respectively, while Quasar apparently usesPositive
andNatural
.Ideally this is done in a seperate modular layer, so people can opt in to the standard names but aren't forced to use them.
Gitter context: https://gitter.im/fthomas/refined?at=577cca9d9d3eadd723767548
The text was updated successfully, but these errors were encountered: