Browse Source

cabal build support

adaptedStrategy0
Slash 9 years ago
parent
commit
52847f2008
10 changed files with 16 additions and 15 deletions
  1. +10
    -10
      icfp2015.cabal
  2. +4
    -4
      src/Datatypes.hs
  3. +0
    -0
      src/Datatypes/Board.hs
  4. +0
    -0
      src/Datatypes/Cell.hs
  5. +0
    -0
      src/Datatypes/Game.hs
  6. +0
    -0
      src/Datatypes/Unit.hs
  7. +0
    -0
      src/GeneralStrategies.hs
  8. +1
    -1
      src/JSONDeser.hs
  9. +1
    -0
      src/Main0.hs
  10. +0
    -0
      src/ReadString.hs

+ 10
- 10
icfp2015.cabal View File

@ -1,10 +1,10 @@
-- Initial icfp2015.cabal generated by cabal init. For further
-- Initial icfp2015.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/ -- documentation, see http://haskell.org/cabal/users-guide/
-- The name of the package. -- The name of the package.
name: icfp2015 name: icfp2015
-- The package version. See the Haskell package versioning policy (PVP)
-- The package version. See the Haskell package versioning policy (PVP)
-- for standards guiding when and how versions should be incremented. -- for standards guiding when and how versions should be incremented.
-- http://www.haskell.org/haskellwiki/Package_versioning_policy -- http://www.haskell.org/haskellwiki/Package_versioning_policy
-- PVP summary: +-+------- breaking API changes -- PVP summary: +-+------- breaking API changes
@ -51,20 +51,20 @@ cabal-version: >=1.10
executable icfp2015 executable icfp2015
-- .hs or .lhs file containing the Main module. -- .hs or .lhs file containing the Main module.
main-is: Main.hs
main-is: Main0.hs
-- Modules included in this executable, other than Main. -- Modules included in this executable, other than Main.
-- other-modules:
other-modules: Datatypes, Datatypes.Board, Datatypes.Cell, Datatypes.Game, Datatypes.Unit
-- LANGUAGE extensions used by modules in this package. -- LANGUAGE extensions used by modules in this package.
other-extensions: OverloadedStrings, DeriveGeneric, DeriveDataTypeable other-extensions: OverloadedStrings, DeriveGeneric, DeriveDataTypeable
-- Other library packages from which modules are imported. -- Other library packages from which modules are imported.
build-depends: base >=4.7 && <4.8, hashable >=1.2 && <1.3, containers >=0.5 && <0.6, QuickCheck >=2.7 && <2.8, bytestring >=0.10 && <0.11
build-depends: base >=4.7 && <4.8, hashable >=1.2 && <1.3, containers >=0.5 && <0.6, QuickCheck >=2.7 && <2.8, bytestring >=0.10 && <0.11, aeson >=0.8 && <0.9, json >=0.9 && <0.10
-- Directories containing source files. -- Directories containing source files.
-- hs-source-dirs:
hs-source-dirs: src
-- Base language which the package is written in. -- Base language which the package is written in.
default-language: Haskell2010 default-language: Haskell2010

+ 4
- 4
src/Datatypes.hs View File

@ -5,7 +5,7 @@ import qualified Data.List as List
import Data.Set (Set) import Data.Set (Set)
import qualified Data.Set as Set import qualified Data.Set as Set
import Datatypes.Board (Board)
import Datatypes.Cell (Cell)
import Datatypes.Game (Game)
import Datatypes.Unit (Unit)
import Datatypes.Board (Board(..))
import Datatypes.Cell (Cell(..))
import Datatypes.Game (Game(..))
import Datatypes.Unit (Unit(..))

src/Datatypes.Board.hs → src/Datatypes/Board.hs View File


src/Datatypes.Cell.hs → src/Datatypes/Cell.hs View File


src/Datatypes.Game.hs → src/Datatypes/Game.hs View File


src/Datatypes.Unit.hs → src/Datatypes/Unit.hs View File


vm/GeneralStrategies.hs → src/GeneralStrategies.hs View File


+ 1
- 1
src/JSONDeser.hs View File

@ -66,7 +66,7 @@ cellConvVM :: Cell -> DT.Cell
cellConvVM (Cell x y) = (x,y) cellConvVM (Cell x y) = (x,y)
unitConvVM :: Unit -> DT.Unit unitConvVM :: Unit -> DT.Unit
unitConvVM unit = DT.Unit setcell (cellConvVM (pivot unit))
unitConvVM unit = DT.Unit (cellConvVM (pivot unit)) setcell
where where
setcell = Set.fromList (map cellConvVM (members unit)) setcell = Set.fromList (map cellConvVM (members unit))

+ 1
- 0
src/Main0.hs View File

@ -9,6 +9,7 @@ import Datatypes
import Opt import Opt
import JSONDeser import JSONDeser
import Strategy0 import Strategy0
import VM (Command, cmdToString)
data JSONSer = JSONSer { problemId :: Int, data JSONSer = JSONSer { problemId :: Int,
seed :: Int, seed :: Int,


vm/ReadString.hs → src/ReadString.hs View File


Loading…
Cancel
Save