prep to compile intermediate rep to Haskell