Add support for GHC 7.10/base-4.8

See also https://ghc.haskell.org/trac/ghc/ticket/9814