Popularity
5.3
Declining
Activity
0.0
Stable
3
5
3

Monthly Downloads: 23
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Text    

QuasiText alternatives and similar packages

Based on the "Text" category.
Alternatively, view QuasiText alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of QuasiText or a related project?

Add another 'Text' Package

README

Interpolated string QuasiQuoter for Text values.

For example:

{-# LANGUAGE OverloadedStrings, QuasiQuotes #-}
import qualified Data.Text.IO as T
import Text.QuasiText

main :: IO ()
main = do
    user  <- T.getLine
    email <- T.getLine
    airSpeedVelocityOfAnUnladenSwallow <- fmap read getLine :: IO Int
    T.putStrLn [embed|
The air speed velocity of an unladen swallow is $airSpeedVelocityOfAnUnladenSwallow.
Your username is $user.
Your email is $email.
1 + 1 = $(1 + 1). |]