We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 474de0d commit 7aac9bbCopy full SHA for 7aac9bb
src/Control/Distributed/Process/Internal/Closure/TH.hs
@@ -33,7 +33,8 @@ import Language.Haskell.TH
33
, Pred
34
#endif
35
, varT
36
- , classP
+ , conT
37
+ , appT
38
-- Lifted constructors
39
-- .. Literals
40
, stringL
@@ -261,7 +262,7 @@ generateStatic n xs typ = do
261
262
]
263
where
264
typeable :: TyVarBndr -> Q Pred
- typeable tv = classP (mkName "Typeable") [varT (tyVarBndrName tv)]
265
+ typeable tv = conT (mkName "Typeable") `appT` varT (tyVarBndrName tv)
266
267
-- | Generate a serialization dictionary with name 'n' for type 'typ'
268
generateDict :: Name -> Type -> Q [Dec]
0 commit comments