-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathedit.cabal
77 lines (71 loc) · 2.62 KB
/
edit.cabal
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
name: edit
version: 1.0.1.0
synopsis: A monad for rewriting things.
homepage: https://github.com/theindigamer/edit
license: BSD3
license-file: LICENSE
author: Varun Gandhi <[email protected]>
maintainer: Varun Gandhi <[email protected]>
copyright: Varun Gandhi 2018
category: Data
build-type: Simple
extra-source-files: ChangeLog.md, Readme.md
cabal-version: >=1.10
description:
Edit is a monad for rewriting things.
source-repository head
type: git
location: https://github.com/theindigamer/edit.git
flag no_arbitrary
description: Removes QuickCheck as a dependency (so no Arbitrary instance is provided).
default: False
manual: True
flag no_comonad
description: Removes comonad as a dependency (so no Comonad instance is provided).
default: False
manual: True
flag tutorial
description: Build the tutorial. Adds dependencies on uniplate and containers.
default: False
manual: True
library
exposed-modules: Data.Edit
Data.Edit.Tutorial
Control.Monad.Trans.Edit
build-depends: base >= 4.9 && < 4.12
, deepseq >= 1.1 && < 1.5
, transformers >= 0.5 && < 0.6
ghc-options: -Wall
-Wincomplete-uni-patterns
-Wnoncanonical-monad-instances
-Wnoncanonical-monoid-instances
-Wcompat
hs-source-dirs: src
default-language: Haskell2010
if !flag(no_arbitrary)
CPP-options: -DWITH_ARBITRARY_INSTANCE
build-depends: QuickCheck >= 2.10 && < 2.13
if !flag(no_comonad)
CPP-options: -DWITH_COMONAD_INSTANCE
build-depends: comonad
if flag(tutorial)
CPP-options: -DTUTORIAL
build-depends: uniplate >= 1.6 && < 1.7
, containers >= 0.5.8.1 && < 0.5.12
test-suite test-edit
type: exitcode-stdio-1.0
hs-source-dirs: tests
main-is: Driver.hs
other-modules: Data.EditSpec
Control.Monad.Trans.EditSpec
build-Depends: base
, edit
, doctest >= 0.13 && < 0.17
, QuickCheck >= 2.10 && < 2.13
, uniplate >= 1.6 && < 1.7
, comonad >= 5.0 && < 5.1
, tasty >= 1.0 && < 1.2
, tasty-discover >= 4.2 && < 4.3
, tasty-quickcheck >= 0.9 && < 0.11
ghc-options: -Wall -threaded
default-language: Haskell2010