Haskell is the world’s best programming language, but let’s face the harsh reality that a lot of times in life you’ll have to write in other programming languages. But alas you have been fully Haskell-brained and lost all ability to program unless it is type-directed, you don’t even know how to start writing a program without imagining its shape as a type first. Well, fear not. The foundational theory behind Algebraic Data Types and Generalized Algebraic Data Types (ADTs and GADTs) ar...| in Code
In this article, we show how to use TypeScript to implement Haskell concepts like algebraic data types, higher-kinded types, tagless final, and more.| Functional Programming in TypeScript