change Typeable instance according to ghc 7.8