<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">1. It doesn’t actually get used by Cabal (as of several years): <a href="https://github.com/haskell/cabal/issues/4278" class="">https://github.com/haskell/cabal/issues/4278</a><div class=""><br class=""></div><div class="">2. cabal-install does cross-compilation + preprocessors wrong. By default using ghc as preprocessor works.</div><div class=""><br class=""></div><div class="">I think some of the reasons for using cpphs no longer apply (e.g. hugs on windows)</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Vanessa McHale<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Sep 19, 2022, at 9:19 PM, Anthony Clayden <<a href="mailto:anthony.d.clayden@gmail.com" class="">anthony.d.clayden@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Thank you to the author and maintainers of cpphs  <a href="https://hackage.haskell.org/package/cpphs" class="">https://hackage.haskell.org/package/cpphs</a><div class=""><br class=""></div><div class="">It has tightly-focussed functionality for what I wanted to do: a more haskell-friendly counterpart to cpp.</div><div class=""><br class=""></div><div class="">How to get it to behave as I wanted wasn't always obvious. I made some notes  <a href="https://stackoverflow.com/a/73768057/2840542" class="">https://stackoverflow.com/a/73768057/2840542</a></div><div class=""><br class=""></div><div class="">Haskell libraries generally use cpp -- and then users complain how awkward it can be. I don't see that cpp does anything better/different vs cpphs -- that is, cpphs understands all the #if compiler_version logic. Then why isn't every library preferring cpphs?</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">AntC</div></div>
_______________________________________________<br class="">Haskell-Cafe mailing list<br class="">To (un)subscribe, modify options or view archives go to:<br class=""><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br class="">Only members subscribed via the mailman list are allowed to post.</div></blockquote></div><br class=""></div></body></html>