lawspec 0.17.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +3 -3
- package/bin/lawspec.mjs +1 -1
- package/build.json +15 -11
- package/core.wasm +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.17.2
|
|
4
|
+
|
|
5
|
+
### Dependency-tracked incremental compilation
|
|
6
|
+
|
|
7
|
+
- The compiler builds a dependency graph of each program. Its nodes are data
|
|
8
|
+
types and declarations (with their contracts and checked definitions), and
|
|
9
|
+
each node has a Merkle digest (SHA-256) of its content and of everything it
|
|
10
|
+
references, with recursive groups digested together.
|
|
11
|
+
- A law is planned again only when it, or a type or definition it can reach,
|
|
12
|
+
changes. A unit's files are emitted again only when the unit or one of its
|
|
13
|
+
laws' plans changes, when a data type changes (emitters name types across
|
|
14
|
+
the whole program), or when a checked definition is added, removed or
|
|
15
|
+
renamed. Editing one definition's body no longer replans and re-emits the
|
|
16
|
+
whole program, and reverting an edit reuses the earlier results.
|
|
17
|
+
- Each law is planned from only the types and definitions it reaches, which
|
|
18
|
+
cuts planning time for the bundled examples by two thirds. Evidence
|
|
19
|
+
discharge plans laws the same way, so `lawspec evidence` reports the boundary
|
|
20
|
+
cases the generated tests use.
|
|
21
|
+
|
|
22
|
+
### Changes to generated tests
|
|
23
|
+
|
|
24
|
+
- Boundary search for constrained data took its depth from the number of data
|
|
25
|
+
types in the whole program, and seeded scalar boundaries with literals from
|
|
26
|
+
every type's constructor predicates. Both now come from the types the law
|
|
27
|
+
reaches, so adding an unrelated type no longer changes a law's tests.
|
|
28
|
+
Regenerating can change the boundary cases of laws over indexed families and
|
|
29
|
+
constrained data; among the bundled examples, `indexed_arithmetic`,
|
|
30
|
+
`domain_modeling` and the shop package's domain unit gain or lose cases.
|
|
31
|
+
|
|
3
32
|
## 0.17.1
|
|
4
33
|
|
|
5
34
|
### Faster compilation
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Node 22+ and the selected target's build tools are required. No Haskell
|
|
|
30
30
|
toolchain is needed. The reference platforms are macOS and Linux.
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
npm install --save-dev lawspec@0.17.
|
|
33
|
+
npm install --save-dev lawspec@0.17.2
|
|
34
34
|
npx lawspec --version
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -40,8 +40,8 @@ LawSpec can create `package.json` and its test script:
|
|
|
40
40
|
```sh
|
|
41
41
|
mkdir lawspec-example
|
|
42
42
|
cd lawspec-example
|
|
43
|
-
npm exec --package=lawspec@0.17.
|
|
44
|
-
npm install --save-dev lawspec@0.17.
|
|
43
|
+
npm exec --package=lawspec@0.17.2 -- lawspec init --target javascript
|
|
44
|
+
npm install --save-dev lawspec@0.17.2
|
|
45
45
|
npx lawspec check
|
|
46
46
|
npx lawspec explain 'example.atoi_codec::itoa and then atoi yields a'
|
|
47
47
|
npx lawspec doctor
|
package/bin/lawspec.mjs
CHANGED
package/build.json
CHANGED
|
@@ -60,6 +60,8 @@
|
|
|
60
60
|
"src/LawSpec/Data.hs",
|
|
61
61
|
"src/LawSpec/DataNames.hs",
|
|
62
62
|
"src/LawSpec/DefinitionTotality.hs",
|
|
63
|
+
"src/LawSpec/Dependencies.hs",
|
|
64
|
+
"src/LawSpec/Digest.hs",
|
|
63
65
|
"src/LawSpec/Discharge.hs",
|
|
64
66
|
"src/LawSpec/Domain.hs",
|
|
65
67
|
"src/LawSpec/DomainModel.hs",
|
|
@@ -140,8 +142,8 @@
|
|
|
140
142
|
],
|
|
141
143
|
"digests": {
|
|
142
144
|
"dev/Gen/Embed.hs": "41cd18500c1a8c9bdb51011ab4c74817f8e04b655aa10d9894aa1b93a3fa858b",
|
|
143
|
-
"lawspec.cabal": "
|
|
144
|
-
"package.yaml": "
|
|
145
|
+
"lawspec.cabal": "f3e7fcdcb25ee3ce8c122c9641ba596f206314b2bd96dc80e8150bf187128bd8",
|
|
146
|
+
"package.yaml": "2bf973ae585ecdd17c52a02e3995eb767383de051b31cf132910009055d70110",
|
|
145
147
|
"runtime/LawSpecCodecs.hs": "1b3f6b40ad49928cf5e9386e06bc2992c9f1271754351b9fa3075e50346ef03b",
|
|
146
148
|
"runtime/LawSpecCollectionCodecs.hs": "74caa786801c5142ed040897c7ebb7373abf49ee49e02af53e466646fb624f47",
|
|
147
149
|
"runtime/LawSpecDataStrategies.hs": "9cc5b98476364a6c255dc3eb40c53d65b4a9d4ab0c3961a806b3515a8d5e8f7f",
|
|
@@ -166,9 +168,9 @@
|
|
|
166
168
|
"runtime/lawspec_schema.mjs": "d77abea1a9dcb03e4a6c6eef6509971d8599fac9acdefa9b9e4b89b8d0fc5226",
|
|
167
169
|
"runtime/lawspec_schema.py": "daed20d27168970350ef0b63b9cb2e566bd00598922acb4071d863c076e787ba",
|
|
168
170
|
"runtime/lawspec_strategies.rs": "5e991a45548811fef1728e1e9b9f12f76ee4cc7cb9c3339eab79bc4cf5f54f6b",
|
|
169
|
-
"runtime/rust/Cargo.lock": "
|
|
170
|
-
"runtime/rust/Cargo.toml": "
|
|
171
|
-
"src/LawSpec/Api.hs": "
|
|
171
|
+
"runtime/rust/Cargo.lock": "46a4457b658665181d4f01949f2d3f27be7c0a45da31fdab391799fb03afc260",
|
|
172
|
+
"runtime/rust/Cargo.toml": "110b10c0072d99ff42566cd33c7c860504738d1a4c9164d0201a0609d35248ae",
|
|
173
|
+
"src/LawSpec/Api.hs": "26abff862b87cfe3a96bb73eca269d6a8817172760d67470418bb0a3a82fb3c6",
|
|
172
174
|
"src/LawSpec/Backend.hs": "caf45afb73e7455dd801195b8b117ca7e4664ac4babc6ef0732e06faf9e64fcb",
|
|
173
175
|
"src/LawSpec/Capabilities.hs": "ab457f3da440a237ee731d664b94d95a0cc1fa4d8be4d4d0403a61ebcf98e310",
|
|
174
176
|
"src/LawSpec/Code/Doc.hs": "9e3b70f85deb1dcbce385af1d0cd4bea2dfa8a2d806d54745d4bb437406673e5",
|
|
@@ -192,13 +194,15 @@
|
|
|
192
194
|
"src/LawSpec/Core/Types.hs": "04d9c093fcc0d84e2864c8a3b69d5fe318a92c60b32844048198f1b12fe1b6fb",
|
|
193
195
|
"src/LawSpec/Core/Validate.hs": "74c2a51eb913f8414268064f22d2d5d97ebfb0e4797e146b229076c29ac38726",
|
|
194
196
|
"src/LawSpec/Core/Value.hs": "a1e0745154c54498d7e164a89546ef2a56afade05a1d362e1c63986245ad2774",
|
|
195
|
-
"src/LawSpec/CoreEmit.hs": "
|
|
197
|
+
"src/LawSpec/CoreEmit.hs": "53dc6d57a1b5279f2295f530ad317bbbb9d5e1afd2deb5eec2330608b8ab1078",
|
|
196
198
|
"src/LawSpec/CoreNativeScalarEmit.hs": "5a5d145a18f596682a3dc3dacb009268d48c384c2f2ca620b503268096a66940",
|
|
197
199
|
"src/LawSpec/CoreScalarEmit.hs": "0493aa132599aca36a773717252281c2ab9c2aeb6ac1c90269dfbea50aaa36b1",
|
|
198
200
|
"src/LawSpec/Data.hs": "f659f4e86f1009c4806334a45686970dde2efa2641585f997a7beba01d0e6f2d",
|
|
199
201
|
"src/LawSpec/DataNames.hs": "2eeb0d215131981a2271725a50c21dce44c7146a167025eb239a83922fdecaf6",
|
|
200
202
|
"src/LawSpec/DefinitionTotality.hs": "adf00236e0e1b1cad4299793ced5f9047dbc2321d3c2f9ba040bac30d1a87c73",
|
|
201
|
-
"src/LawSpec/
|
|
203
|
+
"src/LawSpec/Dependencies.hs": "918d55923c29c66a5a82dc346bad9c6f539965bc06212b2a54d03d65d9df599f",
|
|
204
|
+
"src/LawSpec/Digest.hs": "ba8128e36856d5fb0d2345779fd949b11042af688a0d8cee63e5ae8818cef7ca",
|
|
205
|
+
"src/LawSpec/Discharge.hs": "e0c6760fa483e79782eb944c6208a815f2ff073428a5b90bbbb41aafca830bfe",
|
|
202
206
|
"src/LawSpec/Domain.hs": "222d15f0012ae630802238a6d7e1ee78d1e718b599f5ebb5a1ddc4e8d29d68c3",
|
|
203
207
|
"src/LawSpec/DomainModel.hs": "835e6e31c9565bd624c1139ead71ad65c1065ee660457ae365522f7ed78f7939",
|
|
204
208
|
"src/LawSpec/Elaboration.hs": "aade19ada1b9b944d1d5864b1ada61f89a57a675d7e8de9e2f3bc6b6f6d84b00",
|
|
@@ -236,7 +240,7 @@
|
|
|
236
240
|
"src/LawSpec/KotlinNativeBinding.hs": "1aec7854758f07a4d2288de13931fbb88ef32220f85d3c84fe8233ad67b6d095",
|
|
237
241
|
"src/LawSpec/KotlinProperties.hs": "5c7289c97cc915cbc3432eb4b08a2fefbe786af4d6591af4b59923aa9d6a2075",
|
|
238
242
|
"src/LawSpec/KotlinTestHelpers.hs": "74810d65faafc6ed4d64b1fb0596cda4186e586b7144a7441641b798795bc324",
|
|
239
|
-
"src/LawSpec/Memo.hs": "
|
|
243
|
+
"src/LawSpec/Memo.hs": "34e9baa568dc01d2eae6ac3ec160f628d0fb8a4f79567a93bfe8d181b201c065",
|
|
240
244
|
"src/LawSpec/Model.hs": "72fae874b4a5aa98057254fc1b508df3f71ec8587740bc7c18ea29490526137b",
|
|
241
245
|
"src/LawSpec/NativeBinding.hs": "33959b0fd432ad4150f3b685f6438e284b801c2a59d9ef3132486a1cc7c8925a",
|
|
242
246
|
"src/LawSpec/NativeRequest.hs": "f8200c36725859ea32374655951f7a45e2b3342b159f9f6c88b5f9a2a6331897",
|
|
@@ -262,7 +266,7 @@
|
|
|
262
266
|
"src/LawSpec/Scaffold.hs": "217328445923b9e339428dd542ce9b910c26ed132c31d1ef083de73763b749f9",
|
|
263
267
|
"src/LawSpec/Scalar.hs": "c49180c9de3d9549dbfa715a0e21868badc2ea78357381be883026c71b477a44",
|
|
264
268
|
"src/LawSpec/SpecializeDefinitions.hs": "2bdd6d9b191941d869ef524659e02fed551499aaa2ea98c99323da03af113012",
|
|
265
|
-
"src/LawSpec/Testing.hs": "
|
|
269
|
+
"src/LawSpec/Testing.hs": "17b9e9d5ffb2833cc360d4ef3b1f19a45edd3beb0739815ef484a5a911545309",
|
|
266
270
|
"src/LawSpec/WebData.hs": "bbcd7d734ce3941d83cc455a9a2147b642f6111ebb34db9ef99dcb7a58b8c4ae",
|
|
267
271
|
"src/LawSpec/WebDefinitions.hs": "579309c76b9303a3c9e456e1252f2d0881795210aa0b09104a00efdfe10e3e13",
|
|
268
272
|
"src/LawSpec/WebExpr.hs": "0389dcd5cf7479dd23ef034b1012de6ebd70bf1dc9e3d90981dfb0ba2702596f",
|
|
@@ -274,8 +278,8 @@
|
|
|
274
278
|
"wasm/app/Exports.hs": "4ecbdac8faa2449e6fc61b93c82e6278fa14374154f29b4dacf0eef433f06a47",
|
|
275
279
|
"wasm/cabal.project": "021e560afdc5eb4cb7169e7119ecb8f92c9ee170245af909c94b612941bff5cc",
|
|
276
280
|
"wasm/cabal.project.freeze": "733dbed3d2ecccb26e874fd58f136296dad772184deb1658c196b5d54a0814dc",
|
|
277
|
-
"wasm/lawspec-wasm.cabal": "
|
|
278
|
-
"npm/core.wasm": "
|
|
281
|
+
"wasm/lawspec-wasm.cabal": "cfe5050dd58d8a2f13c8f950442abf60a5d1846d8de430f54b1ebd0e6fa2d968",
|
|
282
|
+
"npm/core.wasm": "8aed0bf33b6925b86879d67c70cf312047c55e2f6b49ee2f5e8555bdd4f8264a",
|
|
279
283
|
"npm/core_jsffi.js": "88d136efe92f7cff5758c8fec8d9b6bbc9707fe37741cebeeb415fe34ce3d72b",
|
|
280
284
|
"npm/api.mjs": "19e1624f91258c1397f3212faf65b407c62671b0fc5b118520e6a91f7ad7c6ba",
|
|
281
285
|
"npm/index.d.ts": "2215087cc6628a2ddbdd573210c4f9021cffeb00c142d4f3ae1314fd59a397f6"
|
package/core.wasm
CHANGED
|
Binary file
|