Developing Web Apps with Haskell and Yesod by Michael Snoyman

Developing Web Apps with Haskell and Yesod by Michael Snoyman

Author:Michael Snoyman
Language: eng
Format: epub, pdf
Publisher: O'Reilly Media, Inc.
Published: 2015-02-25T16:00:00+00:00


Note

It is likely that, at some point after publishing this chapter, the scaffolded site will switch to an alternative prelude, such as classy-prelude-yesod. Don’t be surprised if Import looks quite different than described here.

Handler Modules

Handler modules should go inside the Handler/ folder. The site template includes one module: Handler/Home.hs. How you split up your handler functions into individual modules is your decision, but a good rule of thumb is:

Different methods for the same route should go in the same file (e.g., getBlogR and postBlogR).



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.