2008-12-13 18:48:33 UTC
I start a new haskell project and make two files
module Foo where ...
and
module Bar where
import Foo ...
The above builds with no errors (for all well defined modules Foo and Bar). The trouble comes for me with loading Bar. If I load Bar in hugs from eclipse, fine no problem, but if i load Bar in GHCi, I get the error,
"could not find module 'Foo', Use -v to see a list of the files searched for."
Then I open a terminal and change into the directory, and
"GHCi Bar", and the file is loaded and linked no problem. I don't mind using hugs, but for things like graphics it is inadequate. I have tried enabling the checkbox for use ghc compiler settings for ghci, under windows>preferences>functional programming>interpreter>gchi but that did not help. Is there a way to get these files to load from inside EclipseFP?
In case it helps, I use Ubuntu 8.04, and installed both hugs and GHC through apt-get. Also, the output from ghc-pkg -l is
" Cabal-1.2.3.0, GLFW-0.3, OpenGL-2.2.1.1, QuickCheck-1.1.0.0,
WordNet-0.1.2, array-0.1.0.0, base-3.0.1.0, bytestring-0.9.0.1,
containers-0.1.0.1, directory-1.0.0.0, filepath-1.1.0.0,
(ghc-6.8.2), haskell98-1.0.1.0, hpc-0.5.0.0, mtl-1.1.0.0,
old-locale-1.0.0.0, old-time-1.0.0.0, packedstring-0.1.0.0,
parsec-2.1.0.0, pretty-1.0.0.0, process-1.0.0.0, random-1.0.0.0,
readline-1.0.1.0, rts-1.0, template-haskell-2.2.0.0, unix-2.3.0.0
"
By the way, I really like the eclipsefp environment, and thank you for your past help.