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.Core

  • 1 class
  • 12 values
  • Packagefmt-0.6.3.0
  • Exports13
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCore.hs
classclass FromBuilder a where
#

Methods

Instances8FromBuilder, …
valuefmt :: FromBuilder b => Builder -> b
#

fmt converts things to String, Text, ByteString or Builder.

Most of the time you won't need it, as strings produced with (+|) and (|+) can already be used as String, Text, etc. However, combinators like listF can only produce Builder (for better type inference), and you need to use fmt on them.

Also, fmt can do printing:

Example1 expression
fmt "Hello world!\n"Hello world!