External Publication
Visit Post

Final call for GHC String Interpolation proposal!

Haskell Community [Unofficial] June 10, 2026
Source

brandonchinn178:

Manual interpolation (e.g. <>, show, unwords, etc.) is annoying, especially for strings with a lot of interpolation. It’s hard to see the overall structure of the string, especially when building up a Text: [..]

Data.ByteString.Builder does manual interpolation better, the only reason it’s not a proper replacement is poor typing. If Builder could be UTF8 on the type level, you’d get a perfect chain of

"string" <> encoder value <> "string" <> encoder' value' <> "string" <> ..

Also I don’t see a naive find-replace solution (as in “replace every ${foo} in string with value at foo”) in the “Motivation” section.

Discussion in the ATmosphere

Loading comments...