Commit 0c8b72a
authored
Fix CPP on Instances.TH.Lift import (#931)
This prevents a build error with GHC 8.10.1 and 8.10.2 which bundle
text-1.2.3.2:
src/Nix/Expr/Types.hs:497:21: error:
• Could not deduce (TH.Lift Text) arising from a use of ‘TH.lift’
from the context: Data b
bound by a type expected by the context:
forall b. Data b => b -> Maybe (TH.Q TH.Exp)
at src/Nix/Expr/Types.hs:(490,7)-(498,7)
or from: b ~ Text
bound by a pattern with constructor:
HRefl :: forall k1 (a :: k1). a :~~: a,
in a pattern binding in
a 'do' block
at src/Nix/Expr/Types.hs:493:11-15
• In the expression: TH.lift b
In the first argument of ‘pure’, namely
‘[| $(TH.lift b) |]
pending(rn) [<splice, TH.lift b>]’
In a stmt of a 'do' block:
pure
[| $(TH.lift b) |]
pending(rn) [<splice, TH.lift b>]
|
497 | pure [| $(TH.lift b) |]
| ^^^^^^^^^1 parent 8c02b73 commit 0c8b72a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments