Skip to content
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

Cleaned up and renamed main solver loop #173

Merged
merged 2 commits into from
Mar 16, 2022
Merged

Conversation

simonjwinwood
Copy link
Contributor

No description provided.


once m rest = do
progress <- m
if madeProgress progress then pure True else rest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use Control.Monad.Extra.ifM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already depend on extra, so we could even change the types and use ||^ which is really what is going on here

@simonjwinwood simonjwinwood merged commit 533102f into main Mar 16, 2022
@simonjwinwood simonjwinwood deleted the wip/cleaner-solver branch March 16, 2022 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants