@@ -33,7 +33,8 @@ import Language.Haskell.TH
37 -- Lifted constructors
38 -- Lifted constructors
38 -- .. Literals
39 -- .. Literals
@@ -261,7 +262,7 @@ generateStatic n xs typ = do
263 typeable :: TyVarBndr -> Q Pred
264 typeable :: TyVarBndr -> Q Pred
264− typeable tv = classP (mkName "Typeable") [varT (tyVarBndrName tv)]
265+ typeable tv = conT (mkName "Typeable") `appT` varT (tyVarBndrName tv)
266-- | Generate a serialization dictionary with name 'n' for type 'typ'
267-- | Generate a serialization dictionary with name 'n' for type 'typ'
267generateDict :: Name -> Type -> Q [Dec]
268generateDict :: Name -> Type -> Q [Dec]