-
Notifications
You must be signed in to change notification settings - Fork 92
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
Avoid Data.List.{head,tail}
#259
Conversation
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.
This changes behaviour though right? Passing in an empty dir wasn't possible before this patch?
Sure, but why does |
The CLC proposal asked to add |
I wouldn't mind if we inline https://hackage.haskell.org/package/extra-1.7.12/docs/src/Data.List.Extra.html#unsnoc |
@hasufell good to go? I replaced |
CLC has approved the proposal to add
{-# WARNING #-}
toData.List.{head,tail}
(haskell/core-libraries-committee#87). It means that usage ofhead
andtail
will emit compile-time warnings.This patch eliminates the only usage of
head
inunix
.