[Haskell-cafe] persistent and safe-money packages

Christopher Allen cma at bitemyapp.com
Thu Jan 16 20:44:22 UTC 2020


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-Class.html#g:6

On Thu, Jan 16, 2020 at 2:11 PM Debasish Ghosh <ghosh.debasish at gmail.com> wrote:
>
> 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


More information about the Haskell-Cafe mailing list