haskell/aeson

Document `Key` and mention it in the tutorial

Open

#985 geöffnet am 7. Jan. 2023

Auf GitHub ansehen
 (2 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Haskell (334 Forks)batch import
help wanted

Repository-Metriken

Stars
 (1.298 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 89T 5h) (9 gemergte PRs in 30 T)

Beschreibung

In https://hackage.haskell.org/package/aeson-2.1.1.0/docs/Data-Aeson-Key.html#t:Key there are no haddocks, and the "How to use this library" section has not a single example that shows non-literal keys being used (coming e.g. from Text).

It would be great if:

  • Haddocks were added to Key that motivate its existence, so that e.g. hovering it from an IDE gives tips on how to obtain that type
  • an example of keys being converted from Text, so that beginners or upgraders from pre-2.0 have an esier time

Contributor Guide