Handle methods correctly in Compiler.hs.