From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Vollmert Subject: bug#38946: guix import fails for cabal-helper Date: Fri, 10 Jan 2020 18:40:14 +0100 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41273) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipyHR-0005Pz-N4 for bug-guix@gnu.org; Fri, 10 Jan 2020 12:41:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipyHP-0007I6-OC for bug-guix@gnu.org; Fri, 10 Jan 2020 12:41:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48957) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipyHN-0007GL-Rh for bug-guix@gnu.org; Fri, 10 Jan 2020 12:41:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ipyHN-0006Fh-Nf for bug-guix@gnu.org; Fri, 10 Jan 2020 12:41:01 -0500 In-Reply-To: Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 38946@debbugs.gnu.org It appears that the guix cabal parser (in guix/import/cabal.scm) isn=E2=80= =99t aware of `common` stanzas. = https://www.haskell.org/cabal/users-guide/developing-packages.html#pkg-sec= tion-common-common Note that there=E2=80=99s quite a few issues with the cabal parser, and = the format is pretty baroque, to the extent that I wonder whether it wouldn=E2=80=99t be = better to delegate the parsing to cabal itself. E.g.: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D35743 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36690 I also remember some issue with braces instead of indentation, but = can=E2=80=99t find a bug report right now.