cpphs

Simplified cpp-a-like preprocessor for Haskell

Install

All systems
curl cmd.cat/cpphs.sh
Debian Debian
apt-get install cpphs
Ubuntu
apt-get install cpphs
Arch Arch Linux
pacman -S cpphs
image/svg+xml Kali Linux
apt-get install cpphs
Fedora
dnf install cpphs
Windows (WSL2)
sudo apt-get update sudo apt-get install cpphs
Raspbian
apt-get install cpphs

cpphs

Simplified cpp-a-like preprocessor for Haskell

The C pre-processor has been widely used in Haskell source code. It enables conditional compilation for different compilers, different versions of the same compiler, and different OS platforms. It is also occasionally used for its macro language, which can enable certain forms of platform-specific detail-filling, such as the tedious boilerplate generation of instance definitions and FFI declarations. However, gcc's cpp has recently been evolving to more strictly adhere to the C standard. This has had the effect of making it increasingly incompatible with Haskell's syntax. This is a cpp-a-like designed with Haskell's syntax in mind.

haskell-cpphs

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