-
Notifications
You must be signed in to change notification settings - Fork 374
Cookbook
Sibi Prabakaran edited this page Jun 22, 2016
·
47 revisions
[WARNING] Yesod Cookbook has moved to a new place. Please contribute there.
The Yesod Cookbook contains small snippets of code for solving practical problems with Yesod. If you have some code to share, please create a wiki page and link to it in the appropriate section.
If you're looking for a comprehensive guide to learning Yesod, please consider reading the book.
For non-Yesod code, see also Snippets.
- Change the order of form fields
- Require input for Maybe field
- Custom form layout
- Password confirm field
- Multi-field validation
- Select field populated from database
- Multi-select field populated from database
- Multi-select field populated from database (esqueleto) - this is the optimized version
- File upload
- File upload saving files to server
- Run raw MongoDB
- Run raw SQL
- Sphinx Search
- Non scaffolded MongoDB App
- Using Database.Persist.runPool without Foundation
- Using runDB in IO with SQL
- Database Views and Non-Migrated Entities
- Lens for existing site
- Connecting to an additional existing database
- Example MySQL Connection code
- Activate foreign key checking in Sqlite
- Adding Seed data to Scaffolded Site