1{-# LANGUAGE FlexibleContexts #-}
3import Control.Monad.IO.Class
6import qualified Graphics.UI.Gtk as Gtk
8import Reflex.Spider.Internal (SpiderHostFrame)
12 getFirstEventAndHalt return
13 putStrLn "stopped once"
15 forM_ [1 .. 1000] $ \i -> getFirstEventAndHalt return
16 putStrLn "stopped many times"
18type SpiderM = Widget Spider (Gui Spider (WithWebView SpiderHost) SpiderHostFrame)
20getFirstEventAndHalt :: (Event Spider () -> SpiderM (Event Spider ())) -> IO ()
21getFirstEventAndHalt action = mainWidget $ do
26 performEvent_ (quit <$ event)
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