Repository navigation
Expand file tree
/
Copy pathpatch.cabal
More file actions
193 lines (167 loc) · 5.08 KB
/
Copy pathpatch.cabal
File metadata and controls
193 lines (167 loc) · 5.08 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
cabal-version: 2.2
name: patch
version: 0.0.9.0
license: BSD-3-Clause
license-file: LICENSE
maintainer: maintainer@obsidian.systems
author: Ryan Trinkle
stability: Experimental
tested-with:
ghc ==8.10.7 || ==9.0.1 || ==9.2.5 || ==9.4.5 || ==9.6.1 || ==9.8.2 || ==9.10.1 || ==9.12.1 || ==9.14.1
ghcjs ==8.10
homepage: https://obsidian.systems
bug-reports: https://github.com/reflex-frp/patch/issues
synopsis:
Data structures for describing changes to other data structures.
description:
Data structures for describing changes to other data structures.
.
In this library, a patch is something which can be applied, analogous to a
function, and which distinguishes returning the argument it was provided from
returning something else.
category: FRP
build-type: Simple
extra-source-files:
README.md
extra-doc-files:
ChangeLog.md
source-repository head
type: git
location: https://github.com/reflex-frp/patch
flag split-these
description: Use split these/semialign packages
flag hlint
description: Enable hlint test
flag strict
description:
Build with options, such as -Werror, which are inconvenient for development but good for CI
default: False
manual: True
common common
default-extensions:
AllowAmbiguousTypes
BangPatterns
ConstraintKinds
DataKinds
DefaultSignatures
DeriveDataTypeable
DeriveFunctor
DeriveGeneric
DeriveTraversable
DerivingStrategies
EmptyCase
EmptyDataDecls
ExistentialQuantification
FlexibleContexts
FlexibleInstances
FunctionalDependencies
GADTs
GeneralizedNewtypeDeriving
ImportQualifiedPost
LambdaCase
MultiParamTypeClasses
NoMonomorphismRestriction
OverloadedStrings
PatternGuards
PatternSynonyms
PolyKinds
RankNTypes
RecordWildCards
RecursiveDo
ScopedTypeVariables
StandaloneDeriving
TemplateHaskell
TupleSections
TypeApplications
TypeFamilies
TypeOperators
UndecidableSuperClasses
ViewPatterns
if flag(strict)
ghc-options: -Werror
ghc-options:
-O2 -fexpose-all-unfoldings -fspecialise -fspecialise-aggressively
-flate-specialise -fcross-module-specialise
ghc-options:
-Wall -fno-show-valid-hole-fits -Wno-type-defaults
-Wno-partial-type-signatures -Wincomplete-record-updates
-Werror=incomplete-record-updates -Wincomplete-patterns
-Werror=incomplete-patterns -Wincomplete-uni-patterns
-Werror=incomplete-uni-patterns -Wpartial-fields
-Werror=partial-fields -Wmissing-fields -Werror=missing-fields
-Widentities -Wredundant-constraints -Wunused-packages
ghc-options:
-Wmissing-deriving-strategies -Werror=missing-deriving-strategies
common rts
if !arch(wasm32)
ghc-options: -threaded -rtsopts -with-rtsopts=-N
library
import: common
exposed-modules:
Data.Functor.Misc
Data.Monoid.DecidablyEmpty
Data.Patch
Data.Patch.Class
Data.Patch.DMap
Data.Patch.DMapWithMove
Data.Patch.IntMap
Data.Patch.Map
Data.Patch.MapWithMove
Data.Patch.MapWithPatchingMove
Data.Patch.PatchOrReplacement
Data.Semigroup.Additive
hs-source-dirs: src
default-language: Haskell2010
build-depends:
base >=4.14 && <4.23,
constraints-extras >=0.3 && <0.5,
commutative-semigroups >=0.0 && <0.3,
containers >=0.6 && <0.9,
dependent-map >=0.3 && <0.5,
dependent-sum >=0.6 && <0.8,
lens >=4.7 && <5.4,
indexed-traversable >=0.1 && <0.2,
transformers >=0.5.6.0 && <0.7
if flag(split-these)
build-depends:
these >=1 && <1.4,
semialign >=1 && <1.5,
monoidal-containers >=0.6 && <0.7
else
build-depends:
these >=0.4 && <0.9,
monoidal-containers ==0.4.0.0
test-suite tests
import: common, rts
type: exitcode-stdio-1.0
main-is: tests.hs
hs-source-dirs: test
default-language: Haskell2010
build-depends:
base,
patch,
containers,
hedgehog <1.8,
HUnit <1.7
if (impl(ghcjs >=0) || arch(javascript))
buildable: False
test-suite hlint
import: common, rts
type: exitcode-stdio-1.0
main-is: hlint.hs
hs-source-dirs: test
default-language: Haskell2010
build-depends:
base,
directory,
filepath,
filemanip,
patch
if impl(ghc >=9.6)
buildable: False
if impl(ghc <9.2)
build-depends: hlint (<2.1 || >=2.2.2) && <3.5
else
build-depends: hlint >=3.5 && <3.11
if ((impl(ghcjs >=0) || arch(javascript)) || !flag(hlint))
buildable: False