[Haskell-cafe] Mystified by Cabal

Robin Green greenrd at greenrd.org
Sat Mar 7 12:43:47 EST 2009


On Sat, 07 Mar 2009 17:30:43 +0000
Colin Paul Adams <colin at colina.demon.co.uk> wrote:

> >>>>> "Svein" == Svein Ove Aas <svein.ove at aas.no> writes:
> 
>     >> Preprocessing library game-tree-1.0.0.0...  Building
>     >> game-tree-1.0.0.0...
>     >> 
>     >> 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-3.0.3.0, which
>     >> is hidden
>     >> 
>     Svein> What does your .cabal file look like?
> 
> name:                game-tree
> version:             1.0.0.0
> cabal-version:       >= 1.6
> synopsis:            Searching game trees with alpha-beta pruning
> description:         A data type for game trees, as used in decision
> theory and game theory, along with standard algorithms for searching
> the tree using alpha-beta pruning. Can be used as the basis of an AI
> for two-player zero-sum  games, such as chess. category:
> Data license:             GPL
> license-file:        LICENSE
> author:              Colin Adams
> maintainer:          colin at colina.demon.co.uk
> copyright:           Copyright: 2009 Colin Adams
> build-type:          Simple
> build-depends:       base >= 4
> ghc-options:         -Wall -fno-warn-unrecognised-pragmas
> 
> Library
>  exposed-modules:     Data.Tree.Game.Tree, Data.Tree.Game.Negascout
> source-repository head
>  type: darcs
>  location: http://code.haskell.org/game-tree/

The build-depends line needs to go in the Library section, I think. It
doesn't seem to be having any effect in its current location. Likewise
for ghc-options.
-- 
Robin


More information about the Haskell-Cafe mailing list