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 fixup! Add `-dep-json` flag to `ghc -M` - - - - - 7d0a11ae by Hannes Siebenhandl at 2026-11-03T13:42:00+01:00 fixup! Improve `ghc -M` test-suite - - - - - 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: ===================================== docs/users_guide/make-depends-json-schema-1_0.json ===================================== @@ -60,7 +60,16 @@ "type": "string" }, "home-module-preprocessor": { - "type": "string" + "type": "object", + "properties": { + "command": { + "type": "string" + }, + "arguments": { + "type": "array", + "items": { "type": "string" } + } + } }, "import": { "oneOf": [ ===================================== testsuite/tests/driver/mkdepend/mkdepend_mhu02.dep-json ===================================== @@ -1,2 +1,2 @@ {"module":"A","unit-id":"a-1.0.0-XXX","imports":{},"package-name":"a","source":"mhu02/A.hs"} -{"module":"B","unit-id":"b-0.1.0-XXX","imports":{},"package-name":"b","source":"mhu02/B.hs","preprocessor":"./mhu02/pp.sh"} +{"module":"B","unit-id":"b-0.1.0-XXX","imports":{},"package-name":"b","source":"mhu02/B.hs","preprocessor":{"command":"./mhu02/pp.sh"}} ===================================== testsuite/tests/driver/mkdepend/mkdepend_mhu03.dep-json ===================================== @@ -1 +1 @@ -{"module":"A","unit-id":"a","imports":{},"source":"mhu03/pkg/A.hs","preprocessor":"./mhu03/pkg/pp.sh"} +{"module":"A","unit-id":"a","imports":{},"source":"mhu03/pkg/A.hs","preprocessor":{"command":"./mhu03/pkg/pp.sh"}} View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/43b3125908b3ec605c25b1991c98683... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/43b3125908b3ec605c25b1991c98683... You're receiving this email because of your account on gitlab.haskell.org. Manage all notifications: https://gitlab.haskell.org/-/profile/notifications | Help: https://gitlab.haskell.org/help
participants (1)
-
Hannes Siebenhandl (@fendor)