Skip to content

Commit 36b05b2

Browse files
Merge pull request #108 from chrisdone/cd/2025-10-14-tests
Add a test suite and treefmt
2 parents 22de6db + f301368 commit 36b05b2

File tree

3 files changed

+168
-71
lines changed

3 files changed

+168
-71
lines changed

hell.cabal

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,43 @@ executable hell
2626
, bytestring
2727
, constraints
2828
, containers
29+
, criterion
30+
, criterion-measurement
31+
, directory
32+
, ghc-prim
33+
, haskell-src-exts
34+
, hspec
35+
, lucid2
36+
, mtl
37+
, optparse-applicative
38+
, syb
39+
, template-haskell
40+
, temporary
41+
, text
42+
, th-lift
43+
, th-orphans
44+
, these
45+
, time
46+
, typed-process
47+
, unliftio
48+
, vector
49+
default-language: Haskell2010
50+
51+
test-suite hell-test
52+
type: exitcode-stdio-1.0
53+
main-is: src/Hell.hs
54+
other-modules:
55+
Paths_hell
56+
ghc-options: -Wall -Wno-missing-pattern-synonym-signatures -O2 -main-is Main.specMain -threaded -rtsopts
57+
build-depends:
58+
QuickCheck
59+
, aeson
60+
, async
61+
, base
62+
, bytestring
63+
, constraints
64+
, containers
65+
, criterion
2966
, criterion-measurement
3067
, directory
3168
, ghc-prim

package.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ dependencies:
1313
- bytestring
1414
- async
1515
- criterion-measurement
16+
- criterion
1617
- mtl
1718
- directory
1819
- syb
@@ -43,3 +44,12 @@ executables:
4344
ghc-options:
4445
- -threaded
4546
- -rtsopts
47+
48+
tests:
49+
hell-test:
50+
main: src/Hell.hs
51+
ghc-options:
52+
- -main-is
53+
- Main.specMain
54+
- -threaded
55+
- -rtsopts

0 commit comments

Comments
 (0)