yesodweb/yesod-scaffold — pull request #22 by gdoteof (2014-07-13 15:30:47+00:00)
Title: Adding Prelude to Model.hs so basic datatypes can be used in config/mode...

Adding merge request here per: https://github.com/yesodweb/yesod/pull/768

When using an `Int` as a datatype in a scaffolded postgres app we get this error:
```
Model.hs:13:7:
Not in scope: type constructor or class `Int'
Perhaps you meant `Ints' (imported from Yesod)
In the result of the splice:
$(persistFileWith lowerCaseSettings "config/models")
To see what the splice expanded to, use -ddump-splices
In the second argument of `share', namely
`$(persistFileWith lowerCaseSettings "config/models")'
In the expression:
share
[mkPersist sqlOnlySettings, mkMigrate "migrateAll"]
($(persistFileWith lowerCaseSettings "config/models"))
```

Since `Int` is such a common/basic type, and especially because the yesod book uses `Int`s in its most basic Persistent examples, it seems this should work "out of the box"