talira

string-interpolate

Unicode-aware string interpolation for Haskell that handles all textual types

open sourceBSD-3-Clausefree

string-interpolate is William Yao's Haskell library for Unicode-aware string interpolation that handles all of Haskell's textual types, so the same syntax works whichever string type (String, Text or ByteString) a program uses.

Problems it solves

  • interpolate variables into Text in Haskell without manual concatenation
  • one string interpolation syntax for String, Text and ByteString in Haskell
  • Unicode-safe string interpolation in Haskell

Features

  • string interpolation for String, Text and ByteString
  • Unicode-aware

Alternatives

The same job

These do what string-interpolate does.

  1. text Efficient packed Unicode text for Haskell
  2. text-short Memory-efficient ShortText type for many short Unicode strings in Haskell
  3. bytestring Fast, compact strict and lazy byte strings for Haskell
  4. case-insensitive Haskell type for case-insensitive comparison of String, Text or ByteString

Compare string-interpolate with the top 3