fmt-0.6.1.1: A new formatting library

Safe HaskellNone
LanguageHaskell2010

Fmt.Internal.Tuple

Synopsis

Documentation

>>> import Fmt.Internal.Core

class TupleF a where Source #

Methods

tupleF :: a -> Builder Source #

Format a tuple (of up to 8 elements):

>>> tupleF (1,2,"hi")
"(1, 2, hi)"

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

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

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

Instances
Buildable a => TupleF [a] Source # 
Instance details

Defined in Fmt.Internal.Tuple

Methods

tupleF :: [a] -> Builder Source #

TupleF [Builder] Source # 
Instance details

Defined in Fmt.Internal.Tuple

Methods

tupleF :: [Builder] -> Builder Source #

(Buildable a1, Buildable a2) => TupleF (a1, a2) Source # 
Instance details

Defined in Fmt.Internal.Tuple

Methods

tupleF :: (a1, a2) -> Builder Source #

(Buildable a1, Buildable a2, Buildable a3) => TupleF (a1, a2, a3) Source # 
Instance details

Defined in Fmt.Internal.Tuple

Methods

tupleF :: (a1, a2, a3) -> Builder Source #

(Buildable a1, Buildable a2, Buildable a3, Buildable a4) => TupleF (a1, a2, a3, a4) Source # 
Instance details

Defined in Fmt.Internal.Tuple

Methods

tupleF :: (a1, a2, a3, a4) -> Builder Source #

(Buildable a1, Buildable a2, Buildable a3, Buildable a4, Buildable a5) => TupleF (a1, a2, a3, a4, a5) Source # 
Instance details

Defined in Fmt.Internal.Tuple

Methods

tupleF :: (a1, a2, a3, a4, a5) -> Builder Source #

(Buildable a1, Buildable a2, Buildable a3, Buildable a4, Buildable a5, Buildable a6) => TupleF (a1, a2, a3, a4, a5, a6) Source # 
Instance details

Defined in Fmt.Internal.Tuple

Methods

tupleF :: (a1, a2, a3, a4, a5, a6) -> Builder Source #

(Buildable a1, Buildable a2, Buildable a3, Buildable a4, Buildable a5, Buildable a6, Buildable a7) => TupleF (a1, a2, a3, a4, a5, a6, a7) Source # 
Instance details

Defined in Fmt.Internal.Tuple

Methods

tupleF :: (a1, a2, a3, a4, a5, a6, a7) -> Builder Source #

(Buildable a1, Buildable a2, Buildable a3, Buildable a4, Buildable a5, Buildable a6, Buildable a7, Buildable a8) => TupleF (a1, a2, a3, a4, a5, a6, a7, a8) Source # 
Instance details

Defined in Fmt.Internal.Tuple

Methods

tupleF :: (a1, a2, a3, a4, a5, a6, a7, a8) -> Builder Source #