ghcup-0.1.17.10: ghc toolchain installer
Copyright(c) Audrey Tang <audreyt@audreyt.org> 2019 Julian Ospald <hasufell@posteo.de> 2020
LicenseLGPL-3.0
Maintainerhasufell@hasufell.de
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

GHCup.Utils.String.QQ

Description

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.

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

Documentation

s :: QuasiQuoter Source #

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