[Haskell-cafe] pure Haskell database

Rich Neswold rich.neswold at gmail.com
Thu Sep 25 13:25:30 EDT 2008

On Thu, Sep 25, 2008 at 11:09 AM, Manlio Perillo
<manlio_perillo at libero.it>wrote:

> Rich Neswold ha scritto:
>> On Wed, Sep 24, 2008 at 4:17 PM, Manlio Perillo <manlio_perillo at libero.it<mailto:
>> manlio_perillo at libero.it>> wrote:
>>    I need a simple, concurrent safe, database, written in Haskell.
>>    A database with the interface of Data.Map would be great, since what
>>    I need to to is atomically increment some integer values, and I
>>    would like to avoid to use SQLite.
>> How about  "MVar (Map k Int)"?  or even "Map k (MVar Int)"?
> Yes, it is a solution; and I can run a thread that every N seconds writes
> the database to a file.
> But this works only if the database is used by only one process.

Ah. When you said "concurrent safe", I thought you meant within the
application. You're looking for something like


LOI: https://www.google.com/reader/shared/00900594587109808626
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080925/08d06b15/attachment.htm

More information about the Haskell-Cafe mailing list