2module ExtractNoscript (extract) where
6extract = concatMap (\s -> "<p>" ++ s ++ "</p>") . extract'
12 Binop op e1 e2 -> case (op, f e1, f e2) of
13 ("++", [s1], [s2]) -> [s1 ++ s2]
14 (_ , ss1 , ss2 ) -> ss1 ++ ss2
16 App (App (Var "link") src) txt ->
17 case (f src, f txt) of
18 ([s1],[s2]) -> [ "<a href=\"" ++ s1 ++ "\">" ++ s2 ++ "</a>" ]
19 ( ss1, ss2) -> ss1 ++ ss2
20 App e1 e2 -> f e1 ++ f e2
21 If eb et ef -> f et ++ f ef
22 Let defs e -> concatMap (f . snd) defs ++ f e
24 Case e cases -> concatMap (f . snd) cases
25 Data _ es -> concatMap f es
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