External Publication
Visit Post

Final call for GHC String Interpolation proposal!

Haskell Community [Unofficial] June 13, 2026
Source

augustss:

I’d be happy if there was a fromString on the result so we could get a Text, but that’s not in the spec I used when I implemented interpolation in MicroHs.

The proposal should mention that fromString is added with -XOverloadedStrings. Otherwise, it will only ever be String, as normal.

augustss:

I mean things like width of a field, left/right justified, number of decimals for a float, etc

No, nothing like that right now. I was never a fan of hardcoded format specifiers that bless certain types, and it would move the feature even further towards magic implicit conversions. You can easily implement in user-land, perhaps in an interpolate-contrib package if necessary

Discussion in the ATmosphere

Loading comments...