packages feed

acid-state 0.3.2 → 0.3.3

raw patch · 2 files changed

+3/−2 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

acid-state.cabal view
@@ -7,7 +7,7 @@ -- The package version. See the Haskell package versioning policy -- (http://www.haskell.org/haskellwiki/Package_versioning_policy) for -- standards guiding when and how versions should be incremented.-Version:             0.3.2+Version:             0.3.3  -- A short (one-line) description of the package. Synopsis:            Add ACID guarantees to any serializable Haskell data structure.
src/Data/Acid/Local.hs view
@@ -68,7 +68,8 @@  eventsToMethods :: [Event st] -> [MethodContainer st] eventsToMethods = map worker-    where worker (UpdateEvent fn) = Method (unUpdate . fn)+    where worker :: Event st -> MethodContainer st+          worker (UpdateEvent fn) = Method (unUpdate . fn)           worker (QueryEvent fn)  = Method (\ev -> do st <- State.get                                                       return (runReader (unQuery $ fn ev) st)                                            )