Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Aug 01, 2019
  2. Apr 23, 2019
  3. Apr 03, 2019
  4. Dec 16, 2018
    • Oleg Grenrus's avatar
      Introduce Distribution.Fields module namespace · 7150c6d2
      Oleg Grenrus authored
      Split fields related functionality out of `Distribution.Parsec`
      namespace which is not left only to handle "scalar" values.
      This separation highlights that we use `parsec` for *structure* (think
      JSON), and the *values* of the fields (think e.g. dates in JSON).
      
      - New top-level `Distribution.Fields` and `Distribution.Parsec` modules
        should include most things most people would need.
      - Also `Distribution.Pretty.Field` is moved to `Distribution.Fields.Pretty`,
        as now it has proper place.
      - The commit is moving things around and fixing compilation errors.
      - I fixed `cabal check` parse error printing as I was nearby.
      7150c6d2
  5. Nov 24, 2018
  6. Aug 01, 2018
  7. Jul 31, 2018
  8. Feb 14, 2018
  9. Feb 05, 2018
  10. Jan 16, 2018
    • Oleg Grenrus's avatar
      Warn about leading tabs · fe40c070
      Oleg Grenrus authored
      There are 3957 warned files atm in Hackage index.
      All of them have tab "inside the field", thus old parser acceps them.
      
      See e.g added th-lift-instances file. The warning comes from the description field.
      fe40c070
  11. Dec 24, 2017
  12. Sep 20, 2017
    • Oleg Grenrus's avatar
      Introduce FIeldGrammar. · c72fd0e7
      Oleg Grenrus authored
      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.
      c72fd0e7
  13. Aug 16, 2017
    • Oleg Grenrus's avatar
      Handle BOM in lexer · 85a0e6de
      Oleg Grenrus authored
      85a0e6de
    • Oleg Grenrus's avatar
      Use alex in latin1 mode · 541c415f
      Oleg Grenrus authored
      At the moment we have very lax "name" lexer, which is essentially
      *everything else* than otherwise specified characters: parens, space,
      symbols (but not hyphen -)
      
      This removes `TokNum` and `SecArgNum`, both are merged into `TokSym` and
      `SecArgSym` respectively.
      541c415f
  14. Aug 15, 2017
Loading