Skip to content

Extend TH to handle tuple sections

Alex D requested to merge nineonine/ghc:wip/T15843 into master

This patch fixes #15843 (closed) by extending Template Haskell AST for tuples to support sections.

Patch summary:

  • Change type signature of TupE and UnboxedTupE from [Expr] -> Expr to [Maybe Expr] -> Expr
  • Update the HsExpr -> CoreExpr transforming code
  • Update TH pretty printer
  • Update Convert.cvt
  • add a test for both: boxed and unboxed
Edited by Alex D

Merge request reports