cabal icon indicating copy to clipboard operation
cabal copied to clipboard

The `--repl-no-load` option is not recognized for build-type: Custom

Open enobayram opened this issue 3 years ago • 0 comments

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.0
  • ghc --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

enobayram avatar Aug 15 '22 09:08 enobayram