Merge pull request #868 from alx741/ghc

ghc: add page
waldyrious/alt-syntax
Leandro Ostera 2016-05-07 12:48:57 +02:00
commit 89ad0da38f
1 changed files with 24 additions and 0 deletions

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`