[Haskell-cafe] Build failed - hidden package ?

Ian Lynagh igloo at earth.li
Thu Mar 1 19:54:05 EST 2007


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



More information about the Haskell-Cafe mailing list