
Implement the PersistField typeclass for the type.
You can find examples of how to do so in the Persistent library
source: https://hackage.haskell.org/package/persistent-2.10.4/docs/Database-Persist-...
On Thu, Jan 16, 2020 at 2:11 PM Debasish Ghosh
Hi -
I am using "persistent" for database access in Haskell. However in my domain model I have used the Dense data type from safe-money (https://hackage.haskell.org/package/safe-money) as the money datatype. It looks like this data type is not supported by default in persistent. Is there a way around ?
Thanks in advance.
-- Debasish Ghosh http://manning.com/ghosh2 http://manning.com/ghosh
Twttr: @debasishg Blog: http://debasishg.blogspot.com Code: http://github.com/debasishg _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- Chris Allen Currently working on http://haskellbook.com