category feedString interpolationCommon needseditdelete

This category is a stub, contributions are welcome!






String interpolation is the process of inserting the value of some variables in a string/text template.

Popular packages include fmt, formatting, and text-format.

edit description
or press Ctrl+Enter to savemarkdown supported
#
fmt (Hackage)
other
move item up move item down edit item info delete item
Summary edit summary

Example:

>>> format "{} + {} = {}" 2 2 4
2 + 2 = 4
>>> let (a, b, n) = ("foo", "bar", 25)
>>> ("Here are some words: "+|a|+", "+|b|+"\nAlso a number: "+|n|+"") :: String
"Here are some words: foo, bar\nAlso a number: 25"
Summary quit editing summary
Prosedit prosquit editing pros

    press Ctrl+Enter or Enter to addmarkdown supportededit off
    Consedit consquit editing cons

      press Ctrl+Enter or Enter to addmarkdown supportededit off
      Ecosystemedit ecosystem
      Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
      Notes
      collapse notesedit notes

      <notes are empty>

      add something!

      #
      neat-interpolation (Hackage)
      other
      move item up move item down edit item info delete item
      Summary edit summary

      Interpolation over multi-line strings, using the QuasiQuotes extension.

      Summary quit editing summary
      Prosedit prosquit editing pros

        press Ctrl+Enter or Enter to addmarkdown supportededit off
        Consedit consquit editing cons

          press Ctrl+Enter or Enter to addmarkdown supportededit off
          Ecosystemedit ecosystem
          Ecosystemquit editing ecosystemor press Ctrl+Enter to savemarkdown supported
          Notes
          collapse notesedit notes

          <notes are empty>

          add something!