Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 5.5k
    • Issues 5.5k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 629
    • Merge requests 629
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #15055
Closed
Open
Issue created Apr 19, 2018 by Alexander Kjeldaas@alexanderkjeldaasReporter

ghci - improve error on hidden package

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.

Trac metadata
Trac field Value
Version 8.2.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component GHCi
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking