A

p

e

r

s

o

n

a

l

B

l

o

g

Haskell: Snake

Snake

Download

git clone https://github.com/manuel-io/snake.git

Update OS

yum update
yum install -y ghc-OpenGL-devel ghc-OpenGLRaw-devel
yum install -y freeglut-devel

Prepare

cabal update
cabal install cabal-install
cabal sandbox init

Build

cabal install --only-dependencies --enable-tests
cabal configure --enable-tests && cabal build && cabal test

Run

cabal run