Thank you so much .. I am going to try out acid-state. I've been shying away from template-haskell ... but from the looks of it, acid-state/safecopy can do what I am looking for.
Regards,
Kashyap

On Thu, Dec 15, 2011 at 12:13 AM, Bas van Dijk <v.dijk.bas@gmail.com> wrote:
On 14 December 2011 15:22, Claude Heiland-Allen <claude@goto10.org> wrote:
> I ran into this very nightmare in one project, and was recommend safecopy
> [0] by someone on the #haskell IRC channel.  I've not (yet) used it but it
> looks very nice!
>
> [0] http://hackage.haskell.org/package/safecopy

Or better yet, use acid-state which is build on top of safecopy:

http://acid-state.seize.it/

Bas