tfausak / octane

:rocket: Parse Rocket League replays.
https://www.stackage.org/nightly/package/octane
Other
39 stars 1 forks source link

doctest build failure #35

Closed bergmark closed 8 years ago

bergmark commented 8 years ago

Got this while building stackage nightly:

> /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.