A new formatting library
105.59 KB
built 2026-10-14 00:18:47 GMT
Description
A new formatting library that tries to be simple to understand while still
being powerful and providing more convenience features than other libraries
(like functions for pretty-printing maps and lists, or a function for printing
arbitrary datatypes using generics).
A comparison with other libraries:
* 'printf' (from 'Text.Printf') takes a formatting string and uses some type
tricks to accept the rest of the arguments polyvariadically. It's very concise,
but there are some drawbacks – it can't produce 'Text' (you'd have to 'T.pack'
it every time) and it doesn't warn you at compile-time if you pass wrong
arguments or not enough of them.
* <https://hackage.haskell.org/package/text-format text-format> takes a
formatting string with curly braces denoting places where arguments would be
substituted (the arguments themselves are provided via a tuple). If you want to
apply formatting to some of the arguments, you have to use one of the provided
formatters. Like 'printf', it can fail at runtime, but at least the formatters
are first-class (and you can add new ones).
* <https://hackage.haskell.org/package/formatting formatting> takes a
formatting template consisting of pieces of strings interleaved with
formatters; this ensures that arguments always match their placeholders.
'formatting' provides lots of formatters and generally seems to be the most
popular formatting library here. Unfortunately, at least in my experience
writing new formatters can be awkward and people sometimes have troubles
understanding how 'formatting' works.
* <https://hackage.haskell.org/package/fmt fmt> (i.e. this library) provides
formatters that are ordinary functions, and a bunch of operators for
concatenating formatted strings; those operators also do automatic conversion.
There are some convenience formatters which aren't present in 'formatting'
(like ones for formatting maps, lists, converting to base64, etc).
Some find the operator syntax annoying, while others like it.
Dependencies
43 totalRequires40
- libHSarray-0.5.8.0-inplace-ghc9.10.3.so()(64bit)
- libHSbase-4.20.2.0-inplace-ghc9.10.3.so()(64bit)
- libHSbase64-bytestring-1.2.1.0-BPFkMWlpgwpJISb0x2g4QI-ghc9.10.3.so()(64bit)
- libHSbinary-0.8.9.3-inplace-ghc9.10.3.so()(64bit)
- libHSbytestring-0.12.2.0-inplace-ghc9.10.3.so()(64bit)
- libHScall-stack-0.4.0-EjFBRDTUovx8UGmuZFAQAM-ghc9.10.3.so()(64bit)
- libHSclock-0.8.4-H2gxghH0gZSWFOI5QDUKZ-ghc9.10.3.so()(64bit)
- libHScontainers-0.7-inplace-ghc9.10.3.so()(64bit)
- libHSdeepseq-1.5.0.0-inplace-ghc9.10.3.so()(64bit)
- libHSexceptions-0.10.9-inplace-ghc9.10.3.so()(64bit)
- libHSfilepath-1.5.4.0-inplace-ghc9.10.3.so()(64bit)
- libHSformatting-7.2.0-EWOIPbLCnFR5Z1ivGhVgfU-ghc9.10.3.so()(64bit)
- libHSghc-bignum-1.3-inplace-ghc9.10.3.so()(64bit)
- libHSghc-boot-th-9.10.3-inplace-ghc9.10.3.so()(64bit)
- libHSghc-internal-9.1003.0-inplace-ghc9.10.3.so()(64bit)
- libHSghc-prim-0.12.0-inplace-ghc9.10.3.so()(64bit)
- libHShashable-1.5.1.0-IOVq8g4B58423QXYpDMyNv-ghc9.10.3.so()(64bit)
- libHSinteger-logarithms-1.0.5-Kd0gsstMnV8L3VrUzzJ6td-ghc9.10.3.so()(64bit)
- libHSmicrolens-0.4.14.0-68P6Jzr9cjTB9PIbBvxWm5-ghc9.10.3.so()(64bit)
- libHSmtl-2.3.1-inplace-ghc9.10.3.so()(64bit)
- libHSold-locale-1.0.0.7-LKeJfAZvz6tBqu9W2zyW4x-ghc9.10.3.so()(64bit)
- libHSos-string-2.0.7-inplace-ghc9.10.3.so()(64bit)
- libHSpretty-1.1.3.6-inplace-ghc9.10.3.so()(64bit)
- libHSprimitive-0.9.1.0-CdaaD38w4qB6rrosjqTSfA-ghc9.10.3.so()(64bit)
- libHSscientific-0.3.8.1-FV9hZrEidtHA4BBopkIRz-ghc9.10.3.so()(64bit)
- libHSstm-2.5.3.1-inplace-ghc9.10.3.so()(64bit)
- libHStemplate-haskell-2.22.0.0-inplace-ghc9.10.3.so()(64bit)
- libHStext-2.1.3-inplace-ghc9.10.3.so()(64bit)
- libHStime-1.12.2-inplace-ghc9.10.3.so()(64bit)
- libHStime-locale-compat-0.1.1.5-FJUU2N2UUIU2TXoOZWibwH-ghc9.10.3.so()(64bit)
- libHStransformers-0.6.1.1-inplace-ghc9.10.3.so()(64bit)
- libc.so.6()(64bit)
- libc.so.6(GLIBC_2.27)(64bit)
- libgmp.so.10()(64bit)
- libm.so.6()(64bit)
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(PayloadFilesHavePrefix) <= 4.0-1
- rpmlib(PayloadIsZstd) <= 5.4.18-1
- rtld(GNU_HASH)
Provides3
- ghc-fmt = 0.6.3.0-16.fc45
- ghc-fmt(riscv-64) = 0.6.3.0-16.fc45
- libHSfmt-0.6.3.0-6jlfvVDu2P9U6vqnGxJRA-ghc9.10.3.so()(64bit)
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
3Name ![]() |
Size |
|---|---|
| /usr/lib64/ghc-9.10.3/lib/libHSfmt-0.6.3.0-6jlfvVDu2P9U6vqnGxJRA-ghc9.10.3.so | 523.92 KB |
| /usr/share/licenses/ghc-fmt | 0.00 B |
| /usr/share/licenses/ghc-fmt/LICENSE | 1.47 KB |
Files 1–3 of 3
Component of
buildroots that installed this RPMNo Buildroots
