-
Notifications
You must be signed in to change notification settings - Fork 95
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} #160
Conversation
TBH, I'd rather disable the warning. Newer version is not clearer at all. |
No problem, warning disabled. |
src/Text/Parsec/Error.hs
Outdated
@@ -1,6 +1,9 @@ | |||
{-# LANGUAGE DeriveDataTypeable #-} | |||
{-# LANGUAGE Safe #-} | |||
|
|||
-- Disable {-# WARNING #-} for Data.List.head: | |||
{-# OPTIONS_GHC -Wno-warnings-deprecations #-} |
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.
I'll hold merging this until ghc-proposals/ghc-proposals#541 is reviewed and hopefully implemented. Disabling all warnings is too blunt.
I feel Data.List.head/tail
warning/deprecations was rushed.
I'm not a fan of disabling warnings myself. I've made another attempt, which not only avoids |
@phadej any chance to look at this please? FWIW I do not plan to backport the |
I disagree it being clearer. I'll try myself. Is there a hurry? |
I'd be very grateful if we make some progress here, |
Is there a requirement for them [boot packages] to be warning free? What set, |
Yes. |
Why? That's stupid. There's nothing wrong in |
It's not me setting rules here, just At the moment I have no plans to remove |
I complained to GHC folks: https://gitlab.haskell.org/ghc/ghc/-/issues/22729 I'm very frustrated by this. I made the change in #164 which I'm more happy with structurally. (I don't find your version clearer that what is in |
Thanks @phadej, I'm very happy with this resolution. |
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
inparsec
.