HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleaeson-2.2.3.0Haskell2010

Data.Aeson.Key

Strong type for JSON keys.

  • 1 type
  • 7 values
  • Packageaeson-2.2.3.0
  • Exports8
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceKey.hs
newtypenewtype Key
#
Instances27Eq, Data, Ord, Read, Show, IsString, …

'coercing r1 r2' will evaluate to r1 if Key is Coercible to Text, and to r2 otherwise.

Using coercing we can make more efficient implementations when Key is backed up by Text without exposing internals.