From: Fernando B. <gre...@gm...> - 2010-01-12 11:58:01
|
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, wxh...@li... wrote: > From: Mark Norrish <u45...@an...> > Date: January 12, 2010 5:13:52 AM GMT-03:00 > To: wxh...@li... > 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 > > 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-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 ______________ |