← All repos

ghcjs

Haskell to JavaScript compiler, based on GHC

Browse cluster: Haskell tooling and libraries
1,355commits
52contributors
15languages

Tech stack & purpose

GHCJS is a Haskell to JavaScript compiler built on the GHC API. It includes a library and executable programs that generate JavaScript code from Haskell source, along with a customized variant of the ghc library. The project requires GHC, cabal-install 3.0, and the emscripten emsdk toolchain; it uses Node.js and various JavaScript libraries including Closure Library, Harmony Collections shims, and setImmediate polyfills for cross-browser compatibility. Development involves building the compiler with cabal or stack, then running ghcjs-boot to compile the boot libraries before the compiler can be used to build regular Haskell programs.

Community & reference links

Languages

Haskell
61.7%
JavaScript
18.2%
C
8.6%
Pascal
7.9%
Gnuplot
1.7%
Shell
0.5%
TypeScript
0.4%
CSS
0.3%
C++
0.3%
Game Maker Language
0.2%
PowerShell
0.0%
TeX
0.0%
HTML
0.0%
Dockerfile
0.0%
Python
0.0%

Contributors (top 30 of 52)