This is a partial fix for #204 and #205 which adds DTypeE, DTypeP, and DInvisP constructs to the th-desugar AST, which behave exactly like their TypeE, TypeP, and InvisP counterparts in the template-haskell AST. This is only a partial fix, however, because DTypeP and DInvisP are currently only supported in the clauses of function declarations. In particular, DTypeP and DInvisP are not supported in lambda expressions, \case expressions, or \cases expressions. See the "Known limitations" section of the README for more.
This is a partial fix for #204 and #205 which adds
DTypeE
,DTypeP
, andDInvisP
constructs to theth-desugar
AST, which behave exactly like theirTypeE
,TypeP
, andInvisP
counterparts in thetemplate-haskell
AST. This is only a partial fix, however, becauseDTypeP
andDInvisP
are currently only supported in the clauses of function declarations. In particular,DTypeP
andDInvisP
are not supported in lambda expressions,\case
expressions, or\cases
expressions. See the "Known limitations" section of theREADME
for more.In order to add full support for
DTypeP
andDInvisP
, we would first need to implement the design proposed in https://github.com/goldfirere/th-desugar/issues/210. Until then, this is good enough.