on develop help sign in
Eliminated unnecessary `seq` in headE
34503d1Ryan Trinkle
src/Reflex/Class.hs−1
@@ -470,7 +470,6 @@ headE :: (Reflex t, MonadHold t m, MonadFix m) => Event t a -> m (Event t a)
470headE e = do
470headE e = do
471 rec be <- hold e $ fmap (const never) e'
471 rec be <- hold e $ fmap (const never) e'
472 let e' = switch be
472 let e' = switch be
473− e' `seq` return ()
474 return e'
473 return e'
475
474
476-- | Create a new 'Event' that occurs on all but the first occurence of the
475-- | Create a new 'Event' that occurs on all but the first occurence of the