Yampa 0.14.4 → 0.14.5
raw patch · 4 files changed
+19/−15 lines, 4 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG +6/−0
- Yampa.cabal +1/−1
- src/FRP/Yampa/Event.hs +11/−13
- src/FRP/Yampa/Task.hs +1/−1
CHANGELOG view
@@ -1,3 +1,9 @@+2023-10-07 Ivan Perez <ivan.perez@keera.co.uk>+ * Version bump (0.14.5) (#278).+ * Define Yampa.FRP.Task.return in terms of pure (#276).+ * Add link to new publication (#277).+ * Make FRP.Yampa.Event.maybeToEvent public (#267).+ 2023-08-07 Ivan Perez <ivan.perez@keera.co.uk> * Version bump (0.14.4) (#274). * Introduce benchmark (#167).
Yampa.cabal view
@@ -30,7 +30,7 @@ build-type: Simple name: Yampa-version: 0.14.4+version: 0.14.5 author: Henrik Nilsson, Antony Courtney maintainer: Ivan Perez (ivan.perez@keera.co.uk) homepage: https://github.com/ivanperez-keera/Yampa/
src/FRP/Yampa/Event.hs view
@@ -35,9 +35,6 @@ , noEventFst , noEventSnd - -- * Internal utilities for event construction- , maybeToEvent- -- * Utility functions similar to those available for Maybe , event , fromEvent@@ -64,6 +61,10 @@ , filterE , mapFilterE , gate++ -- * Utilities for easy event construction+ , maybeToEvent+ ) where @@ -167,16 +168,6 @@ rnf NoEvent = () rnf (Event a) = rnf a `seq` () --- * Internal utilities for event construction---- These utilities are to be considered strictly internal to Yampa for the time--- being.---- | Convert a maybe value into a event ('Event' is isomorphic to 'Maybe').-maybeToEvent :: Maybe a -> Event a-maybeToEvent Nothing = NoEvent-maybeToEvent (Just a) = Event a- -- * Utility functions similar to those available for Maybe -- | An event-based version of the maybe function.@@ -304,3 +295,10 @@ gate :: Event a -> Bool -> Event a _ `gate` False = NoEvent e `gate` True = e++-- * Utilities for easy event construction++-- | Convert a maybe value into a event ('Event' is isomorphic to 'Maybe').+maybeToEvent :: Maybe a -> Event a+maybeToEvent Nothing = NoEvent+maybeToEvent (Just a) = Event a
src/FRP/Yampa/Task.hs view
@@ -110,7 +110,7 @@ instance Monad (Task a b) where tk >>= f = Task (\k -> unTask tk (\c -> unTask (f c) k))- return x = Task (\k -> k x)+ return = pure -- Let's check the monad laws: --