post "/introduceAnIdea" $ do
command <- jsonData
json $ handle command
How would you remove the do and change it with >>= ?
post "/introduceAnIdea" $ jsonData >>= (json . handle)
I don't think that's necessarily better in this case though.
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