4 ms·
A few years back, I used Yesod. It was very nice because of the type-safety from top to bottom. Especially nice in combination with esqueleto. https://www.yeso
by oever 6y ago
A few years back, I used Yesod. It was very nice because of the type-safety from top to bottom. Especially nice in combination with esqueleto.
https://www.yesodweb.com/book https://www.yesodweb.com/book
- iso8859-1 6y agoDid you try Opaleye? This guy seems to prefer it: https://williamyaoh.com/posts/2019-12-14-typesafe-db-libraries.html https://williamyaoh.com/posts/2019-12-14-typesafe-db-librari...
- oever 6y agoI had not heard of Opaleye yet.
- whateveracct 6y agoEsqueleto and persistent are quite nice. Their one downside is SqlPersistT. The abstraction makes sense, but once you have people putting that thing as the base Monad in your stack, you're in trouble. Its nature means it holds a transaction (and therefore connection!) open during the entire action if used that way. This will cause big problems, like causing requests to queue on your connection pool if some other IO/parts of the code are slow and hogging the connection.