-
Notifications
You must be signed in to change notification settings - Fork 72
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? #289
Comments
I don't think you're doing anything wrong - this definitely looks unsupported at the moment. I like mixins, so I would also like for this to Just Work.
The way that I think that mixins are also passed on the command line in a similar way, so Having said that, I'm not certain that the necessary information is available to |
@quasicomputational Thank you for your reply! Yup, that makes sense, I've opened an issue in ulidtko/cabal-doctest#68, I hope there's an easy fix 😃 |
I'm not sure whether to ask this question here or in
cabal-doctest
. If it's the latter, please let me know and I'll move this issue.I'm trying to get 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.My first thought was that I should be passing an extra flag to doctest, but I'm not sure which.
Is there a workaround for this, am I doing something wrong, or is this simply not supported at the moment?
The text was updated successfully, but these errors were encountered: