Add {-# WARNING #-} to Data.List.{head,tail}
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.