Name : ghc-hpp
| |
Version : 0.4.0
| Vendor : openSUSE
|
Release : lp150.1.19
| Date : 2018-05-13 05:44:26
|
Group : Development/Languages/Other
| Source RPM : ghc-hpp-0.4.0-lp150.1.19.src.rpm
|
Size : 3.78 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : A Haskell pre-processor
|
Description :
hpp is a Haskell pre-processor that is also a 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 macro
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 #-}
Or add this line to your .cabal file:
ghc-options: -pgmPhpp
Note that you will need to ensure that the hpp executable is available in your build environment (e.g. you can add hpp as a build-depends in your .cabal file).
|
RPM found in directory: /vol/rzm3/linux-opensuse/distribution/leap/15.0/repo/oss/x86_64 |