summaryrefslogtreecommitdiff
path: root/libraries/template-haskell/changelog.md
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/template-haskell/changelog.md')
-rw-r--r--libraries/template-haskell/changelog.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/libraries/template-haskell/changelog.md b/libraries/template-haskell/changelog.md
index 5dca9832c5..b1444341d8 100644
--- a/libraries/template-haskell/changelog.md
+++ b/libraries/template-haskell/changelog.md
@@ -5,12 +5,18 @@
* In `Language.Haskell.TH.Syntax`, `DataInstD`, `NewTypeInstD`, `TySynEqn`,
and `RuleP` now all have a `Maybe [TyVarBndr]` argument, which contains a
list of quantified type variables if an explicit `forall` is present, and
- `Nothing` otherwise.
+ `Nothing` otherwise. `DataInstD`, `NewTypeInstD`, `TySynEqn` also now use
+ a single `Type` argument to represent the left-hand-side to avoid
+ malformed type family equations and allow visible kind application.
Correspondingly, in `Language.Haskell.TH.Lib.Internal`, `pragRuleD`,
`dataInstD`, `newtypeInstD`, and `tySynEqn` now all have a
`Maybe [TyVarBndrQ]` argument. Non-API-breaking versions of these
- functions can be found in `Language.Haskell.TH.Lib`.
+ functions can be found in `Language.Haskell.TH.Lib`. The type signature
+ of `tySynEqn` has also changed from `[TypeQ] -> TypeQ -> TySynEqnQ` to
+ `(Maybe [TyVarBndrQ]) -> TypeQ -> TypeQ -> TySynEqnQ`, for the same reason
+ as in `Language.Haskell.TH.Syntax` above. Consequently, `tySynInstD` also
+ changes from `Name -> TySynEqnQ -> DecQ` to `TySynEqnQ -> DecQ`.
* Add `Lift` instances for `NonEmpty` and `Void`