diff options
author | David Waern <david.waern@gmail.com> | 2009-03-27 21:19:22 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2009-03-27 21:19:22 +0000 |
commit | 2265cf668d9604d407a06e11df804fc73242de00 (patch) | |
tree | 7ec47c1fac248ddcc85360012af2fcf3e490a925 /src/Haddock/DocName.hs | |
parent | 2c2c603e58b73b646c3fe025a1d7d5570ce5739b (diff) |
Remove docNameOrig and use getName everywhere instead
Diffstat (limited to 'src/Haddock/DocName.hs')
-rw-r--r-- | src/Haddock/DocName.hs | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/Haddock/DocName.hs b/src/Haddock/DocName.hs index a3a92b5d..227d63e8 100644 --- a/src/Haddock/DocName.hs +++ b/src/Haddock/DocName.hs @@ -19,22 +19,14 @@ data DocName = Documented Name Module | Undocumented Name deriving Eq --- TODO: remove docNameOrig in favour of the NamedThing instance - -instance NamedThing DocName where - getName (Documented name _) = name - getName (Undocumented name) = name - - -- | The 'OccName' belonging to this name docNameOcc :: DocName -> OccName -docNameOcc = nameOccName . docNameOrig +docNameOcc = nameOccName . getName --- | The original definition site of this name -docNameOrig :: DocName -> Name -docNameOrig (Documented name _) = name -docNameOrig (Undocumented name) = name +instance NamedThing DocName where + getName (Documented name _) = name + getName (Undocumented name) = name instance Binary DocName where |