Rewrite main to avoid use of length
Shorten defineVar slightly with modifyIORef
Refactor getVar, setVar, defineVar (no redundant lookup in defineVar)
Change REPL prompt to 'λ> '