Skip to content

Commit e8508f4

Browse files
authored
Cabal and project tweaks (#2)
1 parent 4037939 commit e8508f4

File tree

5 files changed

+30
-19
lines changed

5 files changed

+30
-19
lines changed

.github/workflows/workflow.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
on: [push, pull_request]
1+
on: [pull_request]
22

33
name: build
44

@@ -21,4 +21,5 @@ jobs:
2121
cabal-version: ${{ matrix.cabal }}
2222

2323
- run: cabal build --only-dependencies -j2
24-
- run: cabal build
24+
- run: cabal install hspec-discover
25+
- run: cabal test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ dist/
1212
codex.tags
1313
*.out
1414
*.eventlog
15+
dist-newstyle/

ChangeLog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Change Log
2+
3+
## [0.0.0.1] - 2017-10-24
4+
5+
Initial release.
6+
7+
[0.0.0.1]: https://github.com/haskell-game/aeson-tiled/releases/tag/v0.0.0.1

aeson-tiled.cabal

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
name: aeson-tiled
22
version: 0.0.1.0
33
synopsis: Aeson instances for the Tiled map editor.
4-
description: The mighty Tiled 2d map editor is an open source
4+
description: The mighty Tiled 2D map editor is an open source
55
app for creating tile based level maps. This package provides
66
types and aeson instances to read Tiled json files.
7-
homepage: https://github.com/schell/aeson-tiled#readme
7+
homepage: https://github.com/haskell-game/aeson-tiled
88
license: BSD3
99
license-file: LICENSE
10+
maintainer: [email protected]
1011
author: Schell Scivally
11-
maintainer: [email protected]
12-
copyright: Copyright: (c) 2017 Schell Scivally
13-
category: Game
12+
copyright: (c) 2017 Schell Scivally
13+
category: Game Engine
1414
build-type: Simple
15-
extra-source-files: README.md
1615
cabal-version: >=1.10
1716

17+
extra-source-files:
18+
README.md,
19+
ChangeLog.md
20+
1821
library
1922
hs-source-dirs: src
2023
exposed-modules: Data.Aeson.Tiled
@@ -26,15 +29,13 @@ library
2629
, vector >= 0.11 && < 1
2730
default-language: Haskell2010
2831

29-
executable aeson-tiled-exe
30-
hs-source-dirs: app
31-
main-is: Main.hs
32-
ghc-options: -threaded -rtsopts -with-rtsopts=-N
33-
build-depends: base
34-
, aeson-tiled
35-
default-language: Haskell2010
32+
flag tests
33+
manual: True
34+
default: False
3635

3736
test-suite aeson-tiled-test
37+
if !flag(tests)
38+
buildable: False
3839
type: exitcode-stdio-1.0
3940
hs-source-dirs: test
4041
main-is: Spec.hs
@@ -46,7 +47,3 @@ test-suite aeson-tiled-test
4647
, bytestring
4748
ghc-options: -threaded -rtsopts -with-rtsopts=-N
4849
default-language: Haskell2010
49-
50-
source-repository head
51-
type: git
52-
location: https://github.com/schell/aeson-tiled

cabal.project

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
packages: .
2+
3+
package aeson-tiled
4+
ghc-options: -Wall -Wcompat
5+
flags: +tests

0 commit comments

Comments
 (0)