packages feed

uni-events 2.2.1.0 → 2.2.2.0

raw patch · 2 files changed

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

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

+ Events.Events: instance Applicative Event
+ Events.Events: instance Functor Event
- Events.GuardedEvents: GuardedEvent :: !guard -> Event a -> !guard -> GuardedEvent guard a
+ Events.GuardedEvents: GuardedEvent :: !(guard -> Event a) -> !guard -> GuardedEvent guard a

Files

Events/Events.hs view
@@ -65,6 +65,8 @@  import Control.Exception import Control.Concurrent+import Control.Applicative+import Control.Monad  import Util.Computation @@ -365,6 +367,13 @@    return = doneEvent     fail str = always (ioError (userError str))++instance Applicative Event where+   pure = return+   (<*>) = ap++instance Functor Event where+   fmap  = liftM  thenGetEvent :: Event a -> (a -> Event b) -> Event b thenGetEvent event1 getEvent2 = event1 >>>= (\ val -> sync(getEvent2 val))
uni-events.cabal view
@@ -1,16 +1,15 @@ name:           uni-events-version:        2.2.1.0+version:        2.2.2.0 build-type:     Simple license:        LGPL license-file:   LICENSE author:         uniform@informatik.uni-bremen.de-maintainer:     Christian.Maeder@dfki.de+maintainer:     c.maeder@jacobs-university.de homepage:       http://www.informatik.uni-bremen.de/uniform/wb/ category:       Uniform synopsis:       Event handling for the uniform workbench description:    uni events cabal-version:  >= 1.4-Tested-With:    GHC==6.10.4, GHC==6.12.3  library   exposed-modules: