@@ -203,14 +203,10 @@ subscribeAndRead = unEvent
203"cacheEvent/pushCheap" forall f e. pushCheap f (cacheEvent e) = cacheEvent (pushCheap f e)
203"cacheEvent/pushCheap" forall f e. pushCheap f (cacheEvent e) = cacheEvent (pushCheap f e)
204"hold/cacheEvent" forall f e. hold f (cacheEvent e) = hold f e
204"hold/cacheEvent" forall f e. hold f (cacheEvent e) = hold f e
207− "subscribeAndRead/cacheEvent" forall e. subscribeAndRead (cacheEvent e) = subscribeAndRead e
210-- | Construct an 'Event' equivalent to that constructed by 'push', but with no
207-- | Construct an 'Event' equivalent to that constructed by 'push', but with no
211-- caching; if the computation function is very cheap, this is (much) more
208-- caching; if the computation function is very cheap, this is (much) more
212-- efficient than 'push'
209-- efficient than 'push'
213−{- INLINE [1] pushCheap #-}
214{-# NOINLINE pushCheap #-}
210{-# NOINLINE pushCheap #-}
215pushCheap :: HasSpiderTimeline x => (a -> ComputeM x (Maybe b)) -> Event x a -> Event x b
211pushCheap :: HasSpiderTimeline x => (a -> ComputeM x (Maybe b)) -> Event x a -> Event x b
216pushCheap f e = Event $ \sub -> do
212pushCheap f e = Event $ \sub -> do
@@ -803,7 +799,6 @@ instance HasSpiderTimeline x => Defer (SomeResetCoincidence x) (EventM x) where
803 getDeferralQueue = asksEventEnv eventEnvResetCoincidences
799 getDeferralQueue = asksEventEnv eventEnvResetCoincidences
805-- Note: hold cannot examine its event until after the phase is over
801-- Note: hold cannot examine its event until after the phase is over
806−{- SPECIALIZE hold :: (HasSpiderTimeline x, Patch p) => PatchTarget p -> Event x p -> EventM x (Hold x p) #-}
807{-# INLINE [1] hold #-}
802{-# INLINE [1] hold #-}
808hold :: (Patch p, Defer (SomeHoldInit x) m) => PatchTarget p -> Event x p -> m (Hold x p)
803hold :: (Patch p, Defer (SomeHoldInit x) m) => PatchTarget p -> Event x p -> m (Hold x p)
809hold v0 e = do
804hold v0 e = do