You can ask Haskell-related questions here.
Please try to include enough context so people can help you out appropriately:
- What are you trying to achieve?
- What versions of tools and libraries are you using?
- What is the exact error message you got?
You can ask Haskell-related questions here.
Please try to include enough context so people can help you out appropriately:
Hi every one,
I’m trying to use postgresql database with haskell, using Persistent et Persistent-Postgresql.
I’m struggling on how to get a record id geven a record.
In fact i have this entity definition with Template Haskell using persistent.
share [mkPersist sqlSettings , mkMigrate “migrateAll” ] [persistLowerCase|
Category sql=categories
name Text
deriving Show Read
|]
and i have a category cat coming from the database, how can i get the Id of cat for display?
Thanks a lot.