Confusing warnings from GHC HEAD