3 ms·
This is a great tutorial for getting up and running fast. I started off with Spock too but grew out of it pretty quickly. It's painful in Haskell you're learni
by verttii 7y ago
This is a great tutorial for getting up and running fast. I started off with Spock too but grew out of it pretty quickly.
It's painful in Haskell you're learning it but feel you're not able to generate anything real for the first month(s) with it. Unfortunately, there's not many up-to-date tutorials like these available for beginners.
- dwcnnnghm 7y agoDo you have any recommendations for next steps beyond Spock? I learned Haskell at uni and am interested in going back to it for web work (instead of Erlang). Any insights you might be able to share would be really helpful!
- verttii 7y agoServant. It takes a while to pick it up but it's well worth the effort. You end up with an automatically documented type safe API and you can even generate client functions for other languages using Swagger based on the spec. It has excellent documentation too, the only hard part really is figuring out the handler pattern. As for the SQL story, that's more fragmented. I'm still trying to figure out the best next step myself. I started off with Persistent & Esqueleto but now looking at BEAM, Selda and Squeal for more control over the queries. If you use Persistent as the persistence layer, check out Matt Parsons' blog for a nice intro: https://www.parsonsmatt.org/2016/07/08/servant-persistent_updated.html https://www.parsonsmatt.org/2016/07/08/servant-persistent_up... I'm actually coming from Elixir myself. I have to admit Haskell feels funny at times but admittedly a lot more robust.