Take the 2-minute tour ×

I've been having a crack at using Yesod and I'm really struggling! I've read multiple tutorials and large amounts of the Yesod book but I'm still unable to get my head around how it works. Ideally I'm looking for a tutorial such as the one for Pyramid (a python web framework). It takes you through every step and explains everything very well.

Sadly I've not been able to find a similar style of tutorial for Yesod yet, if anybody knows of one I'd be delighted if you could furnish me with a link.

In the meantime I've some a more specific query.

I've created a site using the scaffold as suggested in the tutorials. If I want to add new Handlers, Models and Templates; do I need to add individual files into each of the relevant folders each time or can I organise them into their own sub-folders somehow? When I use Pyramid I'm able to put each module in it's own folder.

Thank you :)

share|improve this question
Did you go through this excellent book available online ? Do you have prior haskell experience ? –  Sibi Dec 10 '13 at 14:26
I've been looking at the book online (I even have a paper copy!) and several of my google searches have taken me to it too. However I can't find anything that seems to explain how file organisation should work or anything that'll walk me through an entire site. I've read LYAH and so have some Haskell experience but I'm certainly still a beginner. –  Teifion Dec 10 '13 at 14:31
I wouldn't use the scaffolding initially if I were you. I think you're best to start by messing with sites which are defined in a single file, like the Bartosz Milewskis tutorials on the School of Haskell. Note there are a lot of other useful tutorials and articles on this site. I've written quite a lot of stuff with Yesod (admittedly not very visual, so not a lot of templates), and I still haven't used the scaffolded layout. –  Luke Taylor Dec 10 '13 at 18:13

Your Answer



Browse other questions tagged or ask your own question.