1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 03:17:57 +01:00

Merge pull request #868 from alx741/ghc

ghc: add page
This commit is contained in:
Leandro Ostera 2016-05-07 12:48:57 +02:00
commit 89ad0da38f

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

@ -0,0 +1,24 @@
# ghc
> The Glasgow Haskell Compiler.
> Compiles and links Haskell source files.
- Find and compile all modules in the current directory:
`ghc Main`
- Compile a single file:
`ghc {{file.hs}}`
- Compile using extra optimization:
`ghc -O {{file.hs}}`
- Stop compilation after generating object files (.o):
`ghc -c {{file.hs}}`
- Run Haskell interactive interpreter (REPL):
`ghci`