[Git][ghc/ghc][wip/21101] Apply 1 suggestion(s) to 1 file(s)
Sasha Bogicevic pushed to branch wip/21101 at Glasgow Haskell Compiler / GHC Commits: 7314b405 by Sasha Bogicevic at 2026-07-19T17:46:57+00:00 Apply 1 suggestion(s) to 1 file(s) Co-authored-by: sheaf <sam.derbyshire@gmail.com> - - - - - 1 changed file: - compiler/GHC/Tc/Errors/Types.hs Changes: ===================================== compiler/GHC/Tc/Errors/Types.hs ===================================== @@ -825,9 +825,6 @@ data TcRnMessage where worded accordingly. Constructors with no fields at all do not trigger this error: since GHC proposal 496 ("Nullary record wildcards"), @C {..}@ is legal for nullary constructors. - The 'VisArity' field records the constructor's number of positional arguments - which the suggested fix mentions. - Example(s): data D = D Int Bool @@ -845,7 +842,11 @@ data TcRnMessage where rename/should_fail/T9815bghci.hs rename/should_fail/T21101.hs -} - TcRnIllegalWildcardsInConstructor :: !RecordFieldPart -> !Name -> !VisArity -> TcRnMessage + TcRnIllegalWildcardsInConstructor + :: !RecordFieldPart -- ^ context in which the constructor application occurs + -> !Name -- ^ name of the constructor + -> !VisArity -- ^ arity of the constructor + -> TcRnMessage {-| TcRnIgnoringAnnotations is a warning that occurs when the source code contains annotation pragmas but the platform in use does not support an View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7314b40552df312244e074bf17d42931... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/7314b40552df312244e074bf17d42931... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Sasha Bogicevic (@Bogicevic)