autopack
autopack copied to clipboard
Add compatibility for Cabal 3.6.* inclusive
This makes two changes:
- For compatibility with 3.4+ without warnings,
fromComponentshas been replaced with a call tofromStringandintercalate. - For compatibility with 3.6+,
Autopack.hsnow uses the C preprocessor with Cabal's version flags to handle a breaking change in the Cabal API aroundhsSourceDirs, which are nowSymbolicPaths instead ofFilePaths.
(I know getSymbolicPath says "Don't use this in new code", but I can't find any alternative - in the Cabal codebase, it is used in new code.)
Gently poke about this (@chshersh, @vrom911). I have own suggestion to just make shim for old cabal versions:
#if !MIN_VERSION_Cabal(3,6,0)
-- shim for Cabal =< 3.6
getSymbolicPath :: FilePath -> FilePath
getSymbolicPath = id
#endif
then use getSymbolicPath unconditionally.
Hi @avnik,
I'm not maintaining Kowainik projects anymore so you don't need to ping me 🙂
@chshersh So this project actually abandoned (same for co-log/relude?)
@ivb-supercede could one of us overtake it upstream?
It looks to me like colog and relude are still being maintained.
We can take over maintenance of autopack in order to publish this fix, if it's necessary.