@@ -613,6 +613,11 @@ p_hsExpr' s = \case
613 breakpoint
613 breakpoint
614 inci $ do
614 inci $ do
616+ -- Insert a space when the type is represented as a TH splice to avoid
617+ -- gluing @ and $ together.
618+ case unLoc (hswc_body a) of
619+ HsSpliceTy {} -> space
616 located (hswc_body a) p_hsType
621 located (hswc_body a) p_hsType
617 OpApp NoExtField x op y -> do
622 OpApp NoExtField x op y -> do
618 let opTree = OpBranch (exprOpTree x) op (exprOpTree y)
623 let opTree = OpBranch (exprOpTree x) op (exprOpTree y)