Re: [wxhaskell-users] Importing modules

2010-01-12 Thread Andy Gimblett
If you want ghc to chase dependencies when building an executable, pass it the --make flag, ie try: > ghc --make -v -package wx -o main Main.hs I think this will give you what you need - though I'm assuming those .hi files don't exist, ie you haven't compiled them separately and not told u

Re: [wxhaskell-users] wxhaskell-users Digest, Vol 41, Issue 2

2010-01-12 Thread Fernando Benavides
Mark: That's maybe because in your BlobboControls.hs your are using import BlobboControls where ... instead of module BlobboControls where ... Hope this helps :) On Jan 12, 2010, at 7:18 AM, [email protected] wrote: Fro

Re: [wxhaskell-users] Importing modules

2010-01-12 Thread Malcolm Wallace
> m...@mark-laptop:~/MyCode/Blobbo$ ghc -v -package wx -o main Main.hs > Main.hs:3:0: > Failed to load interface for `BlobboControls': > locations searched: > BlobboControls.hi > BlobboControls.hi-boot You omitted the --make argument to ghc, so it is compiling only Main

[wxhaskell-users] Importing modules

2010-01-12 Thread Mark Norrish
Hello, I'm trying to write a script with wxHaskell involving modules, but GHC doesn't seem able to find them. My program has a main module, Main.hs: module Main where import Graphics.UI.WX import BlobboControls -- Blobbo is a circle one can move around the screen functions... and BlobboControls.