packages feed

labyrinth-0.1.5.1: labyrinth.cabal

name:                labyrinth
version:             0.1.5.1
synopsis:            A complicated turn-based game
description:         Players take turns in a labyrinth, competing with each
                     other to pick a treasure and carry it out. They only know
                     everyone's moves and responses, but do not see the map and
                     must deduce it themselves.
homepage:            https://github.com/koterpillar/labyrinth
license:             MIT
license-file:        LICENSE
author:              Alexey Kotlyarov
maintainer:          koterpillar@gmail.com
category:            Game
build-type:          Simple
cabal-version:       >=1.8

source-repository head
  type:                git
  location:            git://github.com/koterpillar/labyrinth.git

flag static
  description:         Link the binary statically
  default:             False

library
  build-depends:       base >= 4.5 && < 4.7
                     , mtl ==2.1.*
                     , template-haskell >= 2.7 && < 2.9
                     , lens ==3.8.*
                     , filepath ==1.3.*
                     , derive ==2.5.*
                     , safecopy ==0.8.*
                     , parsec ==3.1.*
                     , containers >= 0.4 && < 0.6
                     , random ==1.0.*
                     , text ==0.11.*
                     , transformers ==0.3.*
                     , MonadRandom ==0.1.*
                     , monad-loops ==0.3.*
  hs-source-dirs:      src
  exposed-modules:     Labyrinth
                     , Labyrinth.Action
                     , Labyrinth.Common
                     , Labyrinth.Generate
                     , Labyrinth.Map
                     , Labyrinth.Move
                     , Labyrinth.Reachability
                     , Labyrinth.Read
                     , Labyrinth.Show

executable labyrinth-server
  main-is:             LabyrinthServer.hs
  other-modules:       LabyrinthServer.Data
                     , Labyrinth
                     , Labyrinth.Action
                     , Labyrinth.Common
                     , Labyrinth.Generate
                     , Labyrinth.Map
                     , Labyrinth.Move
                     , Labyrinth.Reachability
                     , Labyrinth.Read
                     , Labyrinth.Show
  build-depends:       base >= 4.5 && < 4.7
                     , mtl ==2.1.*
                     , template-haskell >= 2.7 && < 2.9
                     , lens ==3.8.*
                     , filepath ==1.3.*
                     , acid-state ==0.8.*
                     , happstack-server ==7.1.*
                     , derive ==2.5.*
                     , safecopy ==0.8.*
                     , parsec ==3.1.*
                     , containers >= 0.4 && < 0.6
                     , random ==1.0.*
                     , text ==0.11.*
                     , transformers ==0.3.*
                     , MonadRandom ==0.1.*
                     , json ==0.7.*
                     , monad-loops ==0.3.*
  hs-source-dirs:      src
  if (flag(static))
    ghc-options:       -static -optl-pthread -optl-static

test-Suite tests
  type:                exitcode-stdio-1.0
  main-is:             Main.hs
  build-depends:       base >= 4.5 && < 4.7
                     , mtl ==2.1.*
                     , template-haskell >= 2.7 && < 2.9
                     , lens ==3.8.*
                     , filepath ==1.3.*
                     , acid-state ==0.8.*
                     , happstack-server ==7.1.*
                     , derive ==2.5.*
                     , safecopy ==0.8.*
                     , parsec ==3.1.*
                     , containers >= 0.4 && < 0.6
                     , random ==1.0.*
                     , text ==0.11.*
                     , transformers ==0.3.*
                     , MonadRandom ==0.1.*
                     , json ==0.7.*
                     , monad-loops ==0.3.*
                     , HTF ==0.10.*
                     , HUnit ==1.2.*
                     , QuickCheck >=2.6 && < 2.7
  hs-source-dirs:      src, testsuite