packages feed

apecs 0.4.0.0 → 0.4.0.1

raw patch · 2 files changed

+3/−2 lines, 2 filesdep ~basePVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: base

API changes (from Hackage documentation)

+ Apecs.Util: instance GHC.Base.Semigroup Apecs.Util.EntityCounter
- Apecs: asks :: MonadReader r m => (r -> a) -> m a
+ Apecs: asks :: MonadReader r m => r -> a -> m a
- Apecs: lift :: MonadTrans t => forall (m :: * -> *) a. Monad m => m a -> t m a
+ Apecs: lift :: (MonadTrans t, Monad m) => m a -> t m a
- Apecs: liftIO :: MonadIO m => forall a. () => IO a -> m a
+ Apecs: liftIO :: MonadIO m => IO a -> m a

Files

apecs.cabal view
@@ -1,5 +1,5 @@ name:                apecs-version:             0.4.0.0+version:             0.4.0.1 homepage:            https://github.com/jonascarpay/apecs#readme license:             BSD3 license-file:        LICENSE
src/Apecs/Util.hs view
@@ -25,6 +25,7 @@ import           Control.Applicative  (liftA2) import           Control.Monad.Reader (liftIO) import           Data.Monoid+import           Data.Semigroup import           Data.Proxy import           System.CPUTime import           System.Mem           (performMajorGC)@@ -39,7 +40,7 @@  -- | Component used by newEntity to track the number of issued entities. --   Automatically added to any world created with @makeWorld@-newtype EntityCounter = EntityCounter {getCounter :: Sum Int} deriving (Monoid, Eq, Show)+newtype EntityCounter = EntityCounter {getCounter :: Sum Int} deriving (Semigroup, Monoid, Eq, Show)  instance Component EntityCounter where   type Storage EntityCounter = Global EntityCounter