[GHC] #10315: ApiAnnotations : Empty context loses annotations

#10315: ApiAnnotations : Empty context loses annotations -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Keywords: | Operating System: Unknown/Multiple ApiAnnotations | Type of failure: None/Unknown Architecture: | Blocked By: Unknown/Multiple | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- A type signature of the form {{{#!hs bar :: ( ) => a-> Bool }}} generates annotations for the `( ) =>` but the SrcSpan they are attached to is discarded so the annotations are not attached to the AST. The discarding process happens in {{{#!hs mkHsForAllTy exp tvs (L _ []) ty = mk_forall_ty exp tvs ty }}} where the empty located context is discarded. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10315 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10315: ApiAnnotations : Empty context loses annotations -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: Phab:855 -------------------------------------+------------------------------------- Changes (by alanz): * differential: => Phab:855 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10315#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10315: ApiAnnotations : Empty context loses annotations -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: Phab:855 -------------------------------------+------------------------------------- Changes (by alanz): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10315#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10315: ApiAnnotations : Empty context loses annotations -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: #10354 | Test Case: | Blocking: | Differential Revisions: Phab:855 -------------------------------------+------------------------------------- Changes (by alanz): * related: => #10354 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10315#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10315: ApiAnnotations : Empty context loses annotations -------------------------------------+------------------------------------- Reporter: alanz | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: #10354 | Test Case: | Blocking: | Differential Revisions: | Phab:855,Phab:868 -------------------------------------+------------------------------------- Changes (by alanz): * owner: alanz => * status: patch => new * differential: Phab:855 => Phab:855,Phab:868 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10315#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10315: ApiAnnotations : Empty context loses annotations -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: #10354 | Test Case: | Blocking: | Differential Revisions: | Phab:855,Phab:868 -------------------------------------+------------------------------------- Changes (by alanz): * owner: => alanz -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10315#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10315: ApiAnnotations : Empty context loses annotations -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: closed Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: #10354 | Test Case: | Blocking: | Differential Revisions: Phab:D836 | Phab:D868 -------------------------------------+------------------------------------- Changes (by alanz): * status: new => closed * differential: Phab:855,Phab:868 => Phab:D836 Phab:D868 * resolution: => duplicate -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10315#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10315: ApiAnnotations : Empty context loses annotations
-------------------------------------+-------------------------------------
Reporter: alanz | Owner: alanz
Type: bug | Status: closed
Priority: normal | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: duplicate | Keywords:
Operating System: Unknown/Multiple | ApiAnnotations
Type of failure: None/Unknown | Architecture:
Blocked By: | Unknown/Multiple
Related Tickets: #10354 | Test Case:
| Blocking:
| Differential Revisions: Phab:D836
| Phab:D868
-------------------------------------+-------------------------------------
Comment (by Alan Zimmerman

#10315: ApiAnnotations : Empty context loses annotations
-------------------------------------+-------------------------------------
Reporter: alanz | Owner: alanz
Type: bug | Status: closed
Priority: normal | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: duplicate | Keywords:
Operating System: Unknown/Multiple | ApiAnnotations
Type of failure: None/Unknown | Architecture:
Blocked By: | Unknown/Multiple
Related Tickets: #10354 | Test Case:
| Blocking:
| Differential Revisions: Phab:D836
| Phab:D868
-------------------------------------+-------------------------------------
Comment (by Alan Zimmerman
participants (1)
-
GHC