Skip to content

Added possibility of return other types instead of Action from BotM monad. #79

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

Merged
merged 3 commits into from
Jan 8, 2022

Conversation

s-and-witch
Copy link
Contributor

At this moment we have botHandler, that assumes user-defined Action-s and BotM monad into this handler where you make all API-requests. In this monad you must return new Action that goes back to the handler. With this design user needs to create NoOp -Action that doesn't produce any BotM-actions and therefore does not produce new Action-s.
This PR creates solver, that can works with arbitrary return types, that have RunBot a Action-instance.

@s-and-witch s-and-witch changed the title Added pisibillity of return other types instead of Action from BotM monad. Added posibillity of return other types instead of Action from BotM monad. Jan 8, 2022
@s-and-witch s-and-witch changed the title Added posibillity of return other types instead of Action from BotM monad. Added possibility of return other types instead of Action from BotM monad. Jan 8, 2022
@swamp-agr
Copy link
Collaborator

swamp-agr commented Jan 8, 2022

There are two things:

  • Fixing TodoBot.
  • To make Eff handle [BotM (Maybe Action)] instead of [BotM Action]. With help of RunBot class we can get rid of NoOp action. In that case PR might close Why BotM has to end with an action? #41.

✅ LGTM.

Typos and texts could be improved further in the next PR before release.

@swamp-agr swamp-agr merged commit 955d2a4 into fizruk:master Jan 8, 2022
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