on develop help sign in
Updating generator to support latest haskell-src-exts
58fc7dcBrendan Hay
gen/src/Gen/Syntax.hs+5−2
@@ -47,7 +47,9 @@ serviceDecl s n = sfun noLoc n [] (UnGuardedRhs rhs) noBinds
47scopeSig :: Name -> Text -> Decl
47scopeSig :: Name -> Text -> Decl
48scopeSig n v = TypeSig noLoc [n] $
48scopeSig n v = TypeSig noLoc [n] $
49 TyApp (TyCon "Proxy") $
49 TyApp (TyCon "Proxy") $
50− TyPromoted $ PromotedList True [PromotedString (Text.unpack v)]
50+ TyPromoted $ PromotedList True
51+ [ TyPromoted $ PromotedString (Text.unpack v)
52+ ]
51
53
52scopeDecl :: Name -> Decl
54scopeDecl :: Name -> Decl
53scopeDecl n = sfun noLoc n [] (UnGuardedRhs (var "Proxy")) noBinds
55scopeDecl n = sfun noLoc n [] (UnGuardedRhs (var "Proxy")) noBinds
@@ -286,7 +288,8 @@ requestDecl n p api url fs m =
286
288
287 ss = InsType noLoc (TyApp (TyCon "Scopes") (tycon n)) $
289 ss = InsType noLoc (TyApp (TyCon "Scopes") (tycon n)) $
288 TyPromoted $
290 TyPromoted $
291+ PromotedList True $
289− PromotedList True (map (PromotedString . Text.unpack) (_mScopes m))
292+ map (TyPromoted . PromotedString . Text.unpack) (_mScopes m)
290
293
291 extras = catMaybes [alt, payload]
294 extras = catMaybes [alt, payload]
292 where
295 where