Popularity
6.2
Stable
Activity
3.3
Stable
14
4
3
Monthly Downloads: 15
Programming language: Haskell
License: MIT License
Tags:
Text
Latest version: v0.7.0
th-printf alternatives and similar packages
Based on the "Text" category.
Alternatively, view th-printf alternatives based on common mentions on social networks and blogs.
-
skylighting
A Haskell syntax highlighting library with tokenizers derived from KDE syntax highlighting descriptions -
double-conversion
A fast Haskell library for converting between double precision floating point numbers and text strings. It is implemented as a binding to the V8-derived C++ double-conversion library.
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of th-printf or a related project?
README
th-printf

printf QuasiQuoters
Usage
import Language.Haskell.Printf
-- String interpolation
[s|Hello, %s!|] "Jeff" -- "Hello, Jeff!"
-- Text interpolation
[s|Hello, %q!|] (Data.Text.Lazy.pack "Jeff") -- "Hello, Jeff!"
-- Width specifiers
[s|%010d|] 1977 -- "0000001977"
-- Different radices
[s|%d, %x, %o, %#x, %#o|] 100 100 100 100 100 -- "100, 64, 144, 0x64, 0144"
-- Variable-width formatting
[s|%0*d|] 5 10 -- "00010"
There's also another format specifier %?
, which accepts any Show
able datatype.