kowainik / stan

🕵️ Haskell STatic ANalyser
https://kowainik.github.io/projects/stan
Mozilla Public License 2.0
570 stars 48 forks source link

Bypass Cabal hack on MacOS #240

Closed vrom911 closed 4 years ago

vrom911 commented 4 years ago

:fire: :fire: :fire:

Currently, some of the inspections won't work on MacOS due to the logic of Cabal dist-newstyle packages naming convention on MacOS. Turns out, they are removing all vowels from the package name on MacOS only.

This is crucial for us as we need to know what package the function is coming from to check the inspection.

P.S. I was so lucky to remember this comment I saw once on Reddit https://www.reddit.com/r/haskell/comments/gy0lsv/making_the_most_of_cabal/ft95rqs/

Without this I won't be able to figure out the issue on MacOS, like never :skull:

vrom911 commented 4 years ago

Here is the Cabal code: https://github.com/haskell/cabal/blob/833ab12a333be8bbca1d565f531402de2115d2bf/cabal-install/Distribution/Client/PackageHash.hs#L125-L157