on develop help sign in
Merge pull request #373 from reflex-frp/add-notready-instances
5bbfe7dJohn Ericson
ChangeLog.md+17
@@ -5,8 +5,13 @@
5* Data.WeakBag.traverse and Data.FastWeakBag.traverse have been
5* Data.WeakBag.traverse and Data.FastWeakBag.traverse have been
6 renamed to Data.WeakBag.traverse_ and Data.FastWeakBag.traverse_
6 renamed to Data.WeakBag.traverse_ and Data.FastWeakBag.traverse_
7 respectively.
7 respectively.
8+
8* Fixes a bug in `Reflex.Patch.MapWithMove.patchThatSortsMapWith` that was producing invalid `PatchMapWithMove`.
9* Fixes a bug in `Reflex.Patch.MapWithMove.patchThatSortsMapWith` that was producing invalid `PatchMapWithMove`.
9
10
11+* Add missing `NotReady` instances:
12+ - `instance NotReady (SpiderTimeline x) (SpiderHost x)`
13+ - `instance HasSpiderTimeline x => NotReady (SpiderTimeline x) (PerformEventT (SpiderTimeline x) (SpiderHost x))`
14+
10## 0.6.2.4
15## 0.6.2.4
11
16
12* Update to monoidal-containers 0.6
17* Update to monoidal-containers 0.6
@@ -18,7 +23,9 @@
18## 0.6.2.2
23## 0.6.2.2
19
24
20* Support these >= 1. Add `split-these` flag to control whether to use new these/semialign combination or not.
25* Support these >= 1. Add `split-these` flag to control whether to use new these/semialign combination or not.
26+
21* Update version bounds to fix some CI failures
27* Update version bounds to fix some CI failures
28+
22* Add travis CI configuration
29* Add travis CI configuration
23
30
24## 0.6.2.1
31## 0.6.2.1
@@ -44,21 +51,31 @@
44
51
45* Fix `holdDyn` so that it is lazy in its event argument
52* Fix `holdDyn` so that it is lazy in its event argument
46 These produce `DMap`s whose values needn't be `Identity`.
53 These produce `DMap`s whose values needn't be `Identity`.
54+
47* Stop using the now-deprecated `*Tag` classes (e.g., `ShowTag`).
55* Stop using the now-deprecated `*Tag` classes (e.g., `ShowTag`).
56+
48* Fix `holdDyn` so that it is lazy in its event argument.
57* Fix `holdDyn` so that it is lazy in its event argument.
49
58
50## 0.6.1.0
59## 0.6.1.0
51
60
52* Re-export all of `Data.Map.Monoidal`
61* Re-export all of `Data.Map.Monoidal`
62+
53* Fix `QueryT` and `RequesterT` tests
63* Fix `QueryT` and `RequesterT` tests
54
64
55## 0.6.0.0 -- 2019-03-20
65## 0.6.0.0 -- 2019-03-20
56
66
57* Deprecate `FunctorMaybe` in favor of `Data.Witherable.Filterable`. We still export `fmapMaybe`, `ffilter`, etc., but they all rely on `Filterable` now.
67* Deprecate `FunctorMaybe` in favor of `Data.Witherable.Filterable`. We still export `fmapMaybe`, `ffilter`, etc., but they all rely on `Filterable` now.
68+
58* Rename `MonadDynamicWriter` to `DynamicWriter` and add a deprecation for the old name.
69* Rename `MonadDynamicWriter` to `DynamicWriter` and add a deprecation for the old name.
70+
59* Remove many deprecated functions.
71* Remove many deprecated functions.
72+
60* Add a `Num` instance for `Dynamic`.
73* Add a `Num` instance for `Dynamic`.
74+
61* Add `matchRequestsWithResponses` to make it easier to use `Requester` with protocols that don't do this matching for you.
75* Add `matchRequestsWithResponses` to make it easier to use `Requester` with protocols that don't do this matching for you.
76+
62* Add `withRequesterT` to map functions over the request and response of a `RequesterT`.
77* Add `withRequesterT` to map functions over the request and response of a `RequesterT`.
78+
63* Suppress nil patches in `QueryT` as an optimization. The `Query` type must now have an `Eq` instance.
79* Suppress nil patches in `QueryT` as an optimization. The `Query` type must now have an `Eq` instance.
80+
64* Add `throttleBatchWithLag` to `Reflex.Time`. See that module for details.
81* Add `throttleBatchWithLag` to `Reflex.Time`. See that module for details.
src/Reflex/Spider/Internal.hs+9
@@ -103,6 +103,7 @@ import qualified Reflex.Host.Class
103import Reflex.NotReady.Class
103import Reflex.NotReady.Class
104import Reflex.Patch
104import Reflex.Patch
105import qualified Reflex.Patch.DMapWithMove as PatchDMapWithMove
105import qualified Reflex.Patch.DMapWithMove as PatchDMapWithMove
106+import Reflex.PerformEvent.Base (PerformEventT)
106
107
107#ifdef DEBUG_TRACE_EVENTS
108#ifdef DEBUG_TRACE_EVENTS
108import qualified Data.ByteString.Char8 as BS8
109import qualified Data.ByteString.Char8 as BS8
@@ -2705,3 +2706,11 @@ instance MonadAtomicRef (SpiderHostFrame x) where
2705instance PrimMonad (SpiderHostFrame x) where
2706instance PrimMonad (SpiderHostFrame x) where
2706 type PrimState (SpiderHostFrame x) = PrimState IO
2707 type PrimState (SpiderHostFrame x) = PrimState IO
2707 primitive = SpiderHostFrame . EventM . primitive
2708 primitive = SpiderHostFrame . EventM . primitive
2709+
2710+instance NotReady (SpiderTimeline x) (SpiderHost x) where
2711+ notReadyUntil _ = return ()
2712+ notReady = return ()
2713+
2714+instance HasSpiderTimeline x => NotReady (SpiderTimeline x) (PerformEventT (SpiderTimeline x) (SpiderHost x)) where
2715+ notReadyUntil _ = return ()
2716+ notReady = return ()