Open Warbo opened 9 years ago
Sounds good.
Travis CI build failed because it is pinned to 7.8. Could you please update .travis.yml
as part of your pull request.
Thanks.
Finally got the build to pass. Since the changes work around different template haskell types, I've used CPP to switch between them. Checking the template-haskell version in CPP seems to cause a syntax error with GCC's preprocessor, so I've made it check GHC's version instead.
I've kept Travis testing with 7.8, since it doesn't seem to have 7.10 available. I've tested this myself on NixOS using GHC 7.10 and 7.8.4.
Changes include:
ClassP
is missing from template-haskell 2.10, so useAppT
insteadinstance Serial Foo
rather thaninstance (Serial a) => Serial (Foo a)
)Applicative
andFunctor
instances, to obey new superclass constraintsNote: I have not tested this on other GHC versions.