Extension fields (`x-*`) for cabal.project

Aperta
#12,480 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
haskell
Ambito
build-system

Direzione di ricerca

Start by reading the project-file parsing code and the existing .cabal extension-field support referenced by the issue. Check how top-level fields and stanza fields are parsed and reported, then define behavior for x-* fields in both locations. Done means both examples parse without unknown-field warnings and existing project-file parsing still works.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

attention: pr-welcome type: enhancement

Describe the feature request

.cabal files already support extension fields. The feature could be extended to cabal.project and its stanzas.

Currently cabal emits a warning. Top level:

Warnings found while parsing the project file, cabal.project:
 - cabal.project: Unrecognized field 'x-foo' on line 10

Inside a stanza:

Warnings found while parsing the project file, cabal.project:
 - cabal.project: ???:10:0: Unknown field: "x-foo"

Additional context

We have a tool that modifies cabal.project files and it'd be nice if we could specify directives for it next to the piece of data it affects.

Related issues:

Lingua principale
Haskell
Stelle
1.8k
Fork
766
Merge medio
5g 21h
PR unite (30g)
27

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di haskell/cabal

Tutte le issue di haskell/cabal

Issue simili

Altre issue su Haskell

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.