add new chinese translations
This commit is contained in:
24
pages.zh/common/ghci.md
Normal file
24
pages.zh/common/ghci.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# ghci
|
||||
|
||||
> 格拉斯哥哈斯克尔编译器的交互环境。
|
||||
> 更多信息:<https://downloads.haskell.org/ghc/latest/docs/html/users_guide/ghci.html>。
|
||||
|
||||
- 启动一个 REPL(交互式 shell):
|
||||
|
||||
`ghci`
|
||||
|
||||
- 启动一个 REPL 并加载指定的 Haskell 源文件:
|
||||
|
||||
`ghci {{source_file.hs}}`
|
||||
|
||||
- 启动一个 REPL 并启用语言选项:
|
||||
|
||||
`ghci -X{{language_option}}`
|
||||
|
||||
- 启动一个 REPL 并启用某种级别的编译器警告(例如 `all` 或 `compact`):
|
||||
|
||||
`ghci -W{{warning_level}}`
|
||||
|
||||
- 启动一个 REPL,并使用冒号分隔的目录列表来查找源文件:
|
||||
|
||||
`ghci -i{{path/to/directory1:path/to/directory2:...}}`
|
Reference in New Issue
Block a user