Skip to content

mg_arg_tys in MatchGroup should be a PostTc field

It appears that mg_arg_tys is only populated after typechecking but the type does not indicate this.

Instead of

mg_arg_tys :: [PostTc p Type]

the type should be

mg_arg_tys :: PostTc p [Type]

All that needs doing is modifying this type in compiler/HsSyn/HsExpr.hs and then fixing the resulting compiler errors.

Trac metadata
Trac field Value
Version 8.2.2
Type Task
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information