diff options
Diffstat (limited to 'src/Haddock')
-rw-r--r-- | src/Haddock/Backends/Hoogle.hs | 1 | ||||
-rw-r--r-- | src/Haddock/GHC/Utils.hs | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Haddock/Backends/Hoogle.hs b/src/Haddock/Backends/Hoogle.hs index 578f179d..2e10ab9e 100644 --- a/src/Haddock/Backends/Hoogle.hs +++ b/src/Haddock/Backends/Hoogle.hs @@ -60,7 +60,6 @@ ppModule iface = "" : doc (ifaceDoc iface) ++ --------------------------------------------------------------------- -- Utility functions -unL (L _ x) = x reL = L undefined diff --git a/src/Haddock/GHC/Utils.hs b/src/Haddock/GHC/Utils.hs index 20607cd2..9ec5a5f7 100644 --- a/src/Haddock/GHC/Utils.hs +++ b/src/Haddock/GHC/Utils.hs @@ -24,6 +24,10 @@ import Name import Packages +unL :: Located a -> a +unL (L _ x) = x + + moduleString :: Module -> String moduleString = moduleNameString . moduleName |