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,261
    • Issues 5,261
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 565
    • Merge requests 565
  • 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
  • #506
Closed
Open
Issue created Feb 09, 2001 by Manuel M T Chakravarty@mchakravartyReporter

CompManager confused by not compiled .hs files

Version: CVS HEAD from 09/02/2001

When I compile a module 

  import Ptr
  main = print 42

with

  ghc -c -package lang Main.hs

then ghc causes trouble iff I have a file with the name `Ptr.hs' in the current directory.  Instead of using `Ptr'
from -package lang, ghc complains about a missing file `Ptr.hi'.

I can imagine why this is happening and it probably even makes sense for the interactive system; however, it is counter-intuitive for the batch system and diverges from the behaviour of 4.08.

This situation occurs easily in a setup, where I have a version Ptr.hs that my Makefiles arrange to compile in when using 4.08, but omit in favour of the module coming with -package lang when using 4.11.
Trac metadata
Trac field Value
Version None
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
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