[Haskell-cafe] Mystified by Cabal

Colin Paul Adams colin at colina.demon.co.uk
Sat Mar 7 12:30:43 EST 2009


>>>>> "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/
-- 
Colin Adams
Preston Lancashire


More information about the Haskell-Cafe mailing list