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, wrote:

From: Mark Norrish <>
Date: January 12, 2010 5:13:52 AM GMT-03:00
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, Main.hs:

module Main where
import Graphics.UI.WX
import BlobboControls -- Blobbo is a circle one can move around the screen

and BlobboControls.hs containing

import BlobboControls where
import Graphics.UI.WX
more functions...

and when I try to compile it, I get

mark@mark-laptop:~/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/package.conf
hiding package base- to avoid conflict with later version base-
wired-in package ghc-prim mapped to ghc-prim-
wired-in package integer mapped to integer-
wired-in package base mapped to base-
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-
wired-in package syb mapped to syb-
wired-in package template-haskell mapped to template-haskell-
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 ______________