<div dir="ltr">Hi Chris -<div><br></div><div>Yes, that's exactly what I did after going through your blog post <a href="https://bitemyapp.com/blog/uuids-with-persistent-yesod/">https://bitemyapp.com/blog/uuids-with-persistent-yesod/</a> :-)</div><div><br></div><div>regards.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 17, 2020 at 2:14 AM Christopher Allen <<a href="mailto:cma@bitemyapp.com">cma@bitemyapp.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Implement the PersistField typeclass for the type.<br>
<br>
You can find examples of how to do so in the Persistent library<br>
source: <a href="https://hackage.haskell.org/package/persistent-2.10.4/docs/Database-Persist-Class.html#g:6" rel="noreferrer" target="_blank">https://hackage.haskell.org/package/persistent-2.10.4/docs/Database-Persist-Class.html#g:6</a><br>
<br>
On Thu, Jan 16, 2020 at 2:11 PM Debasish Ghosh <<a href="mailto:ghosh.debasish@gmail.com" target="_blank">ghosh.debasish@gmail.com</a>> wrote:<br>
><br>
> Hi -<br>
><br>
> I am using "persistent" for database access in Haskell. However in my domain model I have used the Dense data type from safe-money (<a href="https://hackage.haskell.org/package/safe-money" rel="noreferrer" target="_blank">https://hackage.haskell.org/package/safe-money</a>) as the money datatype. It looks like this data type is not supported by default in persistent. Is there a way around ?<br>
><br>
> Thanks in advance.<br>
><br>
> --<br>
> Debasish Ghosh<br>
> <a href="http://manning.com/ghosh2" rel="noreferrer" target="_blank">http://manning.com/ghosh2</a><br>
> <a href="http://manning.com/ghosh" rel="noreferrer" target="_blank">http://manning.com/ghosh</a><br>
><br>
> Twttr: @debasishg<br>
> Blog: <a href="http://debasishg.blogspot.com" rel="noreferrer" target="_blank">http://debasishg.blogspot.com</a><br>
> Code: <a href="http://github.com/debasishg" rel="noreferrer" target="_blank">http://github.com/debasishg</a><br>
> _______________________________________________<br>
> Haskell-Cafe mailing list<br>
> To (un)subscribe, modify options or view archives go to:<br>
> <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
> Only members subscribed via the mailman list are allowed to post.<br>
<br>
<br>
<br>
-- <br>
Chris Allen<br>
Currently working on <a href="http://haskellbook.com" rel="noreferrer" target="_blank">http://haskellbook.com</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Debasish Ghosh<br><a href="http://manning.com/ghosh2" target="_blank">http://manning.com/ghosh2</a></div><div><a href="http://manning.com/ghosh" target="_blank">http://manning.com/ghosh</a><br></div><div><br>Twttr: @debasishg<br>Blog: <a href="http://debasishg.blogspot.com" target="_blank">http://debasishg.blogspot.com</a><br>Code: <a href="http://github.com/debasishg" target="_blank">http://github.com/debasishg</a></div></div></div>