Questions tagged [acid-state]

A Haskell library that adds ACID (Atomicity, Consistency, Isolation and Durability) guarantees to any serializable Haskell data structure.

See

24 questions
1
vote
1 answer

Unable to cabal-install acid-state on Haskell Platform 2012.2.0.0 (Windows XP)

Using cabal, I tried to install acid-state on Haskell Platform 2012.2.0.0 (Windows XP) but got the following error: src-win32\FileIO.hs:43:5: Not in scope: catchIO Perhaps you meant `catch' (imported from Prelude) src-win32\FileIO.hs:55:6: …
user1023733
  • 805
  • 5
  • 14
1
vote
2 answers

Snap, IO and acid-state

Trying to use acid-state in Snap, and I hit a roadblock. Here is what I got so far. First my acid-state related objects (it's a dummy book with a isbn number): {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE GeneralizedNewtypeDeriving…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272
1
vote
1 answer

Retrieving pure values from acid state queries

This seems like something that should be easy but how do I get a pure value out of a query if I am using AcidState's Data.Acid.Memory.Pure module. I guess I can generalize the question to "how do I get any value out of the Update monad?". You see,…
Eric
  • 663
  • 4
  • 14
0
votes
0 answers

How can I use Transaction rollback with Multiple forms in Django

I have four forms and I need them to be saved one by one however when any one form yields validation error then I need the data saved in the database to be removed. I understand the transaction rollback with Django query but not able to figure out…
mayank
  • 1
0
votes
1 answer

How to execute Play 2 only if Play 1 succeeds in Ansible

I have two Plays having one task each. The first Play checks if the /var/test.dat exists on each target. Only if the first play is successful do I want the second play to run which executes these scripts in parallel. If the first play fails i.e the…
Ashar
  • 2,942
  • 10
  • 58
  • 122
0
votes
1 answer

using type classes to provide alternative implementations for when using Acid-State

I wrote a web application using scotty and acid state, now i would like to use type classes to be able to provide alternative implementations for the capabilities of my application for testing. I get the general idea of it and am able to apply it so…
0
votes
1 answer

JavaScript Multi-statement Transaction in Marklogic

I wanted to write a multi-statement transaction in server-side JavaScript in marklogic. What I wanted to achieve is, do an update transaction and then write a query statement which queries for the updated document and confirm that the update is…
0
votes
1 answer

Trying to bring HSP and Acid-state together in a form with Happstack

I followed the Happstack Crash Course and now I am trying to bring different things together: From "Type-Safe Form processing using reform" (http://happstack.com/docs/crashcourse/Reform.html#reform) I have coded this register form: register ::…
Flo
  • 459
  • 4
  • 7
0
votes
1 answer

acid-state example error

I'm trying to start using acid-state for a project, but I'm running into trouble running the demos. Running HelloWorld.hs from this example collection on my 64-bit box gives me the errors acid-state.hs:26:7: No instance for (MonadState …
Inaimathi
  • 13,853
  • 9
  • 49
  • 93
1
2