That's maybe because in your BlobboControls.hs your are using
import BlobboControls where ...
module BlobboControls where ...
Hope this helps :)
On Jan 12, 2010, at 7:18 AM, wxhaskell-users-request@...
> From: Mark Norrish <u4530174@...>
> Date: January 12, 2010 5:13:52 AM GMT-03:00
> To: wxhaskell-users@...
> Subject: [wxhaskell-users] Importing modules
> 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,
> module Main where
> import Graphics.UI.WX
> import BlobboControls -- Blobbo is a circle one can move around the
> and BlobboControls.hs containing
> import BlobboControls where
> import Graphics.UI.WX
> more functions...
> and when I try to compile it, I get
> mark@...:~/MyCode/Blobbo$ ghc -v -package wx -o main Main.hs
> Glasgow Haskell Compiler, Version 6.10.4, for Haskell 98, stage 2
> booted by GHC version 6.10.4
> Using package config file: /usr/lib/ghc-6.10.4/./package.conf
> Using package config file: /home/mark/.ghc/i386-linux-6.10.4/
> hiding package base-126.96.36.199 to avoid conflict with later version
> wired-in package ghc-prim mapped to ghc-prim-0.1.0.0
> wired-in package integer mapped to integer-0.1.0.1
> wired-in package base mapped to base-188.8.131.52
> wired-in package rts mapped to rts-1.0
> wired-in package haskell98 mapped to haskell98-184.108.40.206
> wired-in package syb mapped to syb-0.1.0.1
> wired-in package template-haskell mapped to template-haskell-220.127.116.11
> wired-in package dph-seq[""] not found.
> wired-in package dph-par[""] not found.
> Hsc static flags: -static
> Created temporary directory: /tmp/ghc5654_0
> *** Checking old interface for main:Main:
> *** Parser:
> *** Renamer/typechecker:
> Failed to load interface for `BlobboControls':
> locations searched:
> *** Deleting temp files:
> Deleting: /tmp/ghc5654_0/ghc5654_0.s
> Warning: deleting non-existent /tmp/ghc5654_0/ghc5654_0.s
> *** Deleting temp dirs:
> Deleting: /tmp/ghc5654_0
> Does anyone know why GHC could not BlobboControls.hs, or the module
> in the .hi files?
> Thank you for your time,
> Mark Norrish
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast
> and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev ______________