From b33a8230cc6905bacaf67931f8aa53a78188cab6 Mon Sep 17 00:00:00 2001 From: Harendra Kumar Date: Wed, 25 Mar 2026 17:14:53 +0530 Subject: [PATCH] Mention interpolation in "str" quasiquoter docs --- core/src/Streamly/Internal/Unicode/String.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/Streamly/Internal/Unicode/String.hs b/core/src/Streamly/Internal/Unicode/String.hs index de31cfb91d..5c1109c779 100644 --- a/core/src/Streamly/Internal/Unicode/String.hs +++ b/core/src/Streamly/Internal/Unicode/String.hs @@ -117,13 +117,14 @@ expandVars input = Right x -> strExp x --- | A QuasiQuoter that treats the input as a string literal: +-- | A QuasiQuoter for multiline string literals with @#{symbol}@ +-- interpolation of Haskell values. -- -- >>> [str|x|] -- "x" -- --- Any @#{symbol}@ is replaced by the value of the Haskell symbol @symbol@ --- which is in scope: +-- String interpolation: Any @#{symbol}@ is replaced by the value of the +-- Haskell @symbol@ which is in scope: -- -- >>> x = "hello" -- >>> [str|#{x} world!|]