Commit a0c7fd2
committed
Support building with th-abstraction-0.5.*
`th-abstraction-0.5.0.0` introduces a `TypeData` constructor for
`DatatypeVariant` that characterizes `type data` declarations (introduced in
GHC 9.6). Because `type data` data constructors only exist at the type level,
not the value level, it doesn't make sense to define `Generic` instances for a
`type data` declaration. As a result, this patch makes it an error to use
`generics-sop`'s TH machinery in conjunction with a `type data` declaration.1 parent 402c8da commit a0c7fd2
2 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
580 | 581 | | |
581 | 582 | | |
582 | 583 | | |
| 584 | + | |
583 | 585 | | |
584 | 586 | | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
585 | 596 | | |
586 | 597 | | |
587 | 598 | | |
| |||
594 | 605 | | |
595 | 606 | | |
596 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
0 commit comments