2016-03-25 08:41:22 +00:00
|
|
|
name: affection
|
|
|
|
|
|
|
|
-- The package version. See the Haskell package versioning policy (PVP)
|
|
|
|
-- for standards guiding when and how versions should be incremented.
|
|
|
|
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
|
|
|
|
-- PVP summary: +-+------- breaking API changes
|
|
|
|
-- | | +----- non-breaking API additions
|
|
|
|
-- | | | +--- code changes with no API change
|
|
|
|
version: 0.0.0.0
|
|
|
|
synopsis: A simple Game Engine using SDL
|
|
|
|
-- description:
|
|
|
|
homepage: https://github.com/nek0/affection#readme
|
|
|
|
license: LGPL-3
|
|
|
|
license-file: LICENSE
|
|
|
|
author: nek0
|
|
|
|
maintainer: nek0@chelnok.de
|
|
|
|
category: Game
|
|
|
|
build-type: Simple
|
|
|
|
|
|
|
|
-- Extra files to be distributed with the package, such as examples or a
|
|
|
|
-- README.
|
|
|
|
-- extra-source-files:
|
|
|
|
|
|
|
|
cabal-version: >=1.10
|
|
|
|
|
2016-05-29 16:01:23 +00:00
|
|
|
source-repository head
|
|
|
|
type: git
|
|
|
|
location: https://github.com/nek0/affection
|
|
|
|
|
|
|
|
flag examples
|
|
|
|
description: Build example programs
|
|
|
|
default: False
|
2016-03-25 08:41:22 +00:00
|
|
|
|
|
|
|
library
|
|
|
|
exposed-modules: Affection
|
2016-12-08 17:22:29 +00:00
|
|
|
, Affection.Draw
|
2016-12-12 02:34:57 +00:00
|
|
|
, Affection.Particle
|
2016-03-26 02:50:39 +00:00
|
|
|
, Affection.Types
|
|
|
|
default-extensions: OverloadedStrings
|
|
|
|
|
2016-03-25 08:41:22 +00:00
|
|
|
-- Modules included in this library but not exported.
|
|
|
|
-- other-modules:
|
|
|
|
|
|
|
|
-- LANGUAGE extensions used by modules in this package.
|
2016-03-26 02:50:39 +00:00
|
|
|
other-extensions: GADTs
|
|
|
|
, KindSignatures
|
|
|
|
, FlexibleInstances
|
|
|
|
, MultiParamTypeClasses
|
|
|
|
, UndecidableInstances
|
2016-03-25 08:41:22 +00:00
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
2016-11-08 04:15:44 +00:00
|
|
|
ghc-options: -Wall
|
2016-03-25 08:41:22 +00:00
|
|
|
-- Other library packages from which modules are imported.
|
2016-10-16 15:01:31 +00:00
|
|
|
build-depends: base >=4.9 && <4.10
|
2016-03-25 08:41:22 +00:00
|
|
|
, sdl2
|
2016-03-25 10:43:31 +00:00
|
|
|
, text
|
2016-03-26 02:50:39 +00:00
|
|
|
, linear
|
|
|
|
, mtl
|
2016-04-26 20:33:35 +00:00
|
|
|
, gegl
|
2016-12-08 17:22:29 +00:00
|
|
|
, babl
|
2016-10-31 22:47:16 +00:00
|
|
|
, monad-loops
|
2016-11-02 00:14:53 +00:00
|
|
|
, clock
|
2016-03-25 10:43:31 +00:00
|
|
|
-- , sdl2-image
|
2016-03-25 08:41:22 +00:00
|
|
|
|
2016-05-29 16:01:23 +00:00
|
|
|
executable example00
|
|
|
|
hs-source-dirs: examples
|
|
|
|
main-is: example00.hs
|
|
|
|
ghc-options: -threaded -Wall
|
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: OverloadedStrings
|
|
|
|
if flag(examples)
|
|
|
|
build-depends: base
|
|
|
|
, affection
|
2016-11-04 15:06:16 +00:00
|
|
|
, sdl2
|
|
|
|
, gegl
|
|
|
|
, babl
|
|
|
|
, containers
|
|
|
|
, mtl
|
2016-05-29 16:01:23 +00:00
|
|
|
else
|
|
|
|
buildable: False
|
|
|
|
|
2016-11-18 15:27:47 +00:00
|
|
|
executable example01
|
|
|
|
hs-source-dirs: examples
|
|
|
|
main-is: example01.hs
|
|
|
|
ghc-options: -threaded -Wall
|
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: OverloadedStrings
|
|
|
|
if flag(examples)
|
|
|
|
build-depends: base
|
|
|
|
, affection
|
|
|
|
, sdl2
|
|
|
|
, gegl
|
|
|
|
, babl
|
|
|
|
, containers
|
|
|
|
, mtl
|
|
|
|
else
|
|
|
|
buildable: False
|
2016-12-11 11:11:58 +00:00
|
|
|
|
|
|
|
executable example02
|
|
|
|
hs-source-dirs: examples
|
|
|
|
main-is: example02.hs
|
|
|
|
ghc-options: -threaded -Wall
|
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: OverloadedStrings
|
|
|
|
if flag(examples)
|
|
|
|
build-depends: base
|
|
|
|
, affection
|
|
|
|
, sdl2
|
|
|
|
, gegl
|
|
|
|
, babl
|
|
|
|
, containers
|
|
|
|
, mtl
|
|
|
|
else
|
|
|
|
buildable: False
|
2016-12-13 10:08:49 +00:00
|
|
|
|
|
|
|
executable example03
|
|
|
|
hs-source-dirs: examples
|
|
|
|
main-is: example03.hs
|
|
|
|
ghc-options: -threaded -Wall
|
|
|
|
default-language: Haskell2010
|
|
|
|
default-extensions: OverloadedStrings
|
|
|
|
if flag(examples)
|
|
|
|
build-depends: base
|
|
|
|
, affection
|
|
|
|
, sdl2
|
|
|
|
, gegl
|
|
|
|
, babl
|
|
|
|
, containers
|
|
|
|
, mtl
|
|
|
|
, random
|
|
|
|
else
|
|
|
|
buildable: False
|