1import System.Environment
10 let oname = case args of
11 [] -> "../Data/Text/Internal/Fusion/CaseMapping.hs"
13 psc <- parseSC "SpecialCasing.txt"
14 pcf <- parseCF "CaseFolding.txt"
16 Left err -> print err >> return undefined
19 Left err -> print err >> return undefined
21 h <- openFile oname WriteMode
22 let comments = map ("--" ++) $
23 take 2 (cfComments cfs) ++ take 2 (scComments scs)
25 ["{-# LANGUAGE Rank2Types #-}"
26 ,"-- AUTOMATICALLY GENERATED - DO NOT EDIT"
27 ,"-- Generated by scripts/CaseMapping.hs"] ++
30 ,"module Data.Text.Internal.Fusion.CaseMapping where"
32 ,"import Data.Text.Internal.Fusion.Types"
34 mapM_ (hPutStrLn h) (mapSC "upper" upper toUpper scs)
35 mapM_ (hPutStrLn h) (mapSC "lower" lower toLower scs)
36 mapM_ (hPutStrLn h) (mapSC "title" title toTitle scs)
37 mapM_ (hPutStrLn h) (mapCF cfs)
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