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?

Was it helpful?

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top