aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/GHC
diff options
context:
space:
mode:
authorDavid Waern <david.waern@gmail.com>2008-07-29 19:45:14 +0000
committerDavid Waern <david.waern@gmail.com>2008-07-29 19:45:14 +0000
commit8c73879959cfb611cf70d2a9497115b675356200 (patch)
tree1dfb4e7a67b82b267cd13846932ffef8800ea043 /src/Haddock/GHC
parent5770b12145f149b1add9173ea0c30d214f6a14d2 (diff)
Move unL from H.B.Hoogle to H.GHC.Utils
I like Neil's shorter unL better than unLoc from the GHC API.
Diffstat (limited to 'src/Haddock/GHC')
-rw-r--r--src/Haddock/GHC/Utils.hs4
1 files changed, 4 insertions, 0 deletions
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