[GHC] #15055: ghci - improve error on hidden package

#15055: ghci - improve error on hidden package -------------------------------------+------------------------------------- Reporter: akfp | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.2.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: -------------------------------------+------------------------------------- A user boldly types: {{{
import Data.Foo
<no location info>: error: Could not find module ‘Data.Foo’ It is a member of the hidden package ‘package-foo-0.1.0.0@package- foo-0.1.0.0-5Itxx5SAgKEAspB2MHVKqi’. }}} The above error message is rather useless for a newcomer to ghci. After lots of googling, the user figures that `:set -v -package package-foo` seems to solve it. The original error should be: {{{
import Data.Foo
<no location info>: error: Could not find module ‘Data.Foo’ It is a member of the hidden package ‘package-foo-0.1.0.0@package- foo-0.1.0.0-5Itxx5SAgKEAspB2MHVKqi’. Try :set -package package-foo to make it visible. }}} Or something like that. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15055 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15055: ghci - improve error on hidden package -------------------------------------+------------------------------------- Reporter: akfp | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.2.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: | -------------------------------------+------------------------------------- Comment (by Iceland_jack): Yes strong +1, I've been meaning to create this very ticket -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15055#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15055: ghci - improve error on hidden package -------------------------------------+------------------------------------- Reporter: akfp | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.2.2 Resolution: | Keywords: newcomer 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 osa1): * keywords: => newcomer Comment: +1 from me as well. Would anyone like to offer a patch? Should be a one line change. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15055#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15055: ghci - improve error on hidden package -------------------------------------+------------------------------------- Reporter: akfp | Owner: ckoparkar Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.2.2 Resolution: | Keywords: newcomer 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 ckoparkar): * owner: (none) => ckoparkar Comment: I should have a patch ready shortly. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15055#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15055: ghci - improve error on hidden package -------------------------------------+------------------------------------- Reporter: akfp | Owner: ckoparkar Type: bug | Status: patch Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.2.2 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4621 Wiki Page: | -------------------------------------+------------------------------------- Changes (by ckoparkar): * status: new => patch * differential: => Phab:D4621 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15055#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15055: ghci - improve error on hidden package
-------------------------------------+-------------------------------------
Reporter: akfp | Owner: ckoparkar
Type: bug | Status: patch
Priority: normal | Milestone: 8.6.1
Component: GHCi | Version: 8.2.2
Resolution: | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4621
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#15055: ghci - improve error on hidden package -------------------------------------+------------------------------------- Reporter: akfp | Owner: ckoparkar Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.2.2 Resolution: fixed | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4621 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed Comment: Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15055#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15055: ghci - improve error on hidden package -------------------------------------+------------------------------------- Reporter: akfp | Owner: ckoparkar Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: GHCi | Version: 8.2.2 Resolution: fixed | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4621, Wiki Page: | Phab:D4669 -------------------------------------+------------------------------------- Changes (by ckoparkar): * differential: Phab:D4621 => Phab:D4621, Phab:D4669 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15055#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#15055: ghci - improve error on hidden package
-------------------------------------+-------------------------------------
Reporter: akfp | Owner: ckoparkar
Type: bug | Status: closed
Priority: normal | Milestone: 8.6.1
Component: GHCi | Version: 8.2.2
Resolution: fixed | Keywords: newcomer
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D4621,
Wiki Page: | Phab:D4669
-------------------------------------+-------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC