External Publication
Visit Post

Final call for GHC String Interpolation proposal!

Haskell Community [Unofficial] June 10, 2026
Source

adamgundry:

On the quasiquotes point, it would be useful to have a built-in way to have interpolation/antiquotation inside quasiquotes (see #24966). I see that as complementary to this proposal. Although it does suggest using $(...) in interpolated strings for consistency with antiquotation inside TH quotes, whereas the proposal currently uses ${...}.

Just to add to this: I’m a big fan of TH and I want to see it become better. Yet, even if we implemented antiquotes for quasiquotes, there would still be many people who refuse to use TH for principled reasons, eg, lack of (sufficiently good) cross compilation support or sandboxing.

While I think these objections could be resolved, there’s no guarantee that it will happen any time soon. So, it would be great to have StringInterpolation, which doesn’t depend on TH, that anyone can use.

Discussion in the ATmosphere

Loading comments...