
7 Oct
2015
7 Oct
'15
5:48 p.m.
On Wed, Oct 07, 2015 at 01:34:21PM -0400, Michael Orlitzky wrote:
Instead of using #ifdef to handle four different compilers, keep a branch for each. Git is designed to make this easy, and it's usually trivial to merge changes from the master branch back into e.g. the ghc-7.8 branch. That way the code in your master branch stays clean. When you want to stop supporting an old GHC, delete that branch.
I suspect `cabal install your-library` without CPP would explode in the face of (some of) your users though.