@@ -13,7 +13,7 @@ import GHC.Plugins hiding (AnnLet)
1313import Prelude hiding ((<>) )
1414
1515-- | Show a GHC syntax tree in HTML.
16- showAstDataHtml :: (Data a , ExactPrint a , Outputable a ) => a -> SDoc
16+ showAstDataHtml :: (Data a , ExactPrint a ) => a -> SDoc
1717showAstDataHtml a0 = html $
1818 header $$
1919 body (tag' [(" id" ,text (show @ String " myUL" ))] " ul" $ vcat
@@ -244,8 +244,7 @@ showAstDataHtml a0 = html $
244244 annotationEpaLocation :: EpAnn EpaLocation -> SDoc
245245 annotationEpaLocation = annotation' (text " EpAnn EpaLocation" )
246246
247- annotation' :: forall a . (Data a , Typeable a )
248- => SDoc -> EpAnn a -> SDoc
247+ annotation' :: forall a . Data a => SDoc -> EpAnn a -> SDoc
249248 annotation' tag anns = nested (text $ showConstr (toConstr anns))
250249 (vcat (map li $ gmapQ showAstDataHtml' anns))
251250
@@ -266,16 +265,16 @@ showAstDataHtml a0 = html $
266265 srcSpanAnnN :: SrcSpanAnn' (EpAnn NameAnn ) -> SDoc
267266 srcSpanAnnN = locatedAnn'' (text " SrcSpanAnnN" )
268267
269- locatedAnn'' :: forall a . ( Typeable a , Data a )
268+ locatedAnn'' :: forall a . Data a
270269 => SDoc -> SrcSpanAnn' a -> SDoc
271270 locatedAnn'' tag ss =
272271 case cast ss of
273272 Just ((SrcSpanAnn ann s) :: SrcSpanAnn' a ) ->
274- nested " SrcSpanAnn" $ (
273+ nested " SrcSpanAnn" (
275274 li(showAstDataHtml' ann)
276275 $$ li(srcSpan s))
277276 Nothing -> text " locatedAnn:unmatched" <+> tag
278- <+> ( text (showConstr (toConstr ss) ))
277+ <+> text (showConstr (toConstr ss))
279278
280279
281280normalize_newlines :: String -> String
0 commit comments