diff --git a/htools/Ganeti/THH.hs b/htools/Ganeti/THH.hs index 1ad01797074eb6e4acddc3c9141265dff2c66935..859eb81b15a641961b1f1f297662b45524375994 100644 --- a/htools/Ganeti/THH.hs +++ b/htools/Ganeti/THH.hs @@ -246,7 +246,7 @@ strADTDecl name constructors = -- @ genToRaw :: Name -> Name -> Name -> [(String, Either String Name)] -> Q [Dec] genToRaw traw fname tname constructors = do - sigt <- [t| $(conT tname) -> $(conT traw) |] + let sigt = AppT (AppT ArrowT (ConT tname)) (ConT traw) -- the body clauses, matching on the constructor and returning the -- raw value clauses <- mapM (\(c, v) -> clause [recP (mkName c) []]