add new chinese translations

This commit is contained in:
2024-12-30 15:25:56 +08:00
parent a850046d7b
commit 0d798759fd
5418 changed files with 105800 additions and 7052 deletions

29
pages.zh/common/ghc.md Normal file
View File

@@ -0,0 +1,29 @@
# ghc
> 格拉斯哥哈斯克尔编译器。
> 编译和链接哈斯克尔源文件。
> 更多信息:<https://www.haskell.org/ghc>。
- 查找并编译当前目录中的所有模块:
`ghc Main`
- 编译单个文件:
`ghc {{path/to/file.hs}}`
- 使用额外优化进行编译:
`ghc -O {{path/to/file.hs}}`
- 在生成目标文件(.o后停止编译
`ghc -c {{path/to/file.hs}}`
- 启动 REPL交互式 shell
`ghci`
- 评估单个表达式:
`ghc -e {{expression}}`