HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulestring-qq-0.0.6Haskell2010

Data.String.QQ

QuasiQuoter for non-interpolated strings, texts and bytestrings.

The "s" quoter contains a multi-line string with no interpolation at all, except that the leading newline is trimmed and carriage returns stripped.

{-# LANGUAGE QuasiQuotes #-}
import Data.Text (Text)
import Data.String.QQ
foo :: Text -- String, ByteString etc also works
foo = [s|
Well here is a
    multi-line string!
|]

Any instance of the IsString type is permitted.

(For GHC versions 6, write "[$s||]" instead of "[s||]".)

Synopsis
  • value s
  • Packagestring-qq-0.0.6
  • Exports1
  • LanguageHaskell2010
  • LicenceLicenseRef-PublicDomain
  • SourceQQ.hs
values :: QuasiQuoter

QuasiQuoter for a non-interpolating IsString literal. The pattern portion is undefined.