An action expects a return value of Action (), but forP returns an Action[()].
How can it be executed in an action?
If the return value is irrelevant it can simply be ignored:
void $ forP commands runCommand
Otherwise it can be bound to a variable and used afterwards:
values <- forP commands runCommand
return (fold values)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With