The cpphs package

[Tags: lgpl, library, program]

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.


[Skip to ReadMe]

Properties

Versions1.3, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.13.1, 1.13.2, 1.13.3, 1.14, 1.15, 1.16, 1.17, 1.17.1, 1.18, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.18.6, 1.18.7, 1.18.8, 1.18.9, 1.19, 1.19.1, 1.19.2 (info)
Change logCHANGELOG
Dependenciesbase (<4.4), haskell98 [details]
LicenseLGPL
Copyright2004-2009, Malcolm Wallace
AuthorMalcolm Wallace <Malcolm.Wallace@cs.york.ac.uk>
MaintainerMalcolm Wallace <Malcolm.Wallace@cs.york.ac.uk>
CategoryDevelopment
Home pagehttp://haskell.org/cpphs/
Executablescpphs
UploadedFri Aug 7 11:15:05 UTC 2009 by MalcolmWallace
UpdatedWed Dec 24 20:30:44 UTC 2014 by HerbertValerioRiedel to revision 1
DistributionsDebian:1.19, Fedora:1.18.2, FreeBSD:1.18.5, LTSHaskell:1.19.2, NixOS:1.19, Stackage:1.19.2
Downloads132408 total (771 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for cpphs-1.8

This directory contains 'cpphs', a simplified but robust
re-implementation of cpp, the C pre-processor, in Haskell.

TO BUILD
--------
Just use
    hmake cpphs [-package base]
or
    ghc --make cpphs [-o cpphs]		#  -o needed for ghc <= 6.4.1 ]
or
    runhugs cpphs	# or rename the script cpphs.hugs to cpphs


USAGE
-----
	cpphs  [filename | -Dsym | -Dsym=val | -Ipath]+  [-Ofile]
               [ --include=file ]*
               [ --nomacro | --noline | --nowarn | --strip | --strip-eol |
                 --pragma | --text | --hashes | --layout | --unlit ]*
               [ --cpp compatopts ]

For fuller details, see docs/index.html

If you want to use cpphs as a completely drop-in replacement for the
real cpp, that is, to accept the same arguments, and have broadly
the same behaviour in response to them, then use the --cpp compatibility
option.


COPYRIGHT
---------
Copyright (c) 2004-2009 Malcolm Wallace (Malcolm.Wallace@cs.york.ac.uk)
except for Text.ParserCombinators.HuttonMeijer (Copyright (c) 1995
Graham Hutton and Erik Meijer).


LICENCE
-------
These library modules are distributed under the terms of the LGPL.
The application module 'cpphs.hs' is GPL.

This software comes with no warranty.  Use at your own risk.


WEBSITE
-------
http://haskell.org/cpphs/
http://www.cs.york.ac.uk/fp/cpphs/
darcs get http://www.cs.york.ac.uk/fp/darcs/cpphs