Commit 81b437bc authored by Ben Gamari's avatar Ben Gamari 🐢

Add NamedThing (GenLocated l e) instance

parent c27ce26e
......@@ -630,6 +630,9 @@ class NamedThing a where
getOccName n = nameOccName (getName n) -- Default method
instance NamedThing e => NamedThing (GenLocated l e) where
getName = getName . unLoc
getSrcLoc :: NamedThing a => a -> SrcLoc
getSrcSpan :: NamedThing a => a -> SrcSpan
getOccString :: NamedThing a => a -> String
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment