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

Use robotMap directly instead of addRobot #1378

Merged
merged 1 commit into from
Jul 18, 2023
Merged

Use robotMap directly instead of addRobot #1378

merged 1 commit into from
Jul 18, 2023

Conversation

kostmo
Copy link
Member

@kostmo kostmo commented Jul 18, 2023

Closes #1372

Comment on lines +1592 to +1594
return $ do
guard $ hasLog && hasListen
Just (rid, loc')
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
return $ do
guard $ hasLog && hasListen
Just (rid, loc')
return $ (rid, loc') <$ (guard $ hasLog && hasListen)

I find this simpler/easier to read; YMMV.

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, actually, never mind, that might lead to an ambiguous type error...?

@kostmo kostmo marked this pull request as ready for review July 18, 2023 16:56
@kostmo kostmo added the merge me Trigger the merge process of the Pull request. label Jul 18, 2023
@mergify mergify bot merged commit 4491f10 into main Jul 18, 2023
@mergify mergify bot deleted the refactor/robot-log branch July 18, 2023 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use a lens to modify robot state for "Say" command
2 participants