pushed handling of transforms down to Compile.hs