Fix for GHC 7.6 (broke with 7.8 patch)