[Haskell-beginners] Module import problem
Casey Rodarmor
caseyrodarmor at gmail.com
Sun Sep 28 11:32:02 EDT 2008
Hi there!
I have a problem with importing a module I'd like to use.
My working directory, ~/proj, contains:
./Haskore -- a folder containing a version of haskore, this music thingy
./test.hs -- random stuff using haskore
The main file in ~/proj/Haskore is ~/proj/Haskore/Haskore.hs, which
contains the following module declaration:
> module Haskore(module HaskoreLoader) where
> import HaskoreLoader
I've tried to put all the following in ~/proj/test.hs, with no luck:
> import Haskore -- Could not find module `Haskore':
> import Haskore.Haskore -- file name does not match module name `Haskore'
Am I doing something wrong? Is there a way to place a module in an
arbitrary directory, without having to modify it?
Thanks so much for your help!
Best,
Casey Rodarmor
More information about the Beginners
mailing list