Yampa 0.10.1.1 → 0.10.2
raw patch · 7 files changed
+31/−3 lines, 7 filesdep +deepseqPVP ok
version bump matches the API change (PVP)
Dependencies added: deepseq
API changes (from Hackage documentation)
+ FRP.Yampa.Event: instance NFData a => NFData (Event a)
Files
- CHANGELOG +11/−0
- Yampa.cabal +2/−2
- src/FRP/Yampa/Event.hs +8/−0
- tests/AFRPTestsFirstSecond.hs +2/−0
- tests/AFRPTestsLoopLaws.hs +2/−0
- tests/AFRPTestsSwitch.hs +1/−1
- tests/AFRPTestsUtils.hs +5/−0
CHANGELOG view
@@ -1,3 +1,14 @@+2015-06-19 Ivan Perez <ivan.perez@keera.co.uk>+ * src:/ instances of DeepSeq (see #5).+ * Yampa.cabal: Deepseq added to dependencies. Version bump (0.10.2).++2015-05-06 Ivan Perez <ivan.perez@keera.co.uk>+ * Yampa.cabal: disables tests by default. Version bump (0.10.1.1).++2015-05-05 Ivan Perez <ivan.perez@keera.co.uk>+ * Yampa.cabal: exposes internal modules for documentation purposes.+ Version bump (0.10.1)+ 2015-05-05 Ivan Perez <ivan.perez@keera.co.uk> * src/: Reorders code. Marks modules as deprecated. Removes useless functions. * Yampa.cabal: version bump (0.10.0)
Yampa.cabal view
@@ -1,5 +1,5 @@ name: Yampa-version: 0.10.1.1+version: 0.10.2 cabal-version: >= 1.8 license: BSD3 license-file: LICENSE@@ -43,7 +43,7 @@ library hs-source-dirs: src ghc-options : -O3 -Wall -fno-warn-name-shadowing- build-Depends: base < 5, random+ build-Depends: base < 5, random, deepseq exposed-modules: -- Main FRP modules FRP.Yampa
src/FRP/Yampa/Event.hs view
@@ -78,6 +78,8 @@ -- (==) :: Event a -> Event a -> Bool -- (<=) :: Event a -> Event a -> Bool +import Control.DeepSeq (NFData(..))+ import FRP.Yampa.Diagnostics import FRP.Yampa.Forceable @@ -161,6 +163,12 @@ force ea@NoEvent = ea force ea@(Event a) = force a `seq` ea +------------------------------------------------------------------------------+-- NFData instance+------------------------------------------------------------------------------+instance NFData a => NFData (Event a) where+ rnf NoEvent = ()+ rnf (Event a) = rnf a `seq` () ------------------------------------------------------------------------------ -- Internal utilities for event construction
tests/AFRPTestsFirstSecond.hs view
@@ -13,6 +13,8 @@ module AFRPTestsFirstSecond (first_trs, first_tr, second_trs, second_tr) where +import Data.Tuple (swap)+ import FRP.Yampa import AFRPTestsCommon
tests/AFRPTestsLoopLaws.hs view
@@ -13,6 +13,8 @@ module AFRPTestsLoopLaws (looplaws_trs, looplaws_tr) where +import Data.Tuple(swap)+ import FRP.Yampa import AFRPTestsCommon
tests/AFRPTestsSwitch.hs view
@@ -13,8 +13,8 @@ module AFRPTestsSwitch (switch_tr, switch_trs) where import FRP.Yampa+import FRP.Yampa.EventS import FRP.Yampa.Internals (Event(NoEvent, Event))-import FRP.Yampa.Utilities (snap) import AFRPTestsCommon
tests/AFRPTestsUtils.hs view
@@ -17,7 +17,12 @@ import FRP.Yampa import FRP.Yampa.Internals (Event(NoEvent, Event))+import FRP.Yampa.Conditional+import FRP.Yampa.Integration+import FRP.Yampa.EventS+import FRP.Yampa.Hybrid import FRP.Yampa.Utilities+import FRP.Yampa.Switches import AFRPTestsCommon