HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulefmt-0.6.3.0Haskell2010

Fmt.Internal.Tuple

  • 1 class
  • Packagefmt-0.6.3.0
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
Example1 expression
import Fmt.Internal.Core
classclass TupleF a where
#

Methods

  • tupleF :: a -> Builder

    Format a tuple (of up to 8 elements):

    Example1 expression
    tupleF (1,2,"hi")"(1, 2, hi)"

    If any of the elements takes several lines, an alternate format is used:

    Example1 expression
    fmt $ tupleF ("test","foo\nbar","more test")( test,  foo  bar,  more test )

    You can also use tupleF on lists to get tuple-like formatting.

Instances9TupleF, …