Question

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?

Était-ce utile?

La solution

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).

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top