From 4e9f58c759f16a3a20c338799a5b83d334c2778d Mon Sep 17 00:00:00 2001 From: sheaf Date: Mon, 28 Jun 2021 17:43:24 +0200 Subject: Use HsExpansion for overloaded list patterns Fixes #14380, #19997 --- compiler/Language/Haskell/Syntax/Pat.hs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'compiler/Language/Haskell/Syntax/Pat.hs') diff --git a/compiler/Language/Haskell/Syntax/Pat.hs b/compiler/Language/Haskell/Syntax/Pat.hs index 75dc7ddd00..4393ad998a 100644 --- a/compiler/Language/Haskell/Syntax/Pat.hs +++ b/compiler/Language/Haskell/Syntax/Pat.hs @@ -92,9 +92,6 @@ data Pat p ------------ Lists, tuples, arrays --------------- | ListPat (XListPat p) [LPat p] - -- For OverloadedLists a Just (ty,fn) gives - -- overall type of the pattern, and the toList --- function to convert the scrutinee to a list value -- ^ Syntactic List -- @@ -153,9 +150,7 @@ data Pat p -- | - 'GHC.Parser.Annotation.AnnKeywordId' : 'GHC.Parser.Annotation.AnnRarrow' -- For details on above see note [exact print annotations] in GHC.Parser.Annotation - | ViewPat (XViewPat p) -- The overall type of the pattern - -- (= the argument type of the view function) - -- for hsPatType. + | ViewPat (XViewPat p) (LHsExpr p) (LPat p) -- ^ View Pattern -- cgit v1.2.1