A liberalised re-implementation of cpp, the C pre-processor.


Version on this page:1.19.2
LTS Haskell 22.22:
Stackage Nightly 2024-05-19:
Latest on Hackage:

See all snapshots cpphs appears in

LicenseRef-LGPL licensed and maintained by Malcolm Wallace
This version can be pinned in stack with:cpphs-1.19.2@sha256:b620302ca9bf0e2fcbe8e44275c7f7aefc44e6643215d95b021804c35e66d00d,2276

Module documentation for 1.19.2

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.