[GHC] #16212: API Annotations: Parens not attached correctly for ClassDecl

#16212: API Annotations: Parens not attached correctly for ClassDecl -------------------------------------+------------------------------------- Reporter: alanz | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.3 (Parser) | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Incorrect API Unknown/Multiple | annotation Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- For the file {{{#!hs module ClassParens where class LiftingMonad (trans :: MTrans) where proof :: Monad m :- Monad (trans m) class LiftingMonad2 ((trans :: MTrans)) where proof :: Monad m :- Monad (trans m) }}} The parens around the kinded tyvars should be attached to the class declaration as a whole, they are attached to the tyvar instead, outside the span. An annotation must always be within the span it is contained in. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16212 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16212: API Annotations: Parens not attached correctly for ClassDecl -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.3 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect API | Unknown/Multiple annotation | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by alanz): * owner: (none) => alanz -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16212#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16212: API Annotations: Parens not attached correctly for ClassDecl -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.3 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect API | Unknown/Multiple annotation | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by alanz): Note: this is correcting a change brought in accidentally by bace26aadaafa4064e78f9ed088c1e2217221acc These kinds of regressions should be picked up in future by the more stringent test introduced in #16217 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16212#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16212: API Annotations: Parens not attached correctly for ClassDecl -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.3 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect API | Unknown/Multiple annotation | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by alanz): Gitlab merge request is open at https://gitlab.haskell.org/ghc/ghc/merge_requests/205 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16212#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16212: API Annotations: Parens not attached correctly for ClassDecl -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.3 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect API | Unknown/Multiple annotation | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by alanz): It was merged into master via https://gitlab.haskell.org/ghc/ghc/merge_requests/244 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16212#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16212: API Annotations: Parens not attached correctly for ClassDecl -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.3 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect API | Unknown/Multiple annotation | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by sgraf): It seems the patch from the MR was incompletely applied. https://gitlab.haskell.org/ghc/ghc/commit/4bf35da4fccd2a21153a1c19bfa80006e9... landed on master, whereas https://gitlab.haskell.org/ghc/ghc/merge_requests/205/diffs?commit_id=5e0e60... is the diff that was referenced in the MR. The latter passed the tests, but the former breaks CI because T16212 is not marked as expected to pass. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16212#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16212: API Annotations: Parens not attached correctly for ClassDecl -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.3 (Parser) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect API | Unknown/Multiple annotation | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by sgraf): This is the diff of the two diffs: {{{#!patch --- /tmp/orig.diff 2019-01-31 15:46:25.327999736 +0100 +++ /tmp/master.diff 2019-01-31 15:52:36.222476816 +0100 @@ -253,24 +253,17 @@ + +data Foo (a) b = Foo { av :: a, bv :: b } diff --git a/testsuite/tests/ghc-api/annotations/all.T b/testsuite/tests /ghc-api/annotations/all.T -index 49f0780021..4bb72926ca 100644 +index 97c3c60c21..8002630b53 100644 --- a/testsuite/tests/ghc-api/annotations/all.T +++ b/testsuite/tests/ghc-api/annotations/all.T -@@ -38,8 +38,7 @@ test('T10399', [extra_files(['Test10399.hs']), - ignore_stderr], run_command, ['$MAKE -s --no-print- directory T10399']) +@@ -38,9 +38,7 @@ test('T10399', [extra_files(['Test10399.hs']), + ignore_stderr], makefile_test, ['T10399']) test('T10313', [extra_files(['Test10313.hs', 'stringSource.hs']), - ignore_stderr], run_command, ['$MAKE -s --no-print- directory T10313']) + ignore_stderr], makefile_test, ['T10313']) -# Stricter tests from trac #16217 now causes this to fail. Will be fixed for trac #16212 --test('T11018', [expect_broken(11018),extra_files(['Test11018.hs']), +-test('T11018', [expect_broken(11018), +- extra_files(['Test11018.hs']), +test('T11018', [extra_files(['Test11018.hs']), - ignore_stderr], run_command, ['$MAKE -s --no-print- directory T11018']) + ignore_stderr], makefile_test, ['T11018']) test('bundle-export', [extra_files(['BundleExport.hs']), - ignore_stderr], run_command, ['$MAKE -s --no- print-directory bundle-export']) -@@ -60,6 +59,5 @@ test('T13163', [extra_files(['Test13163.hs']), - ignore_stderr], run_command, ['$MAKE -s --no-print- directory T13163']) - test('T15303', [extra_files(['Test15303.hs']), - ignore_stderr], run_command, ['$MAKE -s --no-print- directory T15303']) --# Stricter tests from trac #16217 now causes this to fail. Will be fixed for trac #16212 --test('T16212', [expect_broken(16212),extra_files(['Test16212.hs']), -+test('T16212', [extra_files(['Test16212.hs']), - ignore_stderr], run_command, ['$MAKE -s --no-print- directory T16212']) + ignore_stderr], makefile_test, ['bundle-export']) }}} Appearently `makefile_test` is a new short-hand for `$MAKE -s --no-print- directory {target}` and the bottom part just re-activates T16212. I re-applied that part in https://gitlab.haskell.org/ghc/ghc/merge_requests/266. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16212#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16212: API Annotations: Parens not attached correctly for ClassDecl -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: closed Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.6.3 (Parser) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect API | Unknown/Multiple annotation | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by sgraf): * status: new => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16212#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#16212: API Annotations: Parens not attached correctly for ClassDecl
-------------------------------------+-------------------------------------
Reporter: alanz | Owner: alanz
Type: bug | Status: closed
Priority: normal | Milestone: 8.8.1
Component: Compiler | Version: 8.6.3
(Parser) |
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Incorrect API | Unknown/Multiple
annotation | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC