3 ms·
Care to give anymore details? Tips on using this approach? Problems? Advantages? What do you think of mflow?
by codygman 12y ago
Care to give anymore details? Tips on using this approach? Problems? Advantages? What do you think of mflow?
- lclarkmichalek 12y agoWell, I mostly do client side templating, so most of my functions end up being (ToJSON a) => ScottyT a, which simplifies matters. Problems: not thrilled with the error handling, I prefer using Either rather than the out of band exception stuff Scotty seems to use. However, it's Haskell, so I can almost always write a small function to do what I want. For example, param is :: (Read a) => String -> ScottyT a, and throws an exception if the param does not exist. It is trivial for me to write a function paramM :: (Read a) => String -> ScottyT (Maybe a), so the original problem is not significant. Never used mflow, looks interesting, but I wouldn't use it.