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
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
> 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
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.