1{-# LANGUAGE FlexibleContexts #-}
10import Reflex.EventWriter.Base
15 os1@[[Just [10,9,8,7,6,5,4,3,2,1]]] <- runApp' (unwrapApp testOrdering) $
19 os2@[[Just [1,3,5,7,9]],[Nothing,Nothing],[Just [2,4,6,8,10]],[Just [2,4,6,8,10],Nothing]]
20 <- runApp' (unwrapApp testSimultaneous) $ map Just $
29unwrapApp :: (Reflex t, Monad m) => (a -> EventWriterT t [Int] m ()) -> a -> m (Event t [Int])
31 ((), e) <- runEventWriterT $ x appIn
34testOrdering :: (Reflex t, Monad m) => Event t () -> EventWriterT t [Int] m ()
35testOrdering pulse = do
36 forM_ [10,9..1] $ \i -> tellEvent ([i] <$ pulse)
39testSimultaneous :: (Reflex t, Adjustable t m, MonadHold t m) => Event t (These () ()) -> EventWriterT t [Int] m ()
40testSimultaneous pulse = do
41 let e0 = fmapMaybe (^? here) pulse
42 e1 = fmapMaybe (^? there) pulse
43 forM_ [1,3..9] $ \i -> runWithReplace (tellEvent ([i] <$ e0)) $ ffor e1 $ \_ -> tellEvent ([i+1] <$ e0)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list