pa-ba / compdata

Haskell library implementing "Data Types a la Carte"
http://hackage.haskell.org/package/compdata
Other
89 stars 27 forks source link

Some tweaks to work with ghc 9.2.1 #37

Open j-rockel opened 2 years ago

j-rockel commented 2 years ago

Hey yall, I needed a ghc 9.2.1 compatible version of compdata for a project and thought I'd share.

The majority of the issues that came up are due to changes in template haskell, which I fixed using template-haskell-compat-v0208 (but the functions used also wouldn't be too complicated to reimplement if introducing a new dependency isn't wanted)

The only bigger non-template-haskell-related issues were the ones that led to the changes in src/Data/Comp/Multi/HFoldable.hs and src/Data/Comp/Multi/Variables.hs - I'll be honest, I have no clue why those fixes work, which is why I've marked this as a draft, but am happy to learn and/or provide more details.

As to which other versions this is compatible with, I've never worked with travis ci before but fwiw it built & tested successfully manually with ghc 9.2.2, 9.2.1, 8.10.7, 8.10.2 and 8.8.1