[Haskell-cafe] Mystified by Cabal

Don Stewart dons at galois.com
Sat Mar 7 13:15:01 EST 2009

> I have just attempted Cabal-izing my program (splitting it into a
> library and main program as well), and I'm mystified by some problems
> I am having.
> First, when I try to build the library I get:
> [colin at susannah game-tree]$ runhaskell Setup build
> Preprocessing library game-tree-
> Building game-tree-
> Data/Tree/Game/Negascout.hs:31:0: Unrecognised pragma
> [1 of 2] Compiling Data.Tree.Game.Tree ( Data/Tree/Game/Tree.hs, dist/build/Data/Tree/Game/Tree.o )
> Data/Tree/Game/Tree.hs:1:0:
>     Failed to load interface for `Prelude':
>       it is a member of package base-, which is hidden

build-depends: base

You certainly depend on the base library, unless you're doing only
haskell98 work.

More information about the Haskell-Cafe mailing list