Hannes Siebenhandl pushed to branch wip/fendor/dep-json at Glasgow Haskell Compiler / GHC
Commits:
-
f5cb4624
by Hannes Siebenhandl at 2026-11-03T13:41:47+01:00
-
7d0a11ae
by Hannes Siebenhandl at 2026-11-03T13:42:00+01:00
3 changed files:
- docs/users_guide/make-depends-json-schema-1_0.json
- testsuite/tests/driver/mkdepend/mkdepend_mhu02.dep-json
- testsuite/tests/driver/mkdepend/mkdepend_mhu03.dep-json
Changes:
| ... | ... | @@ -60,7 +60,16 @@ |
| 60 | 60 | "type": "string"
|
| 61 | 61 | },
|
| 62 | 62 | "home-module-preprocessor": {
|
| 63 | - "type": "string"
|
|
| 63 | + "type": "object",
|
|
| 64 | + "properties": {
|
|
| 65 | + "command": {
|
|
| 66 | + "type": "string"
|
|
| 67 | + },
|
|
| 68 | + "arguments": {
|
|
| 69 | + "type": "array",
|
|
| 70 | + "items": { "type": "string" }
|
|
| 71 | + }
|
|
| 72 | + }
|
|
| 64 | 73 | },
|
| 65 | 74 | "import": {
|
| 66 | 75 | "oneOf": [
|
| 1 | 1 | {"module":"A","unit-id":"a-1.0.0-XXX","imports":{},"package-name":"a","source":"mhu02/A.hs"}
|
| 2 | -{"module":"B","unit-id":"b-0.1.0-XXX","imports":{},"package-name":"b","source":"mhu02/B.hs","preprocessor":"./mhu02/pp.sh"} |
|
| 2 | +{"module":"B","unit-id":"b-0.1.0-XXX","imports":{},"package-name":"b","source":"mhu02/B.hs","preprocessor":{"command":"./mhu02/pp.sh"}} |
| 1 | -{"module":"A","unit-id":"a","imports":{},"source":"mhu03/pkg/A.hs","preprocessor":"./mhu03/pkg/pp.sh"} |
|
| 1 | +{"module":"A","unit-id":"a","imports":{},"source":"mhu03/pkg/A.hs","preprocessor":{"command":"./mhu03/pkg/pp.sh"}} |