diff options
author | Ben Gamari <ben@smart-cactus.org> | 2020-04-15 21:57:50 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2020-04-15 21:57:50 -0400 |
commit | 3f72af5f4b764beca6a16229c647f59da9925477 (patch) | |
tree | 267a6e12ba13e98cc1726e30d60d8d738ce14189 | |
parent | 23744e1d12f09366783c50efefeee466d5a5bf42 (diff) | |
download | haskell-3f72af5f4b764beca6a16229c647f59da9925477.tar.gz |
Lint: Fix shadowing
-rw-r--r-- | compiler/GHC/Core/Lint.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Core/Lint.hs b/compiler/GHC/Core/Lint.hs index afbeb707af..ad7b76a528 100644 --- a/compiler/GHC/Core/Lint.hs +++ b/compiler/GHC/Core/Lint.hs @@ -1124,8 +1124,8 @@ lintTyApp fun_ty arg_ty ----------------- lintValApp :: CoreExpr -> LintedType -> LintedType -> LintM LintedType lintValApp arg fun_ty arg_ty - | Just (arg,res) <- splitFunTy_maybe fun_ty - = do { ensureEqTys arg arg_ty err1 + | Just (arg_ty', _res_ty') <- splitFunTy_maybe fun_ty + = do { ensureEqTys arg_ty' arg_ty err1 ; return res } | otherwise = failWithL err2 |