Skip to content
Previous version of LambdaCube 3D as Embedded Domain Specific Language in Haskell. Check the latest system:
Haskell Other
  1. Haskell 99.2%
  2. Other 0.8%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
samples fix typo Jun 22, 2018
lc-stunts-2.png updated Stunts screenshots Jun 30, 2012
stack.yaml stack support Jun 22, 2018

LambdaCube 3D as Embedded Domain Specific Language in Haskell.

Check the latest system:

LambdaCube 3D

LambdaCube 3D is a domain specific language and library that makes it possible to program GPUs in a purely functional style.
You can find more info in the development blog.


On Linux install the following libraries.

i.e. on Ubuntu:

sudo apt install libgl1-mesa-dev libxi-dev libxcursor-dev libxinerama-dev libxrandr-dev zlib1g-dev libpulse-dev

For other Linux distributions make sure the corresponing packages are installed.

These libraries required for OpenGL development.

Compile & Run:

To compile you will need Haskell Stack.

stack setup
stack build

stack exec -- lambdacube-hello
stack exec -- lambdacube-shadowmapping
stack exec -- lambdacube-cubemap
stack exec -- lambdacube-convolutionfilter


The lambdacube-edsl package contains the graphics EDSL and the OpenGL 3.2 backend.

LambdaCube Font Engine

Work-in-progress project to provide font rendering capabilities for LambdaCube 3D.

Lafonten demo

Demo Scene: Knot Theory

Knot Theory demo

Also check the code.


Quake III level viewer demo application for lambdacube-core. It requires the *.pk3 data files from original Quake 3 demo or full version of game. Addtionally custom made game levels are available from During startup the application will find all .pk3 files available in the current directory. The map name can be given as an argument of the q3demo executable.

Quake III level viewer


A revival of the classic racing game Stunts to serve as a non-toy-sized example for LambdaCube. It depends on the Bullet physics engine haskell binding. It is available from git repository only.
git clone git://
The bullet installation instructions can be found in bullet/README. In order to make the stunts demo work, you need to download the original game as per the instructions given by the program.

Stunts demo 1

Stunts demo 2

You can’t perform that action at this time.