I'm working on a project which would generate a PHP data-access layer from a Haskell model. I'm wondering what libraries might be already be available for generating PHP or other types of code. The pretty-printing library is one option. Any other suggestions? Thanks in advance. Justin