Hi Matthew, thank you for your helpful pointers. I've checked out the most recent version of MLton using subversion, and am using the workaround of dropping the deepFlatten pass that you suggested. Regards, Joe