akshaymankar/polysemy-mocks

Add support for newer version of template-haskell (>= 2.18.0.0)

Closed this issue ยท 5 comments

I got this error while trying to compile the package, version 0.3.0.0.
image
After some debugging, I found out that the error was due to the fact that the type of the Conp data constructor from the template-haskell package have changed from being ConP Name [Pat] (reference) to ConP Name [Type] [Pat] (reference) in all the versions >= 2.18.0.0.

Could you please look into this? I'm happy to make a PR to fix this, so please let me know if you'd be open to that.

Thank you.

Thanks for reporting this @quyumkehinde! Please feel free to send a PR ๐Ÿ˜„

@akshaymankar please check out the PR here

@akshaymankar any chance the updated code will be uploaded to Hackage anytime soon? :)

Yes, I will update the CI to ensure tests happen with GHC 9.2 and 9.4. If all goes well, this should soon be on hackage soon :)

@quyumkehinde I've published version 0.3.1.0. Thanks again for noticing and fixing the issue ๐Ÿš€