From 8c73879959cfb611cf70d2a9497115b675356200 Mon Sep 17 00:00:00 2001 From: David Waern Date: Tue, 29 Jul 2008 19:45:14 +0000 Subject: Move unL from H.B.Hoogle to H.GHC.Utils I like Neil's shorter unL better than unLoc from the GHC API. --- src/Haddock/GHC/Utils.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Haddock/GHC') 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 -- cgit v1.2.3