Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,390
    • Issues 4,390
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 373
    • Merge Requests 373
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #2636

Closed
Open
Opened Oct 01, 2008 by Neil Mitchell@ndmitchellReporter

Error message for missing import substantially worse in 6.9/6.11

Creating a file Test.hs:

import Foo
main = print "hello"

where Foo does not exist, used to give a really nice error (with 6.8.3) but with 6.9 and 6.11 gives a horrible error message:

$ runghc Test
*** Exception: Could not find module `Foo':
  Use -v to see a list of the files searched for.
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.11.20080929

Compared to version 6.8.3:

$ runghc Test.hs

Test.hs:2:7:
    Could not find module `Foo':
      Use -v to see a list of the files searched for.

A much nicer error, importantly saying where the import was - in my case the import was in an imported module, so I didn't even know which file was causing the error.

Trac metadata
Trac field Value
Version 6.9
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
Assignee
Assign to
6.10.1
Milestone
6.10.1
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#2636