HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Modulegranite-0.7.4.0GHC2021

Granite.Format

Apply a declarative Formatter to a Double. Replaces the function-typed LabelFormatter used by the legacy Plot record, so the entire chart spec can stay JSON-shaped.

  • 1 type
  • 1 value
datadata Formatter
#

A declarative formatter applied to numeric tick / label values.

The Default behaves like the legacy formatter: scientific for very small or very large magnitudes, fixed-point with one decimal otherwise. The other constructors give the caller explicit control without needing to embed a Haskell function in the spec.

Constructors

Instances3Eq, Read, Show