Fix compilation with GHC HEAD.