> /tmp/stackage-build8/octane-0.13.0$ dist/build/octane-doctest/octane-doctest
library/Octane/Utility/ClassPropertyMap.hs:25:1: error:
Ambiguous interface for ‘Text.Regex’:
it was found in multiple packages:
regex-compat-tdfa-0.95.1.4 regex-compat-0.95.1
This occurs because doctest simply looks for installed modules, not respecting dependencies in your cabal file. It's an issue during the stackage build because then both of the packages mentioned are in scope. I will add the test case as an expected failure in the stackage build, if you want stackage to be able to run the tests the only solution I'm aware of is to use -XPackageImports to specify which package this import comes from.
Got this while building stackage nightly:
This occurs because doctest simply looks for installed modules, not respecting dependencies in your cabal file. It's an issue during the stackage build because then both of the packages mentioned are in scope. I will add the test case as an expected failure in the stackage build, if you want stackage to be able to run the tests the only solution I'm aware of is to use
-XPackageImports
to specify which package this import comes from.