Skip to content

GHCi removes source files!!

GHCi removes source files on windows under
certain circumstances! Of course, this is very
bad when it actually happens.

It happens when loading a source file in a
subdirectory, i.e.

> ghci -package wx  wx\HelloWorld.hs
[snip]
Loading package wx ... linking ... done.
Compiling Main             ( wx/HelloWorld.hs, interpreted )
Ok, modules loaded: Main.
*Main> :q
Leaving GHCi.

>ghci -package wx  wx\HelloWorld.hs
[snip]
Loading package wx ... linking ... done.
can't find file `wx\HelloWorld.hs'


It only happens when using the normal windows prompt.
It doesn't happen when using 'bash' (with cygwin).

Nice bug for an interpreter :-)
  -- Daan.

(daanleijen@xs4all.nl)
Trac metadata
Trac field Value
Version 6.0
Type Bug
TypeOfFailure OtherFailure
Priority highest
Resolution ResolvedDuplicate
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