aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Backends/Hoogle.hs
diff options
context:
space:
mode:
authordavid.waern <david.waern@gmail.com>2010-03-18 22:22:27 +0000
committerdavid.waern <david.waern@gmail.com>2010-03-18 22:22:27 +0000
commit629ff801073bb90a968dbc882b0c443d13e4d92e (patch)
tree1c3da3f3263700813ee55c046d00ea1956d4fdd5 /src/Haddock/Backends/Hoogle.hs
parentaccca44fea8b531d27df063f403abbe4303d6ddc (diff)
Fix build with GHC 6.12.1
Diffstat (limited to 'src/Haddock/Backends/Hoogle.hs')
-rw-r--r--src/Haddock/Backends/Hoogle.hs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Haddock/Backends/Hoogle.hs b/src/Haddock/Backends/Hoogle.hs
index b1b08b95..25c5d91e 100644
--- a/src/Haddock/Backends/Hoogle.hs
+++ b/src/Haddock/Backends/Hoogle.hs
@@ -145,10 +145,7 @@ ppClass x = out x{tcdSigs=[]} :
f t = HsForAllTy Implicit [] (reL [context]) (reL t)
context = reL $ HsClassP (unL $ tcdLName x)
- (map (reL . HsTyVar . tyVar . unL) (tcdTyVars x))
-
- tyVar (UserTyVar v _) = v
- tyVar (KindedTyVar v _) = v
+ (map (reL . HsTyVar . hsTyVarName . unL) (tcdTyVars x))
ppInstance :: Instance -> [String]
@@ -191,7 +188,7 @@ ppCtor dat subdocs con = doc (lookupCon subdocs (con_name con))
name = out $ unL $ con_name con
resType = case con_res con of
- ResTyH98 -> apps $ map (reL . HsTyVar) $ unL (tcdLName dat) : [x | UserTyVar x _ <- map unL $ tcdTyVars dat]
+ ResTyH98 -> apps $ map (reL . HsTyVar) $ unL (tcdLName dat) : [hsTyVarName v | v@UserTyVar {} <- map unL $ tcdTyVars dat]
ResTyGADT x -> x