GNU bug report logs - #46124
[PATCH] Idris 2

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: raingloom <raingloom@HIDDEN>; Keywords: patch; dated Wed, 27 Jan 2021 06:32:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at submit <at>

Received: (at submit) by; 27 Jan 2021 06:31:57 +0000
From debbugs-submit-bounces <at> Wed Jan 27 01:31:57 2021
Received: from localhost ([]:43468
	by with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1l4eMu-00063j-OD
	for submit <at>; Wed, 27 Jan 2021 01:31:57 -0500
Received: from ([]:53426)
 by with esmtp (Exim 4.84_2)
 (envelope-from <raingloom@HIDDEN>) id 1l4eMr-000615-Mf
 for submit <at>; Wed, 27 Jan 2021 01:31:54 -0500
Received: from ([2001:470:142:3::10]:46082)
 by with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>)
 id 1l4eMq-0005oT-RI
 for guix-patches@HIDDEN; Wed, 27 Jan 2021 01:31:53 -0500
Received: from ([]:42308)
 by with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <raingloom@HIDDEN>)
 id 1l4eMo-0007Fk-B7
 for guix-patches@HIDDEN; Wed, 27 Jan 2021 01:31:52 -0500
Received: from (unknown [])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (Client CN "*",
 Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified))
 by (Postfix) with ESMTPS id 4DQYfV0lh9zFdtV
 for <guix-patches@HIDDEN>; Tue, 26 Jan 2021 22:31:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;; s=squak;
 t=1611729106; bh=7zdSXsWWuB7e3t41wohuMyt05BMJmiaORR3SannEAEI=;
X-Riseup-User-ID: 1C9A1DACFC11D9DEDC54C2F630DC1A35FF850E777CA9251D062000E093E4723A
Received: from [] (localhost [])
 by (Postfix) with ESMTPSA id 4DQYfT2sYMz5wFM
 for <guix-patches@HIDDEN>; Tue, 26 Jan 2021 22:31:45 -0800 (PST)
Date: Wed, 27 Jan 2021 06:43:37 +0100
From: raingloom <raingloom@HIDDEN>
To: Guix Patches <guix-patches@HIDDEN>
Subject: [PATCH] Idris 2
Message-ID: <20210127064337.6a226301@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=;
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -2.4 (--)

Now that Idris 2 has had some proper tagged releases, I thought I'd
move it from my channel to Guix proper.
I've been using this package for quite a few months now and it pretty
much works. REPL works, building things works. Couldn't try IDE
functionality but I suppose it probably works if you can set it up in
Vim. That reminds me, I still haven't packaged the Vim mode, but I
don't use Vim so I don't really know its module system.

## Still TODO for the package:

search paths: There are no 3rd party Idris 2 modules yet, but it should
be done soon.

output prefix weirdness: Output is a bit odd, having an idris2-0.3.0
directory in its root, but since this is Guix, I suppose that's not
really a problem. Everything else is in its proper place, in bin, lib,
and share.

clang-toolchain support: Right now CC=gcc is hardcoded. Auto detection
would be preferable.

bootstrap: Right now it's bootstrapped from auto-generated Chez or
Racket. It **can** be built with Idris 1, but it uses such on obscene
amount of RAM that I refuse to consider building it that way ever
again. If someone wants to incorporate that step into Guix, they are
free to do so. Or we could generate it once and then freeze it and use
it as an input. Just leave my poor laptop out of it, it already
suffered enough. And probably leave the CI infrastructure out of it too.

## Bigger TODO:
Build system. Eventually it will need one.
Considering that it has multiple code generation backends, this is not
trivial, as each backend uses a different existing language, the
official ones (that I can remember right now) being:
* Chez
* Racket
* Gambit
* Chicken
* JavaScript/Node
* C

It might also make sense to compile Idris 2 itself with different
backends. It "officially" supports bootstrapping with Chez and Racket,
but others might be possible too.

Anyways, here's the patch, have fun with it, and/or suggest changes,

Acknowledgement sent to raingloom <raingloom@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#46124; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 27 Jan 2021 06:45:01 UTC

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