Closed Atry closed 5 years ago
This might actually be a GHC issue. Can you try to replicate directly with cabal? This way we can check if it's caused by Stack's package resolution (unlikely) or Cabal/GHC (most likely, since Stack defers to them for actual compilation)
No response to previous comment, closing
General summary/comments
I have a project of two packages, say,
lib1
andlib2
. The tests oflib1
depends onlib2
. The library oflib2
depends onlib1
.Tests of
lib1
fails if it requires type class instances defined inlib2
. However, other types and functions defined oflib2
are available in tests oflib1
.I created a minimal reproduction at https://github.com/Atry/stack-issue-4335
Steps to reproduce
Expected
The tests should pass
Actual
Note that the same test in
lib2
compiles.Stack version
Method of installation
I use a stack installed from HomeBrew on macOS 10.13.6. It also fails on Linux as logged in https://travis-ci.org/Atry/stack-issue-4335/builds/436686315