-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathpackage.yaml
111 lines (96 loc) · 2.46 KB
/
package.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: doctest
version: 0.24.0
synopsis: Test interactive Haskell examples
description: |
`doctest` is a tool that checks [examples](https://www.haskell.org/haddock/doc/html/ch03s08.html#idm140354810775744)
and [properties](https://www.haskell.org/haddock/doc/html/ch03s08.html#idm140354810771856)
in Haddock comments.
It is similar in spirit to the [popular Python module with the same name](https://docs.python.org/3/library/doctest.html).
Documentation is at <https://github.com/sol/doctest#readme>.
category: Testing
copyright: (c) 2009-2024 Simon Hengel
author: Simon Hengel <sol@typeful.net>
maintainer: Simon Hengel <sol@typeful.net>
github: sol/doctest
default-extensions:
- NamedFieldPuns
- RecordWildCards
- DeriveFunctor
- NoImplicitPrelude
extra-source-files:
- example/**/*
- test/parse/**/*
- test/extract/**/*
- test/integration/**/*
- CHANGES.markdown
- README.md
ghc-options: -Wall
when:
- condition: impl(ghc >= 9.0)
ghc-options: -fwarn-unused-packages
- condition: impl(ghc >= 9.8)
ghc-options: -fno-warn-x-partial
dependencies:
- base >= 4.7 && < 5
library:
source-dirs:
- src
exposed-modules:
- Test.DocTest
- Test.DocTest.Internal.Extract
- Test.DocTest.Internal.Location
- Test.DocTest.Internal.Parse
- Test.DocTest.Internal.Run
- Test.DocTest.Internal.Cabal
dependencies: &dependencies
ghc: ">= 8.0 && < 9.14"
syb: ">= 0.3"
code-page: ">= 0.1"
deepseq:
directory:
exceptions:
filepath:
process:
ghc-paths: ">= 0.1.0.9"
transformers:
containers:
temporary:
flags:
cabal-doctest:
description: Install (experimental) cabal-doctest executable
manual: true
default: false
executables:
doctest: &doctest
main: driver/doctest.hs
ghc-options: -threaded
dependencies:
- doctest
cabal-doctest:
<<: *doctest
main: driver/cabal-doctest.hs
when:
condition: flag(cabal-doctest)
then:
buildable: true
else:
buildable: false
tests:
spec:
build-tools: hspec-discover
main: Spec.hs
ghc-options: -threaded
cpp-options: -DTEST
source-dirs:
- test
- src
c-sources: test/integration/with-cbits/foo.c
dependencies:
<<: *dependencies
HUnit:
hspec: ">= 2.3.0"
hspec-core: ">= 2.3.0"
QuickCheck: ">= 2.13.1"
stringbuilder: ">= 0.4"
silently: ">= 1.2.4"
mockery: