Pregunta

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?

¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top