summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-04-24 14:02:27 +0000
committerIan Lynagh <igloo@earth.li>2009-04-24 14:02:27 +0000
commit5f044d4807abe23d22ec62920aabfe91f61ef78e (patch)
tree68bda7ac4130d3c66c370d4316b9d4a35e5e8b64
parent831a35dd00faff195cf938659c2dd736192b865f (diff)
downloadhaskell-5f044d4807abe23d22ec62920aabfe91f61ef78e.tar.gz
Tiny refactor
-rw-r--r--compiler/typecheck/TcPat.lhs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/typecheck/TcPat.lhs b/compiler/typecheck/TcPat.lhs
index 82ac5e3596..23e6bbf819 100644
--- a/compiler/typecheck/TcPat.lhs
+++ b/compiler/typecheck/TcPat.lhs
@@ -365,8 +365,7 @@ tc_pat pstate lpat@(LazyPat pat) pat_ty thing_inside
-- getLIE/extendLIEs: see Note [Hopping the LIE in lazy patterns]
-- Check no existentials
- ; if (null pat_tvs) then return ()
- else lazyPatErr lpat pat_tvs
+ ; unless (null pat_tvs) $ lazyPatErr lpat pat_tvs
-- Check that the pattern has a lifted type
; pat_tv <- newBoxyTyVar liftedTypeKind