add new chinese translations
This commit is contained in:
29
pages.zh/common/ghc.md
Normal file
29
pages.zh/common/ghc.md
Normal 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}}`
|
Reference in New Issue
Block a user