Skip to content

Instantly share code, notes, and snippets.

Karl-Oskar Rikås funrep

Block or report user

Report or block funrep

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jozefg / closconv.lhs
Last active May 29, 2019
Tutorial on Closure Conversion and Lambda Lifting
View closconv.lhs
This is my short-ish tutorial on how to implement closures in
a simple functional language: Foo.
First, some boilerplate.
> {-# LANGUAGE DeriveFunctor, TypeFamilies #-}
> import Control.Applicative
> import Control.Monad.Gen
> import Control.Monad.Writer
> import Data.Functor.Foldable
HeinrichApfelmus / GameLoop.hs
Created Oct 2, 2012
Game loop in reactive-banana
View GameLoop.hs
Implementation of an "industry strength" game loop with fixed time step
and variable fps.
See also
{-# LANGUAGE NoMonomorphismRestriction #-}
module Main where
You can’t perform that action at this time.