extract_lty: remember to check the environment classifier
[ghc-hetmet.git] / compiler / parser / RdrHsSyn.lhs
index 5135c71..49036d9 100644 (file)
@@ -122,7 +122,7 @@ extract_lty (L loc ty) acc
       HsAppTy ty1 ty2                  -> extract_lty ty1 (extract_lty ty2 acc)
       HsListTy ty                      -> extract_lty ty acc
       HsPArrTy ty                      -> extract_lty ty acc
-      HsModalBoxType ecn ty    -> extract_lty ty acc
+      HsModalBoxType ecn ty    -> extract_lty ty (extract_tv loc ecn acc)
       HsTupleTy _ tys                  -> extract_ltys tys acc
       HsFunTy ty1 ty2                  -> extract_lty ty1 (extract_lty ty2 acc)
       HsPredTy p               -> extract_pred p acc