From cff03e1102c0e998c36c40c846eec73f06288b04 Mon Sep 17 00:00:00 2001 From: "simonpj@microsoft.com" Date: Wed, 10 Sep 2008 08:15:10 +0000 Subject: [PATCH] Rename a variable --- compiler/rename/RnPat.lhs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/rename/RnPat.lhs b/compiler/rename/RnPat.lhs index 18f3dd5..ac35fe5 100644 --- a/compiler/rename/RnPat.lhs +++ b/compiler/rename/RnPat.lhs @@ -296,9 +296,9 @@ rnLPatAndThen var@(NM varf) (L loc p) cont = ; rnLPatsAndThen var pats $ \ patslist -> lcont (TuplePat patslist boxed placeHolderType) } - TypePat name -> - do { (name', fvs1) <- rnHsTypeFVs (text "In a type pattern") name - ; (res, fvs2) <- lcont (TypePat name') + TypePat ty -> + do { (ty', fvs1) <- rnHsTypeFVs (text "In a type pattern") ty + ; (res, fvs2) <- lcont (TypePat ty') ; return (res, fvs1 `plusFV` fvs2) } p -> pprPanic "rnLPatAndThen" (ppr p) -- 1.7.10.4