[commit: ghc] master: Handle ListPat in isStrictPattern (03327bf)

git at git.haskell.org git at git.haskell.org
Thu Aug 17 20:43:42 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/03327bf049acb595c3ba034d16ee5bd0afabe7c4/ghc

>---------------------------------------------------------------

commit 03327bf049acb595c3ba034d16ee5bd0afabe7c4
Author: Alexander Biehl <alexbiehl at gmail.com>
Date:   Fri Aug 11 08:29:23 2017 +0200

    Handle ListPat in isStrictPattern
    
    This fixes #14105.


>---------------------------------------------------------------

03327bf049acb595c3ba034d16ee5bd0afabe7c4
 compiler/rename/RnExpr.hs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/compiler/rename/RnExpr.hs b/compiler/rename/RnExpr.hs
index 6eabc89..3e5c88f 100644
--- a/compiler/rename/RnExpr.hs
+++ b/compiler/rename/RnExpr.hs
@@ -1767,6 +1767,7 @@ isStrictPattern (L _ pat) =
     SigPatIn p _ -> isStrictPattern p
     SigPatOut p _ -> isStrictPattern p
     BangPat{} -> True
+    ListPat{} -> True
     TuplePat{} -> True
     SumPat{} -> True
     PArrPat{} -> True



More information about the ghc-commits mailing list