[Haskell-cafe] persistent and safe-money packages

Debasish Ghosh 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
https://bitemyapp.com/blog/uuids-with-persistent-yesod/ :-)

regards.

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


-- 
Debasish Ghosh
http://manning.com/ghosh2
http://manning.com/ghosh

Twttr: @debasishg
Blog: http://debasishg.blogspot.com
Code: http://github.com/debasishg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20200117/8ba00c69/attachment.html>


More information about the Haskell-Cafe mailing list