[GHC] #10446: Fix error message when variables in a static form are not in scope

#10446: Fix error message when variables in a static form are not in scope -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez | facundo.dominguez Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Keywords: | Operating System: Unknown/Multiple StaticPointers | Type of failure: None/Unknown Architecture: | Blocked By: Unknown/Multiple | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- If an identifier is out-of-scope but inside a static form ({{{static f}}}) then GHC says expression not closed, when really it should just say identifier out of scope. {{{ t.hs:6:5: error: Only identifiers of top-level bindings can appear in the body of the static form: static f but the following identifiers were found instead: f }}} We just want: {{{ t.hs:6:12: error: Not in scope: ‘f’ }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10446 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10446: Fix error message when variables in a static form are not in scope -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez | facundo.dominguez Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | StaticPointers Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: Phab: D906 -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * status: new => patch * differential: => Phab: D906 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10446#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10446: Fix error message when variables in a static form are not in scope -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez | facundo.dominguez Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | StaticPointers Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: Phab:D906 -------------------------------------+------------------------------------- Changes (by facundo.dominguez): * differential: Phab: D906 => Phab:D906 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10446#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10446: Fix error message when variables in a static form are not in scope
-------------------------------------+-------------------------------------
Reporter: | Owner:
facundo.dominguez | facundo.dominguez
Type: bug | Status: patch
Priority: normal | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | StaticPointers
Type of failure: None/Unknown | Architecture:
Blocked By: | Unknown/Multiple
Related Tickets: | Test Case:
| Blocking:
| Differential Revisions: Phab:D906
-------------------------------------+-------------------------------------
Comment (by Austin Seipp
g = static f
now produces only:
...: error Not in scope: 'f'
Before it would also produce a complaint about 'f' not being a top-level identifier. Test Plan: validate Reviewers: austin Reviewed By: austin Subscribers: bgamari, thomie, mboes Differential Revision: https://phabricator.haskell.org/D906 GHC Trac Issues: #10446 }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10446#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10446: Fix error message when variables in a static form are not in scope -------------------------------------+------------------------------------- Reporter: | Owner: facundo.dominguez | facundo.dominguez Type: bug | Status: closed Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | StaticPointers Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: Phab:D906 -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Merged to `ghc-7.10`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10446#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC