packages feed

aivika-transformers 4.6 → 4.6.1

raw patch · 2 files changed

+4/−3 lines, 2 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Simulation.Aivika.Trans.DoubleLinkedList: listContains :: (Eq a, MonadRef m) => DoubleLinkedList m a -> a -> Event m Bool
+ Simulation.Aivika.Trans.DoubleLinkedList: listContains :: (Eq a, Functor m, MonadRef m) => DoubleLinkedList m a -> a -> Event m Bool
- Simulation.Aivika.Trans.DoubleLinkedList: listRemove :: (Eq a, MonadRef m) => DoubleLinkedList m a -> a -> Event m Bool
+ Simulation.Aivika.Trans.DoubleLinkedList: listRemove :: (Eq a, Functor m, MonadRef m) => DoubleLinkedList m a -> a -> Event m Bool

Files

Simulation/Aivika/Trans/DoubleLinkedList.hs view
@@ -28,6 +28,7 @@         freezeList) where   import Data.Maybe+import Data.Functor  import Control.Monad @@ -186,7 +187,7 @@  -- | Remove the specified element from the list and return a flag -- indicating whether the element was found and removed.-listRemove :: (Eq a, MonadRef m) => DoubleLinkedList m a -> a -> Event m Bool+listRemove :: (Eq a, Functor m, MonadRef m) => DoubleLinkedList m a -> a -> Event m Bool {-# INLINABLE listRemove #-} listRemove x v = fmap isJust $ listRemoveBy x (== v) @@ -222,7 +223,7 @@                            return (Just $ itemVal item)  -- | Detect whether the specified element is contained in the list.-listContains :: (Eq a, MonadRef m) => DoubleLinkedList m a -> a -> Event m Bool+listContains :: (Eq a, Functor m, MonadRef m) => DoubleLinkedList m a -> a -> Event m Bool {-# INLINABLE listContains #-} listContains x v = fmap isJust $ listContainsBy x (== v) 
aivika-transformers.cabal view
@@ -1,5 +1,5 @@ name:            aivika-transformers-version:         4.6+version:         4.6.1 synopsis:        Transformers for the Aivika simulation library description:     This package is a generalization of the aivika [1] simulation library