Skip to content

cabal repl --enable-multi-repl --with-ghc=doctest fails with "unrecognized option `-unit'" #412

Open
@TristanCacqueray

Description

@TristanCacqueray

The upcoming cabal 3.11 release support loading multiple components (see haskell/cabal#8726). However this does not seems to work when running doctest through ghc replacement. Here is an example failure for a package using two libraries:

$ cabal repl --enable-multi-repl --with-ghc=doctest butler butler-desktop

Resolving dependencies...
Build profile: -w ghc-9.6.2 -O1
In order, the following will be built (use -v for more details):
 - butler-0.1 (interactive) (lib) (first run)
 - butler-0.1 (interactive) (lib:butler-desktop) (configuration changed)
Preprocessing library for butler-0.1...
Configuring library 'butler-desktop' for butler-0.1...
Preprocessing library 'butler-desktop' for butler-0.1...
doctest: unrecognized option `-unit'
Try `doctest --help' for more information.

Could we make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions