[Haskell-cafe] persistent and safe-money packages
ghosh.debasish at gmail.com
Thu Jan 16 21:16:55 UTC 2020
Hi Chris -
Yes, that's exactly what I did after going through your blog post
On Fri, Jan 17, 2020 at 2:14 AM Christopher Allen <cma at bitemyapp.com> wrote:
> Implement the PersistField typeclass for the type.
> You can find examples of how to do so in the Persistent library
> On Thu, Jan 16, 2020 at 2:11 PM Debasish Ghosh <ghosh.debasish at gmail.com>
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe