2import qualified Data.Text.IO as TIO
4import qualified Text.HTML.TagSoup as Soup
5import qualified Text.HTML.Parser as Me
9 t <- TIO.readFile "test.html"
10 s <- readFile "test.html"
13 [ bench "fast parse Text" $ nf (Soup.parseTagsOptions Soup.parseOptionsFast) t
14 , bench "parse Text" $ nf (Soup.parseTagsOptions Soup.parseOptions) t
15 , bench "mine Text" $ nf Me.tagStream t
18 [ bench "fast parse Text" $ whnf (length . Soup.parseTagsOptions Soup.parseOptionsFast) t
19 , bench "parse Text" $ whnf (length . Soup.parseTagsOptions Soup.parseOptions) t
20 , bench "mine Text" $ whnf (length . Me.tagStream) t
24instance NFData t => NFData (Soup.Tag t) where
25 rnf (Soup.TagOpen t attrs) = rnf t `seq` rnf attrs `seq` ()
26 rnf (Soup.TagClose t) = rnf t `seq` ()
27 rnf (Soup.TagText t) = rnf t `seq` ()
28 rnf (Soup.TagComment t) = rnf t `seq` ()
29 rnf (Soup.TagWarning t) = rnf t `seq` ()
30 rnf (Soup.TagPosition _ _) = ()
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