packages feed

PlayHangmanGame-0.2: PlayHangmanGame.cabal

-- playHangmanGame.cabal auto-generated by cabal init. For additional
-- options, see
-- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr.
-- The name of the package.
Name:                PlayHangmanGame
Description: 
  Write a program doing
  .
  1. pick a list of words randomly
  .
  2. play hangman agaist each of word
  .
  3. the judgement are:
  - successful rate
  - wrong guess rate
  - running time

Version:             0.2
Synopsis:            Play Hangman Game
Homepage:            freizl.github.com
Copyright:           (c) 2012 Haisheng Wu
License:             BSD3
License-file:        LICENSE
Author:              Haisheng Wu
Maintainer:          freizl@gmail.com
Category:            Game
Build-type:          Simple
Cabal-version:       >=1.6
Data-files:          data/words.list
Extra-source-files:  src/*.hs

Flag Prof
   Description: build with profile enabled
   Default: False

Executable playHangmanGame
  main-is:          main.hs
  hs-source-dirs:   src
  extensions:       ExistentialQuantification, DoAndIfThenElse
                    --  Rank2Types, MultiParamTypeClasses
  build-depends:    base         >= 4.2  && < 5.0,
                    containers   >= 0.4,
                    directory    >= 1.1,
                    mtl          >= 2.0,
                    regex-compat >= 0.95,
                    random       >= 1.0
  -- Other-modules:       
  -- ghc-options: -O2 -prof
  if flag(prof)
    ghc-options: -auto-all -rtsopts


  -- TODO: is it possible add build-depends automatically??