unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: raingloom <raingloom@riseup.net>
Cc: 53165@debbugs.gnu.org
Subject: bug#53165: "guix import opam coq-of-ocaml" unexpected error
Date: Tue, 11 Jan 2022 11:51:51 +0100	[thread overview]
Message-ID: <86h7aa4kag.fsf@gmail.com> (raw)
In-Reply-To: <20220110213657.36b9869d@riseup.net>

Hi,

On Mon, 10 Jan 2022 at 21:36, raingloom <raingloom@riseup.net> wrote:

> My guess is that the package is missing a description? I vaguely recall
> running into this or a similar error when trying to import Infer, but
> I'm not sure how I fixed it.
> Based on the backtrace, just modifying beautify-description? to act as
> the identity function when the input isn't a string should be enough.

Thanks.  If no one beats me, I will give a look.  But for now it is low
in my list. :-)


> This is why Scheme should have a Maybe type instead of this mess of
> overloading boolean false. :)
> Or at least Guile should have an optional type checker like MyPy.

Hm, I do not think Maybe would change something if the «package is
missing a description».  At best, Maybe would be another way to catch
the errors instead of raising the Backtrace, no?

And I do not think that a type checker like MyPy would raises something
here if the issue comes from the missing upstream description, no?

Something like QuickCheck seems required and would raise the bug,
eventually.  Oh wait, guile-quickcheck is around [1] and used by
Disarchive; therefore already an indirect dependency of guix. :-)

That’s said, nothing prevents Guile to have a Maybe monad.  But I think
this way of programming is not popular among Schemers. :-) And I agree
that a type checker would prevent many issues.  Even, I remember talking
this topic back on December 2018 around this event:
<https://lists.gnu.org/archive/html/guix-devel/2018-12/msg00049.html>. ;-)


Cheers,
simon


1: <https://ngyro.com/software/guile-quickcheck.html>




  reply	other threads:[~2022-01-11 10:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 17:01 bug#53165: "guix import opam coq-of-ocaml" unexpected error zimoun
2022-01-10 20:36 ` raingloom
2022-01-11 10:51   ` zimoun [this message]
2022-06-12  5:15     ` Julien Lepiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86h7aa4kag.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=53165@debbugs.gnu.org \
    --cc=raingloom@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).