
Hi I am learnig Haskell form SOE book, but I can't find out how to import SOE module. I use eclipsefp IDE and I get no error when I have SOE.hs in my project and in SimpleGraphics.hs I make "import SOE". But when trying to run it I get error: "Could not find module `SOE': Use -v to see a list of the files searched for." Where ghc/ghci search for modules? Is it possible put some modules somewhere that every Haskell project can find it (something as global classpath in java). And is it posible in eclipsefp to link some modules to project that this project will use them. As I wrote even when I have 2 modules in src in project I when trying to run one of then the others are not found. I can't find any site about searching for modules (in java there is a lot options, global/local classpath, directory in java runtime used only with this rt or directory in web server used in all apps run on this server...). Can you put a link? Thanks Fero -- View this message in context: http://www.nabble.com/Searchig-for-modules-tp18505770p18505770.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

Actually I have already found the way how to do it but not in eclipsefp. Either I run ghci and when both modules are in the same dir it works or I use "-idirs" but in eclipsefp it doesn't. Can somebody help me how to configure eclipsefp. I don't want to go to command prompt every time I want to run my program. Fero -- View this message in context: http://www.nabble.com/Searchig-for-modules-tp18505770p18506257.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

fero wrote:
Actually I have already found the way how to do it but not in eclipsefp. Either I run ghci and when both modules are in the same dir it works or I use "-idirs" but in eclipsefp it doesn't. Can somebody help me how to configure eclipsefp. I don't want to go to command prompt every time I want to run my program.
I don't know anything about IDEs, but... ghc --make, should work to find the module on the command-line, and so should `runghc` (like interpreter but runs 'main'). There is also a way to install it more globally but I'm not sure what is a simple way to do that (it could involve making a .cabal file, I think) -Isaac

It works when I put "-idirs c:\eworkspace2\Soe\src\SOE" to extra compiler
options and set GHCi to use GHC setting, but you need to restart ecpilse.
And the module, wht is loaded is SOE so I always need to switch module..
Fero
On Thu, Jul 17, 2008 at 1:18 PM, fero
Actually I have already found the way how to do it but not in eclipsefp. Either I run ghci and when both modules are in the same dir it works or I use "-idirs" but in eclipsefp it doesn't. Can somebody help me how to configure eclipsefp. I don't want to go to command prompt every time I want to run my program.
Fero -- View this message in context: http://www.nabble.com/Searchig-for-modules-tp18505770p18506257.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
fero
-
frantisek kocun
-
Isaac Dupree