Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,249
    • Issues 5,249
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 575
    • Merge requests 575
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • 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
  • #544
Closed
Open
Issue created May 17, 2001 by sewardj@trac-sewardj

user-visible env in GHCi sometimes wrong

Let M be the head module of a multi-module project.  
First compile M and all below it to objects:
   ghc --make M
Now start an interactive session with M:
   ghc --interactive M
ghci loads object code for M and all dependencies.  
Unfortunately the top-level env is then stuffed,
so that, for example
   1 + 2
yields
   <no file>:0: Variable not in scope: `+'
This doesn't happen if any of the modules have been 
compiled to bytecode, which inclines me to believe 
this is some difficulty with the renamer/typechecker.

This happens in the just-about-to-be-released 5.00.1 
sources, and probably the HEAD too.
Trac metadata
Trac field Value
Version 5.0
Type Bug
TypeOfFailure OtherFailure
Priority high
Resolution ResolvedWon'tFix
Component Compiler
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