runghc takes modules from current working directory

2005-08-20 Thread Frederik Eaton
Hi, It seems like it would be nice to have runghc not take modules from the current working directory in many cases since it breaks abstraction. It looks like it may be only a real problem for debugging, when modules are supposed to be in a package somewhere, but aren't, and the current directory

mysterious directory include error

2005-08-20 Thread Frederik Eaton
Here is my program: #!/usr/bin/runghc -i./foo main :: IO () main = do print hi $ runghc --version The Glorious Glasgow Haskell Compilation System, version 6.4 $ ls foo $ ./test.hs interactive:1:85: Failed to load interface for `Main': Could not find module `Main':