packages feed

apecs 0.2.4.6 → 0.2.4.7

raw patch · 2 files changed

+5/−5 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Apecs: owners :: forall w c. Has w c => System w (Slice c)
+ Apecs: owners :: forall c w. Has w c => System w (Slice c)
- Apecs: rmap' :: forall world r w. (Has world w, Has world r, Store (Storage r), Store (Storage w)) => (r -> Safe w) -> System world ()
+ Apecs: rmap' :: forall world r w. (Has world w, Has world r) => (r -> Safe w) -> System world ()
- Apecs: wmap :: forall world r w. (Has world w, Has world r, Store (Storage r), Store (Storage w)) => (Safe r -> w) -> System world ()
+ Apecs: wmap :: forall world r w. (Has world w, Has world r) => (Safe r -> w) -> System world ()
- Apecs: wmap' :: forall world r w. (Has world w, Has world r, Store (Storage r), Store (Storage w)) => (Safe r -> Safe w) -> System world ()
+ Apecs: wmap' :: forall world r w. (Has world w, Has world r) => (Safe r -> Safe w) -> System world ()
- Apecs.System: owners :: forall w c. Has w c => System w (Slice c)
+ Apecs.System: owners :: forall c w. Has w c => System w (Slice c)
- Apecs.System: rmap' :: forall world r w. (Has world w, Has world r, Store (Storage r), Store (Storage w)) => (r -> Safe w) -> System world ()
+ Apecs.System: rmap' :: forall world r w. (Has world w, Has world r) => (r -> Safe w) -> System world ()
- Apecs.System: wmap :: forall world r w. (Has world w, Has world r, Store (Storage r), Store (Storage w)) => (Safe r -> w) -> System world ()
+ Apecs.System: wmap :: forall world r w. (Has world w, Has world r) => (Safe r -> w) -> System world ()
- Apecs.System: wmap' :: forall world r w. (Has world w, Has world r, Store (Storage r), Store (Storage w)) => (Safe r -> Safe w) -> System world ()
+ Apecs.System: wmap' :: forall world r w. (Has world w, Has world r) => (Safe r -> Safe w) -> System world ()

Files

apecs.cabal view
@@ -1,5 +1,5 @@ name:                apecs-version:             0.2.4.6+version:             0.2.4.7 homepage:            https://github.com/jonascarpay/apecs#readme license:             BSD3 license-file:        LICENSE
src/Apecs/System.hs view
@@ -23,7 +23,7 @@  -- | A slice containing all entities with component @c@ {-# INLINE owners #-}-owners :: forall w c. Has w c => System w (Slice c)+owners :: forall c w. Has w c => System w (Slice c) owners = do s :: Storage c <- getStore             liftIO$ Slice <$> explMembers s @@ -152,7 +152,7 @@  -- | Maps a function over all entities with a @r@, and writes or deletes their @w@ {-# INLINE rmap' #-}-rmap' :: forall world r w. (Has world w, Has world r, Store (Storage r), Store (Storage w))+rmap' :: forall world r w. (Has world w, Has world r)       => (r -> Safe w) -> System world () rmap' f = do sr :: Storage r <- getStore              sw :: Storage w <- getStore@@ -163,7 +163,7 @@  -- | For all entities with a @w@, this map reads their @r@ and writes their @w@ {-# INLINE wmap #-}-wmap :: forall world r w. (Has world w, Has world r, Store (Storage r), Store (Storage w))+wmap :: forall world r w. (Has world w, Has world r)      => (Safe r -> w) -> System world () wmap f = do sr :: Storage r <- getStore             sw :: Storage w <- getStore@@ -174,7 +174,7 @@  -- | For all entities with a @w@, this map reads their @r@ and writes or deletes their @w@ {-# INLINE wmap' #-}-wmap' :: forall world r w. (Has world w, Has world r, Store (Storage r), Store (Storage w))+wmap' :: forall world r w. (Has world w, Has world r)       => (Safe r -> Safe w) -> System world () wmap' f = do sr :: Storage r <- getStore              sw :: Storage w <- getStore