cabal
cabal copied to clipboard
The `--repl-no-load` option is not recognized for build-type: Custom
Describe the bug
I'm not able to start cabal repl with the --repl-no-option in Haskell packages specified to have build-type: Custom.
To Reproduce Steps to reproduce the behavior:
I've prepared a GitHub repository to demonstrate this issue. So check out: https://github.com/enobayram/cabal-repl-no-load-test
Then in that folder, the following fails, even though a simple cabal v2-repl works.
$ cabal v2-repl --repl-no-load
Expected behavior
cabal v2-repl --repl-no-load should drop me down to a GHCi session that has no modules loaded.
System information
- Ubuntu 22.04
cabal --version: 3.8.1.0ghc --version: 8.10.7
Additional context
Note that cabal v2-repl --repl-no-load works, if you change build-type to Simple in cabal-no-load-test.cabal