-
-
Notifications
You must be signed in to change notification settings - Fork 388
Implement cycle detection in hls-graph #2756
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Time to go back to Shake? |
Since I am the sole maintainer of hls-graph, we need someone else to review my PRs. Are you happy to fill in that role @michaelpj @wz1000 ? |
@@ -165,7 +170,7 @@ compute db@Database{..} key mode result = do | |||
deps | not(null deps) | |||
&& runChanged /= ChangedNothing | |||
-> do | |||
void $ forkIO $ |
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.
Removed this forkIO
because it made testing reverse deps impossible, and I can't justify the need for it anyway
I can give it a look, but if you'd like a substantive review I'll need to devote some time to understanding what is actually going on. |
Looks fairly straightforward. Allocations in the Cabal benchmark seem to be a bit higher, but I guess that is to be expected. |
Almost completely lifted from Shake.
I also started a barebones test suite for hls-graph and removed some legacy option placeholders (
shakeThreads
andshakeFiles
)