Build failed - hidden package ?

Hi. I've got stuck with the following compilation error I probably can't fully understand: ---------------------------------------------------------------------- Building library... ... Using package config file: /usr/local/lib/ghc-6.6/package.conf wired-in package base mapped to base-2.0 wired-in package rts mapped to rts-1.0 wired-in package haskell98 mapped to haskell98-1.0 wired-in package template-haskell mapped to template-haskell-2.0 Hsc static flags: -static ... Graphics/UI/SDL/Rotozoomer.hs:15:7: Could not find module `Foreign.C': it is a member of package base, which is hidden ---------------------------------------------------------------------- What does such error mean ? Modules Foreign and Foreign.C are installed and available from the default path. Lines 12-15 of Rotozoomer.hs: ------------------------------------------ module Graphics.UI.SDL.Rotozoomer where import Foreign import Foreign.C ------------------------------------------ Any idea what's wrong, resp. some explanation why compilation fails ? Thanks in an advance. ------------------------------------------ www.icqsms.cz

On Tue, Feb 27, 2007 at 05:36:29AM +0100, Dunric wrote:
Graphics/UI/SDL/Rotozoomer.hs:15:7: Could not find module `Foreign.C': it is a member of package base, which is hidden
This is normally caused by forgetting to include build-depends: base in a .cabal file. When cabal builds a package with GHC it hides all packages and then only exposes those which are listed as dependencies. If you are compiling by hand then add the -package base flag to the commandline. Thanks Ian
participants (2)
-
Dunric
-
Ian Lynagh