[GHC] #16176: Let-insertion for template haskell