1module System.IO.UTF8 where
5import qualified Data.ByteString as BS
6import qualified Data.ByteString.UTF8 as UTF8
8import qualified Data.Text.Encoding as TE
10readUTF8FileT :: FilePath -> IO Text
12 fmap TE.decodeUtf8 (BS.readFile inFile)
14writeUTF8FileT :: FilePath -> Text -> IO ()
15writeUTF8FileT inFile text =
16 BS.writeFile inFile (TE.encodeUtf8 text)
18readUTF8File :: FilePath -> IO String
20 fmap UTF8.toString (BS.readFile inFile)
22writeUTF8File :: FilePath -> String -> IO ()
23writeUTF8File inFile text =
24 BS.writeFile inFile (UTF8.fromString 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