Closed RyanGlScott closed 4 years ago
Hm... Travis is failing because hlint
stumbles over a parse error only on GHC 8.0.1:
$ hlint --cpp-simple src
src/Instances/TH/Lift.hs:195:1: Error: Parse error
Found:
LIFT_TYPED_DEFAULT
> instance Lift IntSet.IntSet where
lift s = [| IntSet.fromList s' |] where
s' = IntSet.toList s
1 hint
I can reproduce this locally. I can also confirm that the error goes away if you don't pass --cpp-simple
to hlint
:
$ hlint src
No hints
Thanks for the PR! I'll take a closer look this week.
template-haskell-2.16.0.0
(bundled with GHC 8.10.1) introduces a newliftTyped
method to theLift
class of typea -> Q (TExp a)
.lift
's default definition is now in terms ofliftTyped
, but because all of theLift
instances in this library are defined by hand, compiling them with GHC 8.10.1 will result in a volley of warnings:This patch fixes these warnings by defining
liftTyped
on the appropriate versions oftemplate-haskell
.