Skip to content
Snippets Groups Projects
Commit cc4b2462 authored by Gergő Érdi's avatar Gergő Érdi
Browse files

Add OutputableBndr instance for OccName

parent d793a148
No related branches found
No related tags found
No related merge requests found
......@@ -261,6 +261,11 @@ instance Data OccName where
instance Outputable OccName where
ppr = pprOccName
instance OutputableBndr OccName where
pprBndr _ = ppr
pprInfixOcc n = pprInfixVar (isSymOcc n) (ppr n)
pprPrefixOcc n = pprPrefixVar (isSymOcc n) (ppr n)
pprOccName :: OccName -> SDoc
pprOccName (OccName sp occ)
= getPprStyle $ \ sty ->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment