@@ -33,11 +33,11 @@ import Language.Haskell.Exts.Build
33import Language.Haskell.Exts.SrcLoc
33import Language.Haskell.Exts.SrcLoc
34import Language.Haskell.Exts.Syntax hiding (Alt, Int, Lit)
34import Language.Haskell.Exts.Syntax hiding (Alt, Int, Lit)
36−urlSig :: Name -> Decl
36+serviceSig :: Name -> Decl
37−urlSig n = TypeSig noLoc [n] (TyCon "ServiceConfig")
37+serviceSig n = TypeSig noLoc [n] (TyCon "Service")
39−urlDecl :: Service a -> Name -> Decl
39+serviceDecl :: Service a -> Name -> Decl
40−urlDecl s n = sfun noLoc n [] (UnGuardedRhs rhs) noBinds
40+serviceDecl s n = sfun noLoc n [] (UnGuardedRhs rhs) noBinds
42 rhs = appFun (var "defaultService")
42 rhs = appFun (var "defaultService")
43 [ app (var "ServiceId") (str (s ^. dId))
43 [ app (var "ServiceId") (str (s ^. dId))