-
Notifications
You must be signed in to change notification settings - Fork 375
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 (++)
for List
variation of All
#3179
Conversation
(++)
for All
for List
(++)
for List
variation of All
I don't understand why this is failing. It's unable to disambiguate between the version in src and that I've added here in base. But src isn't imported in base. More importantly, src isn't importable by clients of base afaik, so I'd like to put this in base |
Correct that This is a good PR IMO, but you'll need to explicitly use the library definition of |
I'd leave a note in the compiler source code about the future desire to remove the |
thank @mattpolzin, is the current compiler version 0.7.0? |
Yeah. And for reference, this is the sort of TODO that I'd leave for future us: https://github.com/idris-lang/Idris2/pull/3174/files#diff-458f49aa263db28859e440611f0e9e49e4cbbef7393c4215580029d938980c24L5 |
all done |
You actually won't need to disambiguate where you did in the latest changes. Within |
@@ -14,10 +14,12 @@ lookup v (px :: pxs) | |||
No _ => lookup v pxs | |||
Yes Refl => Just px | |||
|
|||
-- TODO: delete this function once we release the next compiler version | |||
-- (after 0.7.0) as it has been replicated in base's Data.List.Quantifiers |
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.
Could you please change the wording to something like "delete this function after 0.7.1 is released" because wording "next release after 0.7.0" proved to be really confusing (well, at least for me, doing cleanups). I think wording mentioning 0.7.1
is okay even if next release would be 0.8.0
.
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.
done. All good?
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.
Thanks!
Description
This exists in
Data
forSnocList
andVect
but not forList
for some reason. I copied it verbatim from srcShould this change go in the CHANGELOG?
implementation, I have updated
CHANGELOG.md
(and potentially alsoCONTRIBUTORS.md
).