Commit Graph

7 Commits

Author SHA1 Message Date
Felipe Lessa
f0e1005f18 Add Applicative imports for GHC 7.8. 2015-05-31 12:57:52 -03:00
Felipe Lessa
3e33c58af0
Generalize session data (huge commit). 2015-05-31 11:07:23 -03:00
Felipe Lessa
83faccf3f9 Use insertLookupWithKey when needing old value.
updateLookupWithKey returns original value only if it was deleted.  If
it was updated, it returns the updated value.  On both acid-state and
MockStorage we want the old value, though.

Now all acid-state tests are green once more.

MockStorage tests were already green because MockStorage does not
mantain a cached mapping of auth IDs to session IDs.
2015-05-28 02:03:12 -03:00
Felipe Lessa
8746b5eb4f Fix acid-state's implementation of {insert,replace}Session. 2015-05-28 01:28:07 -03:00
Felipe Lessa
82b7ebdca4 Fix example on how to use acid-state backend. 2015-05-28 01:27:40 -03:00
Felipe Lessa
c2bd20cd56 Add acid-state to main README, include better example of usage. 2015-05-25 22:09:25 -03:00
Felipe Lessa
bac54a5c70
New serversession-backend-acid-state package. 2015-05-25 21:31:47 -03:00