Several TH/quasiquote changes
[ghc-hetmet.git] / compiler / rename / RnHsSyn.lhs
index eb0e2e2..cb0727b 100644 (file)
@@ -65,9 +65,12 @@ extractHsTyNames ty
     get (HsOpTy ty1 op ty2)    = getl ty1 `unionNameSets` getl ty2 `unionNameSets` unitNameSet (unLoc op)
     get (HsParTy ty)           = getl ty
     get (HsBangTy _ ty)        = getl ty
+    get (HsRecTy flds)         = extractHsTyNames_s (map cd_fld_type flds)
     get (HsNumTy _)            = emptyNameSet
     get (HsTyVar tv)           = unitNameSet tv
-    get (HsSpliceTy _)         = emptyNameSet   -- Type splices mention no type variables
+    get (HsSpliceTy {})        = emptyNameSet   -- Type splices mention no type variables
+    get (HsSpliceTyOut {})     = emptyNameSet   -- Ditto
+    get (HsQuasiQuoteTy {})    = emptyNameSet   -- Ditto
     get (HsKindSig ty _)       = getl ty
     get (HsForAllTy _ tvs
                     ctxt ty)   = (extractHsCtxtTyNames ctxt