mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 20:55:34 +02:00
ghc: more explicit
This commit is contained in:
parent
8e84a68711
commit
164f1c9997
1 changed files with 5 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
||||||
# ghc
|
# ghc
|
||||||
|
|
||||||
> The Glassgow Haskell Compiler, compiles and links Haskell source files.
|
> The Glasgow Haskell Compiler.
|
||||||
|
> Compiles and links Haskell source files.
|
||||||
|
|
||||||
- Find and compile all modules in the current directory:
|
- Find and compile all modules in the current directory:
|
||||||
|
|
||||||
|
@ -10,14 +11,14 @@
|
||||||
|
|
||||||
`ghc {{file.hs}}`
|
`ghc {{file.hs}}`
|
||||||
|
|
||||||
- Compile using optimization, for faster code:
|
- Compile using extra optimization:
|
||||||
|
|
||||||
`ghc -O {{file.hs}}`
|
`ghc -O {{file.hs}}`
|
||||||
|
|
||||||
- Stop after generating object files:
|
- Stop compilation after generating object files (.o):
|
||||||
|
|
||||||
`ghc -c {{file.hs}}`
|
`ghc -c {{file.hs}}`
|
||||||
|
|
||||||
- Run in interactive mode (REPL):
|
- Run Haskell interactive interpreter (REPL):
|
||||||
|
|
||||||
`ghci`
|
`ghci`
|
||||||
|
|
Loading…
Add table
Reference in a new issue