Command-line tool
ghc
brew/ghc
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Glorious Glasgow Haskell Compilation System
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
scoop install haskell
macOS
brew install ghc
Linux
brew install ghc
Find and compile all modules in the current directory
ghc Main
Compile a single file
ghc path/to/file.hs
Compile using extra optimization
ghc -O path/to/file.hs
Related command-line tools
- haskell-stack
Cross-platform program for developing Haskell projects haskell cabal-build stack stackage - darcs
Distributed version control system that tracks changes, via Haskell - compiledb
Generate a Clang compilation database for Make-based build systems - stylish-haskell
Haskell code prettifier - haskell-language-server
Integration point for ghcide and haskell-ide-engine. One IDE to rule them all - meson
Fast and user friendly build system foss open-source build-system meson ninja - hindent
Haskell pretty printer - ormolu
Formatter for Haskell source code
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents