1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 12:45:59 +02:00

ghci: add page (#4576)

This commit is contained in:
Juri 2020-10-10 01:27:19 +02:00 committed by GitHub
parent 1659ff508b
commit 8994f18ea4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
pages/common/ghci.md Normal file
View file

@ -0,0 +1,24 @@
# ghci
> The Glasgow Haskell Compiler's interactive environment.
> More information: <https://downloads.haskell.org/ghc/latest/docs/html/users_guide/ghci.html>.
- Start a REPL (interactive shell):
`ghci`
- Start a REPL and load the specified Haskell source file:
`ghci {{source_file.hs}}`
- Start a REPL and enable a language option:
`ghci -X{{language_option}}`
- Start a REPL and enable some level of compiler warnings (e.g. `all` or `compact`):
`ghci -W{{warning_level}}`
- Start a REPL with a colon-separated list of directories for finding source files:
`ghci -i{{path/to/directory1}}:{{path/to/directory2}}`