HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulestring-interpolate-0.3.4.0Haskell2010

Data.String.Interpolate.Conversion

  • 2 classes
  • 4 values
classclass IsCustomSink dst ~ flag => InterpSink (flag :: Bool) dst where
#

Something that can be interpolated into.

Associated types

Methods

  • ofString :: Proxy flag -> String -> B dst (Builder flag dst)

    Meant to be used only for verbatim parts of the interpolation.

  • build :: Proxy flag -> B dst (Builder flag dst) -> B dst (Builder flag dst) -> B dst (Builder flag dst)

    build should be 'in-order'; that is, the left builder comes from a string on the left, and the right builder comes from a string on the right.

  • finalize :: Proxy flag -> B dst (Builder flag dst) -> dst
Instances7InterpSink, …
  • InterpSink 'True BuilderDefined in string-interpolate-0.3.4.0 · Data.String.Interpolate.Conversion.ByteStringSink · orphan
  • InterpSink 'True ByteStringDefined in string-interpolate-0.3.4.0 · Data.String.Interpolate.Conversion.ByteStringSink · orphan
  • InterpSink 'True ByteStringDefined in string-interpolate-0.3.4.0 · Data.String.Interpolate.Conversion.ByteStringSink · orphan
  • InterpSink 'True TextDefined in string-interpolate-0.3.4.0 · Data.String.Interpolate.Conversion.TextSink · orphan
  • InterpSink 'True BuilderDefined in string-interpolate-0.3.4.0 · Data.String.Interpolate.Conversion.TextSink · orphan
  • InterpSink 'True TextDefined in string-interpolate-0.3.4.0 · Data.String.Interpolate.Conversion.TextSink · orphan
  • (IsCustomSink str ~ 'False, IsString str) => InterpSink 'False strDefined in string-interpolate-0.3.4.0 · Data.String.Interpolate.Conversion · orphan
classclass InterpSink flag dst => Interpolatable (flag :: Bool) src dst where
#

Represents that we can interpolate objects of type src into a an interpolation string that returns type dst.

Methods

Instances63Interpolatable, …

Convert a strict ByteString into a Text LT.Builder, converting any invalid characters into the Unicode replacement character � (U+FFFD).

Convert a lazy ByteString into a Text LT.Builder, converting any invalid characters into the Unicode replacement character � (U+FFFD).

valueproxyWrapper :: IsCustomSink final ~ flag => (Proxy flag -> final) -> final
#

Used to indicate to GHC that the value of all the proxy arguments is the same.

Orphan instances

10 instances