⏩ GHC 9.6.1 Announces Javascript Cross-Compilation

Tom Smykowski
2 min readMar 12, 2023

Update: The article got 100 claps prooving it is valuable to the community. I am glad for that and will write more about Haskell! Cheers!

In the final days of Javascript, Haskell announces cross-compilation technical preview to make Web purely functional for real

Haskell is a purely functional programming language that found its place in industrial applications, for example its used by Facebooka anti spam system.

Glasgow Haskell Compiler is the most famous, open source Haskell compiler available.

On tenth of March, 2023, Ben Gamari announced the release of GHC 9.6.1. I was reporting on the version 9.2.5 in November. Since that time the team came with some exciting news.

As announced GHC 9.6.1 the version makes it possible to cross compile code to WebAssembly and Javascript marking a milestone in Haskell history as it joins the group of Web supremacy languages.

The new functionality is in early stage and presented as a technical preview of a new angle that may revolutionize both Haskell usage as well as the Web development as it is.

As we can read in the release news:

GHC is not yet run-time…

--

--

Tom Smykowski

Software Engineer & Tech Editor. Top 2% on StackOverflow, 3mil views on Quora. Won Shattered Pixel Dungeon.