X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcPat.lhs;h=022796ee9ea5d3f4832a60fba0491cf1a46bcdb7;hp=8c73fa9708cfa736517929799a95fc38a3e818d6;hb=1a9245caefb80a3c4c5965aaacdf9a607e792e1c;hpb=d64022dc071b587c20a693b7f355f69dc110b707 diff --git a/compiler/typecheck/TcPat.lhs b/compiler/typecheck/TcPat.lhs index 8c73fa9..022796e 100644 --- a/compiler/typecheck/TcPat.lhs +++ b/compiler/typecheck/TcPat.lhs @@ -36,7 +36,7 @@ import TyCon import DataCon import PrelNames import BasicTypes hiding (SuccessFlag(..)) -import DynFlags ( DynFlag( Opt_GADTs ) ) +import DynFlags import SrcLoc import ErrUtils import Util @@ -433,7 +433,11 @@ tc_pat pstate (SigPatIn pat sig_ty) pat_ty thing_inside failWithTc (badSigPat pat_ty) ; (pat', tvs, res) <- tcExtendTyVarEnv2 tv_binds $ tc_lpat pat inner_ty pstate thing_inside - ; return (SigPatOut pat' inner_ty, tvs, res) } + ; return (SigPatOut pat' inner_ty, tvs, res) } + +-- Use this when we add pattern coercions back in +-- return (mkCoPatCoI (mkSymCoI coi) (SigPatOut pat' inner_ty) pat_ty +-- , tvs, res) } tc_pat _ pat@(TypePat _) _ _ = failWithTc (badTypePat pat)