haskell / alex

A lexical analyser generator for Haskell
https://hackage.haskell.org/package/alex
BSD 3-Clause "New" or "Revised" License
297 stars 82 forks source link

Don't vendor Ranged-sets? #182

Open Ericson2314 opened 3 years ago

Ericson2314 commented 3 years ago

Right now, https://hackage.haskell.org/package/Ranged-sets depends on big deps like HUnit and QuickCheck. But I have a PR https://github.com/PaulJohnson/Ranged-sets/pull/4 so there is a flag to disable the arbitrary instances and it just depends on base. At that point, I don't see why we just delete the vendored code and use that instead?

andreasabel commented 3 years ago

A reason could be that atm, Alex depends only on libraries that ship with GHC (https://wiki.haskell.org/Core_Libraries_Committee#Core_Libraries). This might be a property worth preserving. (But I don't have insight into the GHC build process, for instance.)

Ericson2314 commented 3 years ago

Yeah I won't pull the trigger on this until I bring up on ghc-devs. Maybe we could have a flag to either use or not use the vendored part as a stop-gap to track divergence too.