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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 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