[GHC] #15611: scope errors lie about what modules are imported

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Here's Test.hs: {{{ module Test where }}} And here's a ghci session: {{{ % ghci Test.hs GHCi, version 8.4.2: http://www.haskell.org/ghc/ :? for help *Test> Test.foo <interactive>:1:1: error: Not in scope: ‘Test.foo’ No module named ‘Test’ is imported. }}} That "No module named ‘Test’ is imported." part seems blatantly wrong (and persists even if I explicitly `import Test` rather than using the implicit loading of the module). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: RolandSenn Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * owner: (none) => RolandSenn Comment: I'll work on this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: RolandSenn Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #14225 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * related: => #14225 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: RolandSenn Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: make test | TEST="T15611a T15611b" Blocked By: | Blocking: Related Tickets: #14225 | Differential Rev(s): Phab:D5284 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * status: new => patch * testcase: => make test TEST="T15611a T15611b" * differential: => Phab:D5284 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: RolandSenn Type: bug | Status: patch Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: make test | TEST="T15611a T15611b" Blocked By: | Blocking: Related Tickets: #14225 | Differential Rev(s): Phab:D5284 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * milestone: 8.6.1 => 8.8.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15611: scope errors lie about what modules are imported
-------------------------------------+-------------------------------------
Reporter: dmwit | Owner: RolandSenn
Type: bug | Status: patch
Priority: normal | Milestone: 8.8.1
Component: Compiler | Version: 8.4.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case: make test
| TEST="T15611a T15611b"
Blocked By: | Blocking:
Related Tickets: #14225 | Differential Rev(s): Phab:D5284
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Krzysztof Gogolewski

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: RolandSenn Type: bug | Status: closed Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: make test | TEST="T15611a T15611b" Blocked By: | Blocking: Related Tickets: #14225 | Differential Rev(s): Phab:D5284 Wiki Page: | -------------------------------------+------------------------------------- Changes (by monoidal): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: make test | TEST="T15611a T15611b" Blocked By: | Blocking: Related Tickets: #14225 | Differential Rev(s): Phab:D5284 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * owner: RolandSenn => (none) * status: closed => new * resolution: fixed => Comment: While working on #14225 I discoverd that in patch Phab:D5284 I didn't respect the local naming conventions of module [https://github.com/ghc/ghc/blob/cad5d0b69bc039b635a6eb0e5c9ed47d7c5a38ed/com...]: - Top level functions names are in ''camelCase''. - Local function names in where clauses are ''hyphenated-names''. I reopen the ticket to fix this! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: RolandSenn Type: bug | Status: new Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: make test | TEST="T15611a T15611b" Blocked By: | Blocking: Related Tickets: #14225 | Differential Rev(s): Phab:D5284 Wiki Page: | -------------------------------------+------------------------------------- Changes (by RolandSenn): * owner: (none) => RolandSenn -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: RolandSenn Type: bug | Status: patch Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: make test | TEST="T15611a T15611b" Blocked By: | Blocking: Related Tickets: #14225 | Differential Rev(s): Phab:D5284 Wiki Page: | Phab:D5308 -------------------------------------+------------------------------------- Changes (by RolandSenn): * status: new => patch * differential: Phab:D5284 => Phab:D5284 Phab:D5308 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15611: scope errors lie about what modules are imported
-------------------------------------+-------------------------------------
Reporter: dmwit | Owner: RolandSenn
Type: bug | Status: patch
Priority: normal | Milestone: 8.8.1
Component: Compiler | Version: 8.4.2
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case: make test
| TEST="T15611a T15611b"
Blocked By: | Blocking:
Related Tickets: #14225 | Differential Rev(s): Phab:D5284
Wiki Page: | Phab:D5308
-------------------------------------+-------------------------------------
Comment (by Krzysztof Gogolewski

#15611: scope errors lie about what modules are imported -------------------------------------+------------------------------------- Reporter: dmwit | Owner: RolandSenn Type: bug | Status: closed Priority: normal | Milestone: 8.8.1 Component: Compiler | Version: 8.4.2 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: make test | TEST="T15611a T15611b" Blocked By: | Blocking: Related Tickets: #14225 | Differential Rev(s): Phab:D5284 Wiki Page: | Phab:D5308 -------------------------------------+------------------------------------- Changes (by monoidal): * status: patch => closed * resolution: => fixed -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15611#comment:11 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC