apecs 0.9.0 → 0.9.1
raw patch · 3 files changed
+9/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +4/−0
- apecs.cabal +1/−1
- src/Apecs/System.hs +4/−2
CHANGELOG.md view
@@ -1,3 +1,7 @@+## [0.9.1]+### Changed+- (#63) Fixed bug where `modify` on non-existent components crashes+ ## [0.9.0] ### Added - (#59) Expose `makeMapComponents`, which creates `Component` instances with `Map` stores
apecs.cabal view
@@ -1,5 +1,5 @@ name: apecs-version: 0.9.0+version: 0.9.1 homepage: https://github.com/jonascarpay/apecs#readme license: BSD3 license-file: LICENSE
src/Apecs/System.hs view
@@ -62,8 +62,10 @@ sx :: Storage cx <- getStore sy :: Storage cy <- getStore lift$ do- x <- explGet sx ety- explSet sy ety (f x)+ possible <- explExists sx ety+ when possible $ do+ x <- explGet sx ety+ explSet sy ety (f x) -- | @modify@ operator ($~) = modify