1-- This script compares the strict and lazy Text APIs to ensure that
2-- they're reasonably in sync.
4{-# LANGUAGE OverloadedStrings #-}
6import qualified Data.Set as S
7import qualified Data.Text as T
11 let tidy pkg = (S.fromList . filter (T.isInfixOf "::") . T.lines .
12 T.replace "GHC.Int.Int64" "Int" .
14 T.replace (T.append (T.pack pkg) ".") "" . T.pack) `fmap`
15 readProcess "ghci" [] (":browse " ++ pkg)
16 let diff a b = mapM_ (putStrLn . (" "++) . T.unpack) . S.toList $
18 text <- tidy "Data.Text"
19 lazy <- tidy "Data.Text.Lazy"
20 list <- tidy "Data.List"
21 putStrLn "Text \\ List:"
24 putStrLn "Text \\ Lazy:"
27 putStrLn "Lazy \\ Text:"
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