ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
754 stars 137 forks source link

Fix #404 Accommodate ${pkgroot} and tolerate GHC errors on Windows #405

Open mpilgrem opened 1 year ago

mpilgrem commented 1 year ago

CPP is used (sorry) to tailor for Windows and GHC >= 9.0. In that case, ${pkgroot} is not expanded and the bogus prefix is stripped.

Otherwise, ${pkgroot} is expanded. For compatibility with GHC < 9.0, $topdir is still stripped, if present.

I confirm I am licensing my contribution under all licenses that apply to this project (see LICENSE) and that I have no patents covering my contribution.

hololeap commented 3 months ago

I can confirm this fixes #420 on ghc-9.4.8 (gentoo linux)