Workaround for GHC 7.8.1 regression