A liberalised re-implementation of cpp, the C pre-processor. http://projects.haskell.org/cpphs/

Version on this page:1.20.5
LTS Haskell 16.3:
Stackage Nightly 2020-06-29:
Latest on Hackage:

See all snapshots cpphs appears in

LicenseRef-LGPL licensed and maintained by Malcolm Wallace

Module documentation for 1.20.5

This version can be pinned in stack with:[email protected]:11aa50ae45120aceb660b8f21d915038cb0c99205dfaf73880af61c950e161e5,2336

Cpphs is a re-implementation of the C pre-processor that is both more compatible with Haskell, and itself written in Haskell so that it can be distributed with compilers.

This version of the C pre-processor is pretty-much feature-complete and compatible with traditional (K&R) pre-processors. Additional features include: a plain-text mode; an option to unlit literate code files; and an option to turn off macro-expansion.