Fix Trac #2584: Pretty printing of types with HsDocTy
[ghc-hetmet.git] / compiler / typecheck / TcSplice.lhs
index 9a03acb..af4d320 100644 (file)
@@ -872,7 +872,7 @@ reifyThing (AGlobal (AnId id))
   = do { ty <- reifyType (idType id)
        ; fix <- reifyFixity (idName id)
        ; let v = reifyName id
-       ; case globalIdDetails id of
+       ; case idDetails id of
            ClassOpId cls    -> return (TH.ClassOpI v ty (reifyName cls) fix)
            _                -> return (TH.VarI     v ty Nothing fix)
     }