1-- ghc -O2 -fspec-constr-recursive=10 -fmax-worker-args=16
2-- Convert the input file to camel case and write to stdout
4import Data.Maybe (fromJust, isJust)
5import System.Environment (getArgs)
6import System.IO (Handle, IOMode(..), openFile, stdout)
8import qualified Streamly.Prelude as S
9import qualified Streamly.Internal.FileSystem.Handle as FH
11camelCase :: Handle -> Handle -> IO ()
17 $ S.scanl' step (True, Nothing)
22 step (wasSpace, _) x =
23 if x == 0x0a || x >= 0x41 && x <= 0x5a
25 else if x >= 0x61 && x <= 0x7a
26 then (False, Just $ if wasSpace then x - 32 else x)
31 name <- fmap head getArgs
32 src <- openFile name ReadMode
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