Skip to content

Instantly share code, notes, and snippets.

View andy-morris's full-sized avatar

andy morris andy-morris

View GitHub Profile
@andy-morris
andy-morris / gist:1378940
Created November 19, 2011 15:13
wootles
anders:DisML ± cat f.dis {git:DisML@pretty}!
fun type f: int*int -> int
| f (x,y) if x < y = x+y+7
| ... if x == y = x+y
| ... = y-x
anders:DisML ± dist/build/DisML/disml < f.dis {git:DisML@pretty}!
Program {unProgram = [TLDecls [FunDecl [FunD (Just (FunType (Id "f") (Type []
@andy-morris
andy-morris / CNEx.hs
Created October 14, 2011 11:26
purity police, arrest this man
{-# LANGUAGE DeriveDataTypeable #-}
module CNEx where
import Prelude hiding (catch)
import Data.Typeable
import Control.Exception
import System.Random
import System.IO.Unsafe
data ChuckNorris = ChuckNorris deriving (Typeable)