From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: bug#21829: guix import hackage failures Date: Thu, 26 Nov 2015 09:28:07 +0100 Message-ID: References: <87d1vghjhk.fsf@gnu.org> <87vb971t74.fsf@gnu.org> <87lha3ufxv.fsf@gnu.org> <87h9kp1ts2.fsf@gnu.org> <87k2pjq8qu.fsf@gnu.org> <87fuztda8k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60994) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1rvO-0004cA-Fd for bug-guix@gnu.org; Thu, 26 Nov 2015 03:29:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1rvK-0007XJ-D9 for bug-guix@gnu.org; Thu, 26 Nov 2015 03:29:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1rvK-0007XD-A1 for bug-guix@gnu.org; Thu, 26 Nov 2015 03:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a1rvK-0002Qi-01 for bug-guix@gnu.org; Thu, 26 Nov 2015 03:29:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87fuztda8k.fsf@gnu.org> 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.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 21829@debbugs.gnu.org On Wed, Nov 25, 2015 at 10:45 PM, Ludovic Court=C3=A8s wrote= : > Federico Beffa skribis: [...] >>>> + ;; indentation based block recognition. >>>> + (begin (unread-char #\newline port) (read-char port) 0) >>> >>> Isn=E2=80=99t this equivalent to: 0 ? >> >> No. This is because at the start of a new line we check if and how >> many indentation blocks have ended. If the last line doesn't terminate >> this check is no done. > > More generally, it looks like: > > (begin (do-effect!) (undo-effect!) val) > > which I thought reduces to: > > val Since we are doing IO, there are side effects. The key difference is the result of '(port-column port)' and that triggers what I mentioned. Thanks for the review. Regards, Fede