-
Notifications
You must be signed in to change notification settings - Fork 49
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
Run doctests for co-log-core #54
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tfausak Thanks for your contribution! Need to check why the CI is failing 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, some dependencies are conflicting. The following should fix the CI:
Relax time
constraints in co-log
package to the following:
, time >= 1.8 && < 1.10
It's here:
co-log-core/src/Colog/Core/Action.hs
Outdated
@@ -1,4 +1,5 @@ | |||
{-# LANGUAGE CPP #-} | |||
{-# LANGUAGE InstanceSigs #-} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This extension is enabled by default for whole project. It's very useful! So I think that instead of adding it to every manually, you can just write:
main = Doctest.doctest [ "-XInstanceSigs", "src" ]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good call! I didn't realize you could pass GHC options to doctest
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for the contribution! ❤️
💞 Thanks! |
Fixes #47.