hpp: A Haskell pre-processor
hpp
is a Haskell pre-processor that is also a
C89/C90-compatible pre-processor (with the addition of a
--cpp
flag). It is packaged as both a library and
an executable.
To use as a Haskell preprocessor for resolving #ifdef
conditionals and simple macro expansion while still
allowing multi-line string literals, an invocation might
look like,
hpp -DDEBUG Foo.hs
To use as a C preprocessor, an invocation might look like,
hpp -DDEBUG --cpp foo.c
To have GHC use hpp
as the C pre-processor, add this
line to the top of a Haskell source file that makes use
of the CPP
LANGUAGE
pragma.
{-# OPTIONS_GHC -cpp -pgmPhpp -optP--cpp #-}
Modules
[Index]
Downloads
- hpp-0.3.0.0.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1.0.0, 0.3.0.0, 0.3.1.0, 0.4.0, 0.4.1, 0.5.0, 0.5.0.1, 0.5.1, 0.5.2, 0.6.0, 0.6.0.1, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5 |
---|---|
Change log | CHANGELOG.md |
Dependencies | base (>=4.8 && <4.10), directory, filepath, hpp, time (>=1.5), transformers (>=0.4) [details] |
License | BSD-3-Clause |
Copyright | (C) 2015 Anthony Cowley |
Author | Anthony Cowley |
Maintainer | acowley@gmail.com |
Revised | Revision 1 made by HerbertValerioRiedel at 2016-01-05T18:29:34Z |
Category | Development |
Home page | https://github.com/acowley/hpp |
Source repo | head: git clone http://github.com/acowley/hpp.git |
Uploaded | by AnthonyCowley at 2015-11-25T19:32:59Z |
Distributions | LTSHaskell:0.6.5, NixOS:0.6.5, Stackage:0.6.5 |
Reverse Dependencies | 2 direct, 8 indirect [details] |
Executables | hpp |
Downloads | 11880 total (3 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2015-11-25 [all 1 reports] |