Skip to content

Add {-# WARNING #-} to Data.List.{head,tail}

Bodigrim requested to merge Bodigrim/ghc:warning-for-head-and-tail into master

See https://github.com/haskell/core-libraries-committee/issues/87

To squash new warnings within GHC souce code itself I opted to add warning-less proxies for head / tail in GHC.Prelude, in line with the mitigation guidelines. Another option would be to disable -Wno-warnings-deprecations in individual modules (cf. -Wincomplete-uni-patterns -Wincomplete-record-updates changes per #15656 (comment 218646)), but I find it less appealing.

Edited by Bodigrim

Merge request reports