Opened 11 years ago

Closed 10 years ago

Last modified 9 years ago

#1206 closed bug (duplicate)

"Bad interface file: System/IO.hi" in ghci when ./System/IO.hs exists

Reported by: jyasskin Owned by:
Priority: normal Milestone: 6.8.1
Component: GHCi Version: 6.6
Keywords: Cc: jyasskin@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


I ran into this when trying to ghci a module in the base library (from, but it seems that ghci just gets confused if System/IO.hs exists under the current directory. For my purposes, it's easy enough to work around by copying the module I actually want to work on out to another directory.

jyasskin-mac:~/Temp/bug jyasskin$ mkdir System
jyasskin-mac:~/Temp/bug jyasskin$ touch System/IO.hs
jyasskin-mac:~/Temp/bug jyasskin$ cp ~/src/ghc/HEAD/ghc/libraries/base/Data/Monoid.hs .
jyasskin-mac:~/Temp/bug jyasskin$ mkdir Data
jyasskin-mac:~/Temp/bug jyasskin$ mv Monoid.hs Data/
jyasskin-mac:~/Temp/bug jyasskin$ ghci Data/Monoid.hs 
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.6, for Haskell 98.
/ /_\\/ __  / /___| |
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ... done.

    Bad interface file: System/IO.hi
        System/IO.hi: openBinaryFile: does not exist (No such file or directory)
ghc-6.6: panic! (the 'impossible' happened)
  (GHC version 6.6 for powerpc-apple-darwin):

Please report this as a GHC bug:

jyasskin-mac:~/Temp/bug jyasskin$ find .
jyasskin-mac:~/Temp/bug jyasskin$ 

Change History (5)

comment:1 Changed 11 years ago by igloo

Architecture: powerpcMultiple
Milestone: 6.8
Operating System: MacOS XMultiple

I agree that this would be a nice thing to fix.

comment:2 Changed 10 years ago by simonmar

Resolution: duplicate
Status: newclosed

dup of #1119

comment:3 Changed 10 years ago by igloo

Milestone: 6.8 branch6.8.1

comment:4 Changed 9 years ago by simonmar

Architecture: MultipleUnknown/Multiple

comment:5 Changed 9 years ago by simonmar

Operating System: MultipleUnknown/Multiple
Note: See TracTickets for help on using tickets.