Fix mkDec function in src/Data/Array/Accelerate/Pattern/TH.hs to work with ghc version 9.8.1
Description The template-haskell library version 2.21.0.0 has now made TyVarBndr types contain other types. This patch removes an error during compilation caused by mkDec passing the wrong kind of TyVarBndr to mkDataD and mkNewTypeD.
Motivation and context I've been trying to get accelerate-llvm-ptx to be more efficient with GPU memory, and I suspect that part of the reason it isn't is because of the Haskell runtime, so I took the time to update the accelerate library to work with the latest ghc (it still eats up all GPU memory, but you can have this patch anyways if you want it).
How has this been tested? I've tried it on a library I've been working on, and I also ran "cabal test". In both cases it seemed to work.
Types of changes
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist
- [x] My code follows the code style of this project
- [ ] My change requires a change to the documentation
- [ ] I have updated the documentation accordingly
- [ ] I have added tests to cover my changes
- [x] All new and existing tests passed