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, wxhaskell-users-requ...@lists.sourceforge.net wrote:

From: Mark Norrish <u4530...@anu.edu.au>
Date: January 12, 2010 5:13:52 AM GMT-03:00
To: wxhaskell-users@lists.sourceforge.net
Subject: [wxhaskell-users] Importing modules


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

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

and when I try to compile it, I get

m...@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-3.0.3.1 to avoid conflict with later version base-4.1.0.0
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-4.1.0.0
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0.1.0
wired-in package syb mapped to syb-0.1.0.1
wired-in package template-haskell mapped to template-haskell-2.3.0.1
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:

Main.hs:3:0:
    Failed to load interface for `BlobboControls':
      locations searched:
        BlobboControls.hi
        BlobboControls.hi-boot
*** 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 ______________

------------------------------------------------------------------------------
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 
_______________________________________________
wxhaskell-users mailing list
wxhaskell-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxhaskell-users

Reply via email to