1{-# LANGUAGE NoImplicitPrelude #-}
2{-# LANGUAGE ScopedTypeVariables #-}
4{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
6module Main (main) where
11import qualified Data.Aeson.Parser.UnescapeFFI as FFI
12import qualified Data.Aeson.Parser.UnescapePure as Pure
14import qualified Data.ByteString.Char8 as BS
15import System.Environment (getArgs, withArgs)
22 "--pattern" : p : args_ -> k p args_
26 "--repeat" : n : args_ -> (args_, p, read n)
27 args_ -> (args_, p, 10000)
28 input = BS.concat $ replicate n $ BS.pack p
29 withArgs args $ defaultMain
30 [ bench "ffi" $ whnf FFI.unescapeText input
31 , bench "pure" $ whnf Pure.unescapeText input
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