GNU bug report logs - #54752
import: hackage: `elif` conditionals not supported

Previous Next

Package: guix;

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

Date: Wed, 6 Apr 2022 16:21:01 UTC

Severity: normal

Done: Lars-Dominik Braun <lars <at> 6xq.net>

Bug is archived. No further changes may be made.

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <lars <at> 6xq.net>
To: Philip Munksgaard <philip <at> munksgaard.me>
Cc: bug-guix <at> gnu.org
Subject: Re: import: hackage: `elif` conditionals not supported
Date: Sat, 14 May 2022 15:53:36 +0200
[Message part 1 (text/plain, inline)]
Hi Philip,

> Since Cabal 2.2 conditional blocks support the `elif` construct [0], but our hackage importer does not currently support such expressions. This causes importing packages like `raaz` [1] to fail.
attached patch series fixes the import for `raaz` by adding support for
elif and other minor adjustments. There still is syntax we do not support,
most importantly mixed indentation, which is already documented as xfail
via a testcase. I’m adding a few more.

Could you have a look please if these make sense?

Cheers,
Lars

[0001-import-cabal-Support-elif-statement.patch (text/plain, attachment)]
[0002-import-cabal-Allow-curly-brackets-in-more-positions.patch (text/plain, attachment)]
[0003-import-cabal-Allow-properties-without-space-between-.patch (text/plain, attachment)]
[0004-import-cabal-Allow-curly-bracket-before-else-stateme.patch (text/plain, attachment)]
[0005-import-cabal-Document-failing-syntax-through-tests.patch (text/plain, attachment)]

This bug report was last modified 2 years and 352 days ago.

Previous Next


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