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"
12 [ bench "fast parse Text" $ nf (Soup.parseTagsOptions Soup.parseOptionsFast) t
13 , bench "parse Text" $ nf (Soup.parseTagsOptions Soup.parseOptions) t
14 , bench "mine Text" $ nf Me.tagStream t
17 [ bench "fast parse Text" $ whnf (length . Soup.parseTagsOptions Soup.parseOptionsFast) t
18 , bench "parse Text" $ whnf (length . Soup.parseTagsOptions Soup.parseOptions) t
19 , bench "mine Text" $ whnf (length . Me.tagStream) t
23instance NFData t => NFData (Soup.Tag t) where
24 rnf (Soup.TagOpen t attrs) = rnf t `seq` rnf attrs `seq` ()
25 rnf (Soup.TagClose t) = rnf t `seq` ()
26 rnf (Soup.TagText t) = rnf t `seq` ()
27 rnf (Soup.TagComment t) = rnf t `seq` ()
28 rnf (Soup.TagWarning t) = rnf t `seq` ()
29 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