yesodweb/yesod — Issue #215: Scaffolded sites don't use the database
Author: pbrisbin
Created: 2012-01-11 19:04:08+00:00
State: open

Trying to update a site for 0.10, taking the usual scaffold-out-a-site-then-merge approach...

A few hurdles so far, one I can't figure out is this:

```
Helpers/Search.hs:71:20:
No instance for (PersistQuery
Database.Persist.GenericSql.Raw.SqlPersist
(GHandler MyApp MyApp))
arising from a use of `selectList'
Possible fix:
```

I guess this has to do with the new Store/Query split, and more than just `instance YesodPersist MyApp` being required.

Though I'm interested in the actual fix for my specific case -- This issue is more about the fact that the scaffold doesn't do any selects, so it's difficult to get up to date using a fresh scaffold as example. Having a select would also mean that a does-it-scaffold test would catch a bug if there's a missing `Query` instance.