projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Overhaul of the rewrite rules
[ghc-hetmet.git]
/
compiler
/
typecheck
/
TcPat.lhs
diff --git
a/compiler/typecheck/TcPat.lhs
b/compiler/typecheck/TcPat.lhs
index
8b2fac2
..
0640675
100644
(file)
--- a/
compiler/typecheck/TcPat.lhs
+++ b/
compiler/typecheck/TcPat.lhs
@@
-6,6
+6,13
@@
TcPat: Typechecking patterns
\begin{code}
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
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,
(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)
pat_binds = dict_binds,
pat_args = arg_pats', pat_ty = pat_ty },
ex_tvs' ++ inner_tvs, res)