-
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
Add IsList instances #219
Add IsList instances #219
Conversation
How does this behave for literals that don't fit into [ 256 ] :: ByteString or [ -1 ] :: ByteString ? |
Similar to
This seems to be a bug in GHC:
|
Sure, filed as https://gitlab.haskell.org/ghc/ghc/issues/18172 Good catch. Sorry, I meant #114. |
The only thing arguably missing is a more efficient implementation of |
I did not define That said, I believe this is ready for review. @hvr @cartazio |
@Bodigrim im inclined that we should make FromList N validating. Rather than a hint. This was the take away about semantic mismatch on the libraries list. And since bytestring and vector are used in data loading contexts this is even more important! |
We should have a new discussion on the libraries list to discuss this. I think the hint semantic was the wrong choice at the time. ESP since the api then was about a desugaring trick rather than a user api |
@cartazio sure, I remember that discussion on the libraries list and I totally agree that it does not make sense to treat I mean, anyone who cares about performance can reach for |
I mean we should circulate the semantic change in docs on libraries list. But understood |
Wrt base |
@hsyl20 could you please review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Resolves #106, as suggested by @dcoutts in #114 (and supersedes the latter).
CC @andrewthad