> Is there a CPP written in Haskell and packaged as a library? Yes, cpphs, which can be used either as a stand-alone tool or as a library. http://haskell.org/cpphs Regards, Malcolm