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

ModulePyF-0.11.3.0Haskell2010

PyF.Formatters

Formatters for integral / fractional and strings.

The following is supported:

For all types:

  • Grouping of the integral part (i.e. adding a custom char to separate groups of digits)

  • Padding (left, right, around, and between the sign and the number)

  • Sign handling (i.e. display the positive sign or not)

For floating:

  • Precision

  • Fixed Exponential Generic formatting

For integrals:

  • Binary Hexadecimal Octal / Character representation

  • 8 types
  • 4 values
  • PackagePyF-0.11.3.0
  • Exports12
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFormatters.hs

Generic formatting function

3 declarations

Formatter details

6 declarations
datadata Format (k :: AltStatus) (k' :: UpperStatus) (k'' :: FormatType) where
#
Instances1Lift
  • Lift (Format k k' k'')Defined in PyF-0.11.3.0 · PyF.Formatters
datadata SignMode
#

Sign handling

Constructors

  • Plus

    Display - sign and + sign

  • Minus

    Only display - sign

  • Space

    Display - sign and a space for positive numbers

Instances3Data, Show, Lift

Internal usage only

3 declarations