-
Notifications
You must be signed in to change notification settings - Fork 141
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
Strictness and laziness ergonomics #375
Comments
I like this idea! How about calling it |
I think adding a |
@sjakobi I initially went with the alias used by relude's Relude.String.Conversion. If you feel like The original names were good enough that I didn't judge necessary to change them, and if the maintainers of |
Just to be clear about credits: I believe that
|
Yes indeed, thank you very much @Bodigrim! |
I don't see much advantage to re-using a name that is already popular. That would only increase the likelihood of name clashes. If people prefer abbreviations, we might as well go with My vote is for |
We can also call the strict one |
These names are admittedly clearer. But I think they are too far a departure from the existing module naming. People would be unlikely to make the connection with the |
I'm in favor of I'm not sure that |
So my motivation is that even after the introduction of |
I see, makes sense. @Kleidukos a PR, adding |
Alright, it's on! |
The fact that we have both lazy and strict
ByteString
types without any marker outside of their namespace is rather unfortunate.In pretty big codebases or modules, it's also easy to forget that
Data.ByteString.Lazy
was imported.This is why, inspired by Kowainik's work, I would like to introduce the following type alias:
What it does
What it does not
A similar ticket was opened in the haskell/text repo: haskell/text#317
The text was updated successfully, but these errors were encountered: