<div dir="ltr">On Thu, Sep 25, 2008 at 11:09 AM, Manlio Perillo <span dir="ltr">&lt;<a href="mailto:manlio_perillo@libero.it">manlio_perillo@libero.it</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Rich Neswold ha scritto:<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Wed, Sep 24, 2008 at 4:17 PM, Manlio Perillo &lt;<a href="mailto:manlio_perillo@libero.it" target="_blank">manlio_perillo@libero.it</a> &lt;mailto:<a href="mailto:manlio_perillo@libero.it" target="_blank">manlio_perillo@libero.it</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;I need a simple, concurrent safe, database, written in Haskell.<br>
 &nbsp; &nbsp;A database with the interface of Data.Map would be great, since what<br>
 &nbsp; &nbsp;I need to to is atomically increment some integer values, and I<br>
 &nbsp; &nbsp;would like to avoid to use SQLite.<br>
<br>
How about &nbsp;&quot;MVar (Map k Int)&quot;? &nbsp;or even &quot;Map k (MVar Int)&quot;?<br>
</blockquote>
<br></div>
Yes, it is a solution; and I can run a thread that every N seconds writes the database to a file.<br>
<br>
But this works only if the database is used by only one process.<br><font color="#888888">
</font></blockquote><div><br>Ah. When you said &quot;concurrent safe&quot;, I thought you meant within the application. You&#39;re looking for something like <a href="http://hackage.haskell.org/cgi-bin/hackage-scripts/package/anydbm">this</a>.<br>
&nbsp;</div></div>-- <br>Rich<br><br>LOI: <a href="https://www.google.com/reader/shared/00900594587109808626">https://www.google.com/reader/shared/00900594587109808626</a><br><br></div>