Skip to content

Instantly share code, notes, and snippets.

@vakili
vakili / keybase.md
Created November 29, 2019 13:18
keybase.md

Keybase proof

I hereby claim:

  • I am vakili on github.
  • I am vakili (https://keybase.io/vakili) on keybase.
  • I have a public key ASCKqXguDL96pD_mk5KVbSUBVQakQUrKpjTQDlCf1QNQ3Qo

To claim this, I am signing this object:

@vakili
vakili / Life.hs
Created April 10, 2019 22:53
game of life
module Life where
-- a cell is identified by a pair of coordinates
type Cell = (Int, Int)
-- a cell is either live or dead
data State = Live | Dead deriving Eq
-- a grid assigns a state to each cell
type Grid = Cell -> State