I've read through the chapter on persistent in the Yesod book. It gives lots of examples but leaves some things unexplained.

For example what does Gt Desc in this entity definition mean?

-- Define our entities as usual
share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase|
Person
    firstName String
    lastName String
    age Int Gt Desc
    deriving Show
|]

Is there somewhere a definitive reference of all those extra attributes?

有帮助吗?

解决方案

There's a Wiki page covering the syntax. The Gt and Desc is an old syntax that's no longer needed, I'll remove the references from the chapter (I thought I'd caught them all already).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top