Skip to content
Snippets Groups Projects
Commit 91217a96 authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Types: Add Outputable[Bndr] DocName instances

parent d4657f07
No related branches found
No related tags found
No related merge requests found
......@@ -286,6 +286,14 @@ instance NamedThing DocName where
getName (Documented name _) = name
getName (Undocumented name) = name
-- | Useful for debugging
instance Outputable DocName where
ppr = ppr . getName
instance OutputableBndr DocName where
pprBndr _ = ppr . getName
pprPrefixOcc = pprPrefixOcc . getName
pprInfixOcc = pprInfixOcc . getName
-----------------------------------------------------------------------------
-- * Instances
......
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