diff options
author | Robert Vollmert <rob@vllmrt.net> | 2019-06-02 00:27:50 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-06-02 22:16:05 +0200 |
commit | 959c9d159da2c53b87ae0af1421aecac98b20f46 (patch) | |
tree | 1144e306fac77111b4607f757cd3fa24f182144e /guix/sets.scm | |
parent | 64d31813577b7471f819652e3ec81abb285bb77c (diff) |
import: hackage: Parse braced properties.
This adds partial support for Cabal properties that use curly
braces instead of the layout rule. See for example
https://hackage.haskell.org/package/cassava/
* guix/import/cabal.scm (read-braced-value): New procedure.
(is-property): Remove.
(is-layout-property, is-braced-property): New variables.
(lex-property): Rename to...
(lex-layout-property): ... this.
(lex-braced-property, lex-property): New procedures.
(lex-token): Add call to 'lex-property'.
* guix/tests/hackage.scm: Test braced description import.
* tests/hackage.scm (test-cabal-multiline-desc): Rename to...
(test-cabal-multiline-layout): ... this.
("hackage->guix-package test multiline desc"): Rename to...
("hackage->guix-package test multiline desc (layout)"): ... this.
(test-cabal-multiline-braced): New variable.
("hackage->guix-package test multiline desc (braced)"): New test.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'guix/sets.scm')
0 files changed, 0 insertions, 0 deletions