X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FdeSugar%2FMatch.lhs;h=a7e9bce188c8b014596d8fee81538034304f8480;hb=4c6a3f787abcaed009a574196d82237d9ae64fc8;hp=2d826f67a7dc3f8cece3fdaf87b3303286f048d1;hpb=082c473c8358dc65bac1e41f268eba02d64eaf03;p=ghc-hetmet.git diff --git a/compiler/deSugar/Match.lhs b/compiler/deSugar/Match.lhs index 2d826f6..a7e9bce 100644 --- a/compiler/deSugar/Match.lhs +++ b/compiler/deSugar/Match.lhs @@ -43,6 +43,7 @@ import Maybes import Util import Name import Outputable +import FastString \end{code} This function is a wrapper of @match@, it must be called from all the parts where @@ -386,7 +387,7 @@ which will be scrutinised. This means: Replace variable patterns @x@ (@x /= v@) with the pattern @_@, together with the binding @x = v@. \item -Replace the `as' pattern @xp@ with the pattern p and a binding @x = do v@. +Replace the `as' pattern @x@@p@ with the pattern p and a binding @x = v@. \item Removing lazy (irrefutable) patterns (you don't want to know...). \item