Minor refactoring of Compiler.hs