Add print in Scotty do block
问题 I'm very new to Haskell so sorry in advance if the question is silly, but I was not able to find the solution in google. Let's say that I have this program using the Scotty web framework: responseUserByName :: ActionM () responseUserByName = do name <- param "name" user <- liftAndCatchIO $ getUserByUserName name json user I would like to add a log since it is failing at runtime and I cannot tell why. So my idea was to add some print in the do block to check values. But since the do block has