X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcPat.lhs;h=064067534d434e8e99ec2259149948d97bf7f2d5;hb=6d2b0ae3ae3296cb6cdd496cbf85b897c7ce150b;hp=8b2fac26cacbc26b7b8bac9c07d3a504611b5323;hpb=5822cb8d13aa3c05d2b46b4510c13d94b902eb21;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcPat.lhs b/compiler/typecheck/TcPat.lhs index 8b2fac2..0640675 100644 --- a/compiler/typecheck/TcPat.lhs +++ b/compiler/typecheck/TcPat.lhs @@ -6,6 +6,13 @@ TcPat: Typechecking patterns \begin{code} +{-# OPTIONS -w #-} +-- The above warning supression flag is a temporary kludge. +-- While working on this module you are encouraged to remove it and fix +-- any warnings in the module. See +-- http://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#Warnings +-- for details + module TcPat ( tcLetPat, tcLamPat, tcLamPats, tcOverloadedLit, addDataConStupidTheta, badFieldCon, polyPatSig ) where @@ -590,7 +597,7 @@ tcConPat pstate con_span data_con tycon pat_ty arg_pats thing_inside (unwrapFamInstScrutinee tycon ctxt_res_tys $ ConPatOut { pat_con = L con_span data_con, pat_tvs = ex_tvs' ++ co_vars, - pat_dicts = map instToId dicts, + pat_dicts = map instToVar dicts, pat_binds = dict_binds, pat_args = arg_pats', pat_ty = pat_ty }, ex_tvs' ++ inner_tvs, res)