Glasgow Haskell Compiler — The Glasgow Haskell Compiler (original) (raw)
GHC is a state-of-the-art, open source compiler and interactive environment for the functional languageHaskell.
Highlights:
- GHC supports the entire **Haskell 2010 language**plus a wide variety of extensions.
- GHC has particularly good support for concurrency and parallelism, including support for Software Transactional Memory.
- GHC works on numerous platforms including Windows, macOS, Linux, and several different processor architectures. There are detailed **instructions**for porting GHC to new platforms.
- GHC has extensive optimisation capabilities, including inter-module optimisation. Take a look at GHC's perfomance on The Computer Language Benchmarks Game.
- GHC compiles Haskell programs either directly to native code or by using LLVM as a back-end. GHC can also generate C code as an intermediate target for porting to new platforms. The**interactive environment** quickly compiles Haskell to bytecode, and supports execution of mixed bytecode/compiled programs.
- Profiling is supported, both by time/allocation and various kinds of heap profiling.
- GHC comes with several libraries and thousands more are available onHackage.
- GHC is supported by a great set of tooling, from language servers tobuild systems to verification tools, to make writing your program a joy.
- GHC is a breeze to install using ghcup or Stack
GHC is heavily dependent on its users and contributors. Please come and join us on GitLab, Matrix, Discourse, or ourmailing lists to share your comments, suggestions, bug reports and contributions!
We are an open-source project developed and guided by our contributors. However, some larger strategic decisions are undertaken by a smaller group of core contributors. See the ghc-hqproject for details on our governance structure.
GHC development is facilitated by a number of generous sponsors including but not limited to: