Skip to content
Snippets Groups Projects
Commit c72fd0e7 authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

Introduce FIeldGrammar.

This commit reworks how GenericPackageDescription is parsed from
`[Field Position]` and pretty-printed to `Doc`.

This also fixes few issues:
- Fix #4697: `cabal format` doesn't output custom-setup stanza (nor
  foreign-lib stanzas)
- Fix #4719: `parse . pretty . parse = parse`  for all Hackage cabal files.
    - `parser-hackage-tests roundtrip` is the test program.

The handling of `license-file` and `license-files` is changed.
Now they behave the same.
parent e63c0f3a
No related branches found
No related tags found
No related merge requests found
Showing
with 1502 additions and 1497 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment