As an aside some people (Joey Adams IIRC, maybe others) have suggested that postgresql-simple should change the conversions so that ByteString represents postgresql&#39;s binary blobs,  and not postgresql&#39;s text.   (And get rid of the Binary type in the process)<div>
<br></div><div>This seems a perfectly reasonable suggestion to me,  though I&#39;m not particularly inclined to change the API either.   If you&#39;d like to adopt this suggestion,  be my guest.</div><div><br></div><div>I don&#39;t think that API compatibility between the *-simples should be high priority;   do whatever you think is best for sqlite-simple.   Then hopefully in a few years we&#39;ll have some well-developed database-specific interfaces that can inform a next-generation HDBC interface.</div>
<div><br></div><div>Best,</div><div>Leon<br><br><div class="gmail_quote">On Mon, Aug 13, 2012 at 10:33 AM, Bryan O&#39;Sullivan <span dir="ltr">&lt;<a href="mailto:bos@serpentine.com" target="_blank">bos@serpentine.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Sun, Aug 12, 2012 at 11:18 AM, Janne Hellsten <span dir="ltr">&lt;<a href="mailto:jjhellst@gmail.com" target="_blank">jjhellst@gmail.com</a>&gt;</span> wrote:<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>I note that postgresql-simple and mysql-simple use ByteStrings<br>
exclusively in the API.<br></div></blockquote></div><br></div><div>No, that&#39;s not how they work. The underlying representation in some places might be a ByteString, but the actual APIs don&#39;t use ByteStrings, they go through typeclasses.</div>

<div><br></div><div><a href="http://hackage.haskell.org/packages/archive/mysql-simple/latest/doc/html/Database-MySQL-Simple-Param.html" target="_blank">http://hackage.haskell.org/packages/archive/mysql-simple/latest/doc/html/Database-MySQL-Simple-Param.html</a></div>

<br>_______________________________________________<br>
database-devel mailing list<br>
<a href="mailto:database-devel@haskell.org">database-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/database-devel" target="_blank">http://www.haskell.org/mailman/listinfo/database-devel</a><br>
<br></blockquote></div><br></div>