1{-# LANGUAGE FlexibleContexts, GADTs #-}
9import Reflex.EventWriter
14 os1@[[Just [10,9,8,7,6,5,4,3,2,1]]] <- runApp' (unwrapApp testOrdering) $
18 os2@[[Just [1,3,5,7,9]],[Nothing,Nothing],[Just [2,4,6,8,10]],[Just [2,4,6,8,10],Nothing]]
19 <- runApp' (unwrapApp testSimultaneous) $ map Just $
28unwrapApp :: (Reflex t, Monad m) => (a -> EventWriterT t [Int] m ()) -> a -> m (Event t [Int])
30 ((), e) <- runEventWriterT $ x appIn
33testOrdering :: (Reflex t, Monad m) => Event t () -> EventWriterT t [Int] m ()
34testOrdering pulse = do
35 forM_ [10,9..1] $ \i -> tellEvent ([i] <$ pulse)
38testSimultaneous :: (Reflex t, MonadAdjust t m, MonadHold t m) => Event t (These () ()) -> EventWriterT t [Int] m ()
39testSimultaneous pulse = do
40 let e0 = fmapMaybe (^? here) pulse
41 e1 = fmapMaybe (^? there) pulse
42 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