[ ghc-Bugs-435537 ] file location problems in ghci
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 28 Jun 2001 06:00:45 -0700
Bugs item #435537, was opened at 2001-06-22 11:24
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=435537&group_id=8032
>Category: Compiler
Group: 5.00
>Status: Closed
>Resolution: Fixed
Priority: 3
Submitted By: Leon Smith (lsmith)
>Assigned to: Simon Marlow (simonmar)
Summary: file location problems in ghci
Initial Comment:
This bug isn't that important, but it is a little
odd. If I try to run GHCi in the directory where the
prelude .hi files are, it can't find the interface
files. I don't know of any other directories where
this phenomenom occurs, although I did try a number of
the other directories off imports.
lps@peace:/usr/local/lib/ghc-5.00.2/imports/std$ ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version
5.00.2, For Haskell 98.
/ /_\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package std ... linking ... done.
<no file>:0:
failed to load interface for `IO': Module `IO' is
not loaded
<no file>:0: Variable not in scope: `IO.hFlush'
<no file>:0:
failed to load interface for `PrelHandle':
Module `PrelHandle' is not loaded
<no file>:0: Variable not in scope: `PrelHandle.stderr'
ghc-5.00.2: panic! (the `impossible' happened, GHC
version 5.00.2):
interactiveUI:stderr
Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2001-06-28 06:00
Message:
Logged In: YES
user_id=48280
The bug is caused by the fact that the standard import path
(i.e. "." by default) overlaps with the import path for
package std.
We've fixed it so that home package interfaces are ignored
when using ghci or ghc --make, with the result that cd'ing
into ghc/lib/std and starting ghci will just work.
----------------------------------------------------------------------
Comment By: Leon Smith (lsmith)
Date: 2001-06-26 00:47
Message:
Logged In: YES
user_id=251909
Ahh yes... I have the same problem in
/usr/local/src/ghc-5.00.2/ghc/lib/std
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=108032&aid=435537&group_id=8032