diff options
author | David Waern <david.waern@gmail.com> | 2009-03-27 23:41:28 +0000 |
---|---|---|
committer | David Waern <david.waern@gmail.com> | 2009-03-27 23:41:28 +0000 |
commit | ea9a5f61a86ad667084236f048c42c7c844eb029 (patch) | |
tree | cd1aa72e6434dfb12166481a9e2063869a312b8d /src/Haddock/Interface/Rename.hs | |
parent | 4bd0bf841e324c7e6a716ee3e12a94e73dfaa178 (diff) |
Define Foldable and Traversable instances for Located
Diffstat (limited to 'src/Haddock/Interface/Rename.hs')
-rw-r--r-- | src/Haddock/Interface/Rename.hs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Haddock/Interface/Rename.hs b/src/Haddock/Interface/Rename.hs index 6d806806..17fe1223 100644 --- a/src/Haddock/Interface/Rename.hs +++ b/src/Haddock/Interface/Rename.hs @@ -129,8 +129,12 @@ runRnFM env rn = unRn rn lkp -------------------------------------------------------------------------------- -rename = lookupRn id -renameL (L loc name) = return . L loc =<< rename name +rename :: Name -> RnM DocName +rename = lookupRn id + + +renameL :: Located Name -> RnM (Located DocName) +renameL = mapM rename renameExportItems :: [ExportItem Name] -> RnM [ExportItem DocName] |