<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Maybe acid-state [1]?<br><br>[1] <a href="http://hackage.haskell.org/package/acid-state-0.12.1/docs/Data-Acid.html">http://hackage.haskell.org/package/acid-state-0.12.1/docs/Data-Acid.html</a><br>

</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Dec 18, 2013 at 7:58 PM, Andrew Cowie <span dir="ltr"><<a href="mailto:andrew@operationaldynamics.com" target="_blank">andrew@operationaldynamics.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a Map. It's a lovely Map, with keys and values and everything.<br>
It's not _that_ large. Few 10s of MB at most. Unfortunately, I need to<br>
persist it somewhat reliably.<br>
<br>
I'd somewhat like to avoid having to use an external database (obviously<br>
a key/value store like Riak would work, but that's a major dependency to<br>
impose on the system) so I'm wondering if there is a low tech way to do<br>
this.<br>
<br>
I can control concurrent access to the file (or whatever), and the file<br>
system is robust. So that part is fine. I just need to externalize the<br>
map.<br>
<br>
I'm wondering if just using cereal or so would be sufficient (there is a<br>
Serialize instance, of course), or whether I should be using some<br>
acid-state thing, or a Haskell binding to gdbm,  or sqlite, or...<br>
<br>
Any suggestions?<br>
<br>
AfC<br>
Sydney<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Clark.<br><br><span style="font-family:courier new,monospace"><span style="color:rgb(153,153,153)"><font size="1">Key ID     : 0x78099922<br>Fingerprint: B292 493C 51AE F3AB D016  DD04 E5E3 C36F 5534 F907</font></span></span></div>


</div>