lexi-lambda / freer-simple

A friendly effect system for Haskell
https://hackage.haskell.org/package/freer-simple
BSD 3-Clause "New" or "Revised" License
227 stars 19 forks source link

Widen template-haskell version constraint to allow version <2.22 #44

Open nmeum opened 1 year ago

nmeum commented 1 year ago

This allows freer-simple to be used with GHC >= 9.4. Prior versions of template-haskell are not compatible with those GHC versions. Newer version of of template-haskell seem to be fully compatible with freer-simple. That is, tests still pass and I haven't noticed any issues in my own project (which use freer-simple).

Fixes #40


If this gets merged, would it be possible to tag a new freer-simple release?

jjba23 commented 9 months ago

I'd be extremely happy to see this one merged, otherwise I will soon feel forced to fork this beautiful project and maintain a more active version of code I don't have the mental capacity to fully comprehend. Please @lexi-lambda take a look, or other maintainers ? I am now forced to do extremely hacky stuff since I also use haskell.nix, and rebuild GHC several times

nmeum commented 4 months ago

I updated this to allow template-haskell <2.22. This allows using freer-simple with GHC >=9.4. I have tested this extensively with GHC 9.8.2 in my own project (LibRISCV) which uses frere-simple with GHC 9.8.

I also requested a relaxation of the constraint via hackage-trustees here: https://github.com/haskell-infra/hackage-trustees/issues/399

nmeum commented 4 months ago

The constraint has been updated by the hackage-trustees so freer-simple now works again with GHC >= 9.4 && GHC <= 9.8.