Initial implementation: https://github.com/sol/doctest/pull/425 Based on: https://github.com/mpickering/cabal-doctest-demo/blob/master/cabal-doctest Related discussions: - https://github.com/haskell/cabal/pull/10057 - https://github.com/sol/doctest/pull/424 TODO: - [x] https://github.com/sol/doctest/pull/437 - [x] https://github.com/sol/doctest/pull/439 - [x] Get rid of the `cabal build` step by capturing the REPL arguments with `--repl-multi-file`. This possibly also needs `--keep-temp-files`. Then call `doctest` with `--no-magic`. https://github.com/sol/doctest/pull/441 - [x] accept component, eg `cabal doctest spec` https://github.com/sol/doctest/pull/442 - [ ] Accept `--ignore-project` - [ ] Accept `--list-options` - [ ] Accept `--help` - [ ] Accept `--dry-run` - [ ] Directly accept `doctest` options like `--verbose` or `--fast` - [ ] Allow to disable QuickCheck to avoid dependency cycles. https://github.com/haskell/random/pull/165
Initial implementation: #425
Based on: https://github.com/mpickering/cabal-doctest-demo/blob/master/cabal-doctest
Related discussions:
TODO:
--with-compiler#439cabal buildstep by capturing the REPL arguments with--repl-multi-file. This possibly also needs--keep-temp-files. Then calldoctestwith--no-magic. cabal-doctest: Get rid of separatecabal buildstep #441cabal doctest speccabal-doctest: Accept component #442--ignore-project--list-options--help--dry-rundoctestoptions like--verboseor--fast