HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulestring-interpolate-0.3.4.0Haskell2010

Data.String.Interpolate.Conversion

Synopsis
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).

Orphan instances

10 instances