-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | String interpolation done right -- -- String interpolation done right @package interpolate @version 0.0.4 module Data.String.Interpolate -- | A QuasiQuoter for string interpolation. Expression enclosed -- within #{...} are interpolated, the result has to be in the -- Show class. -- -- It interpolates strings -- --
-- >>> let name = "Marvin"
--
-- >>> putStrLn [i|name: #{name}|]
-- name: Marvin
--
--
-- or integers
--
--
-- >>> let age = 23
--
-- >>> putStrLn [i|age: #{age}|]
-- age: 23
--
--
-- or arbitrary Haskell expressions
--
--
-- >>> let profession = "\955-scientist"
--
-- >>> putStrLn [i|profession: #{unwords [name, "the", profession]}|]
-- profession: Marvin the λ-scientist
--
i :: QuasiQuoter
module Data.String.Interpolate.IsString
-- | Like i, but constructs a value of type
--
-- -- IsString a => a --i :: QuasiQuoter