guix import hackage fails on key:value

OpenSubmitted by Robert Vollmert.
Details
One participant
  • Robert Vollmert
Owner
unassigned
Severity
normal
R
R
Robert Vollmert wrote on 16 Jul 2019 16:02
(address . bug-guix@gnu.org)
2DCCAF13-6983-40AF-AD15-27A6222902CB@vllmrt.net
Apparently, it’s valid for a cabal file to have key-value pairs
without a space, e.g.

benchmark benchmarks
type: exitcode-stdio-1.0
main-is:Speed.hs
hs-source-dirs:test
default-language: Haskell2010
build-depends:
base < 5,
criterion,
diagrams-core,
diagrams-lib


guix import hackage breaks on this:

$ guix import hackage diagrams-lib
Importing `diagrams-lib` from hackage
Syntax error: unexpected token : main-is:Speed.hs (at line 175, column 2)
Syntax error: unexpected end of input
guix import: error: failed to download cabal file for package 'diagrams-lib'
?