-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for mixins #68
Comments
|
@phadej Ah, that's sad to hear :/ Is that an intrinsic limitation, or is there a chance (even if slim) |
In theory they could. In practice it requires a lot of engineering (which I think is wasted work). I have made |
Interesting! How would I go about using it? For example, in this test repo, how would I enable cabal-docspec? |
Please read the manual first. |
Oh, I completely missed the |
I'm trying to get
doctest
+cabal-doctest
to work on a project, but I can't get it to play ball with mixins.Namely, I'm using a custom prelude and using
mixins: base hiding (Prelude)
to hide the default one. But it seems doctest doesn't seem to recognize this mixin and says there are two preludes in scope.I've created a test project here, so we can reproduce this issue: https://github.com/dcastro/doctest-mixins
stack build
works fine, butstack test
fails.I've first reported this issue in sol/doctest#289. It was suggested that maybe
cabal-doctest
would be the ideal place to solve this issue.If it helps, I've also uploaded the output of
cabal build lib:doctest-mixins -v3
in a gist.The text was updated successfully, but these errors were encountered: