summaryrefslogtreecommitdiff
path: root/compiler/Language
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/Language')
-rw-r--r--compiler/Language/Haskell/Syntax/Expr.hs12
1 files changed, 2 insertions, 10 deletions
diff --git a/compiler/Language/Haskell/Syntax/Expr.hs b/compiler/Language/Haskell/Syntax/Expr.hs
index 69cb0b6dd0..6491f525fa 100644
--- a/compiler/Language/Haskell/Syntax/Expr.hs
+++ b/compiler/Language/Haskell/Syntax/Expr.hs
@@ -43,7 +43,6 @@ import GHC.Unit.Module (ModuleName)
import GHC.Utils.Outputable
import GHC.Utils.Panic
import GHC.Data.FastString
-import GHC.Core.Type
-- libraries:
import Data.Data hiding (Fixity(..))
@@ -1039,20 +1038,13 @@ patterns in each equation.
-}
data MatchGroup p body
- = MG { mg_ext :: XMG p body -- Post-typechecker, types of args and result
- , mg_alts :: XRec p [LMatch p body] -- The alternatives
- , mg_origin :: Origin }
+ = MG { mg_ext :: XMG p body -- Post-typechecker, types of args and result, and origin
+ , mg_alts :: XRec p [LMatch p body] } -- The alternatives
-- The type is the type of the entire group
-- t1 -> ... -> tn -> tr
-- where there are n patterns
| XMatchGroup !(XXMatchGroup p body)
-data MatchGroupTc
- = MatchGroupTc
- { mg_arg_tys :: [Scaled Type] -- Types of the arguments, t1..tn
- , mg_res_ty :: Type -- Type of the result, tr
- } deriving Data
-
-- | Located Match
type LMatch id body = XRec id (Match id body)
-- ^ May have 'GHC.Parser.Annotation.AnnKeywordId' : 'GHC.Parser.Annotation.AnnSemi' when in a