GNU bug report logs - #48701
cabal import parser doesn't support common stanzas

Previous Next

Package: guix;

Reported by: "Philip Munksgaard" <philip <at> munksgaard.me>

Date: Thu, 27 May 2021 14:47:02 UTC

Severity: normal

Merged with 48700

Done: "Philip Munksgaard" <philip <at> munksgaard.me>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "Philip Munksgaard" <philip <at> munksgaard.me>
Subject: bug#48701: closed (Closed by 48943)
Date: Thu, 01 Jul 2021 15:12:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#48701: cabal import parser doesn't support common stanzas

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 48701 <at> debbugs.gnu.org.

-- 
48701: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48701
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: "Philip Munksgaard" <philip <at> munksgaard.me>
To: 48701-done <at> debbugs.gnu.org
Subject: Closed by 48943
Date: Thu, 01 Jul 2021 17:10:40 +0200
This issue has been fixed by #48943 and should be closed.

[Message part 3 (message/rfc822, inline)]
From: "Philip Munksgaard" <philip <at> munksgaard.me>
To: bug-guix <at> gnu.org
Subject: cabal import parser doesn't support common stanzas
Date: Thu, 27 May 2021 15:21:43 +0200
As far as I can tell, the cabal parser for the `guix import` command (https://git.savannah.gnu.org/cgit/guix.git/tree/guix/import/cabal.scm) does not support common stanzas, as specified in the cabal specification (https://cabal.readthedocs.io/en/3.4/cabal-package.html#common-stanzas).

This means that some packages, like "versions" (https://hackage.haskell.org/package/versions-5.0.0/src/versions.cabal) and all depending packages cannot be imported using `guix import hackage versions`:

```
$ guix import hackage versions
Syntax error: unexpected token : common (at line 36, column 0)
Syntax error: unexpected end of input
guix import: error: failed to download cabal file for package 'versions'
```



This bug report was last modified 3 years and 317 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.