From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iGuzOoXM8V9zEQAA0tVLHw (envelope-from ) for ; Sun, 03 Jan 2021 13:54:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cBibNoXM8V/ULgAAB5/wlQ (envelope-from ) for ; Sun, 03 Jan 2021 13:54:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 525A39403CB for ; Sun, 3 Jan 2021 13:54:13 +0000 (UTC) Received: from localhost ([::1]:41432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kw3pi-00082S-Jr for larch@yhetil.org; Sun, 03 Jan 2021 08:54:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kw3oT-0007vC-Mi for emacs-orgmode@gnu.org; Sun, 03 Jan 2021 08:52:53 -0500 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]:41158) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kw3oR-0001Vr-Or for emacs-orgmode@gnu.org; Sun, 03 Jan 2021 08:52:53 -0500 Received: by mail-pf1-x433.google.com with SMTP id t8so14726586pfg.8 for ; Sun, 03 Jan 2021 05:52:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=o+U42nhIIVx/oktdr/JL6eg3ZeJUssv9Id2CUV0LXJA=; b=BqJNKDwEvIE8mCzpbOIf85zHbCulMJGWdQhmlw1YnyVdwJwwBzkMgU9pYp6/EPd/FV FbaV8j6MhqdfcHYMlE1zQ2ItBSjcOJh1e7n9xz4NcBeNiOmOowNAqn/IgR1mNaubkl6x qC61aoX9TmpJg4ykL4mXo/QzWjH1Y4+wisbcPMiQBJd5+OECxGRTjGgrlDNYZ7gH11wi G7aK1474aSUHsOtcQuHDI2yYWd0ia1UBWHPgaosMtB+KupfSNDadY9yZwzCh9r1UELCw UXCvn2ek/ytbkJE/ndp64kApJYqvjkMHJjooXPkZIl/6bPv2tSqjBPOz1ILLQck/o8xl /gcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=o+U42nhIIVx/oktdr/JL6eg3ZeJUssv9Id2CUV0LXJA=; b=l1/dcs0t125R99SpHYB8QccMAUi4zyCLC/FDN26jCeriMYn2Ay3+LDQlHbbzvaShwb XnDFVcgTVmfmq06O5waAmthVyj0nRZR6hT9lBOGUlFl8eWeveOP1esmWsMKJVdyO04dh /v0nEgXAckN/ZVQcMqNOKQnBVzWLlbft54IKMEDW3oFGNOnlPhotz/3wS0OcJVahc5kE eFGV100yJMbRJxuJVtuWGzdDJZ1tXm+Yd6zLqsu26TWrELqwhNeEf6l5fTMbTiQS4LZL pV1MAiq8zqUMLTEXplqzUOZRJorAR80PACsabFURUjUG50z1nWU/Wdhc/DH1WtqV8/UG LsgQ== X-Gm-Message-State: AOAM531qY5SZ4WONVPFmDJ6goZm54QUQZzr1Sxsj2IKOhFMKHWdSNFkW mg7Mr9gbMEN7Y93jpenqug2ri1ScbenqzQ== X-Google-Smtp-Source: ABdhPJxa0Uv9XZOyGvMqiRQpRRN3xPY/mogDvQoO8Hrh569wPwc9mP39OSLJmmZ/oQypuSQB/m/erQ== X-Received: by 2002:a65:689a:: with SMTP id e26mr67596255pgt.413.1609681966523; Sun, 03 Jan 2021 05:52:46 -0800 (PST) Received: from geus3064linuxwsm (75-172-119-145.tukw.qwest.net. [75.172.119.145]) by smtp.gmail.com with ESMTPSA id x12sm53774813pfj.25.2021.01.03.05.52.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jan 2021 05:52:46 -0800 (PST) References: User-agent: mu4e 1.4.3; emacs 27.1 From: Ken Mankoff To: Lawrence Bottorff Subject: Re: ob-haskell In-reply-to: Date: Sun, 03 Jan 2021 05:52:45 -0800 Message-ID: <875z4eunyq.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::433; envelope-from=mankoff@gmail.com; helo=mail-pf1-x433.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=BqJNKDwE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 525A39403CB X-Spam-Score: -3.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4oKzRAvJwM0/ Hi Lawrence, This isn't a method for official language support, but I've had success with entirely unsupported REPLs and ob-screen. A .screenrc can launch the REPL, and then Org ob-screen just sends each line to the buffer. It works OK for me. -k. On 2021-01-02 at 13:44 -08, Lawrence Bottorff wrote... > I recently wimped out of trying to update ob-haskell as an official > maintainer, but I'd eventually like to get back to it -- *after *I get > some base understanding of what Haskell is (Zeno's paradox-land?) and > how the ghci works. Basically, the ghci is what it is -- tautological, > but true. And that means when ob-haskell does nothing but dump the > contents of a babel code block into ghci, it's no better than if the > user had typed in into the REPL line-by-line. A quick run-down: > > :set +m supposedly alerts ghci that a multi-line expression is coming, will > come; but typically, it doesn't infer this very well. > > Enclosing code in :{ ... :} is fairly good -- again you can type this in at > the REPL prompt and see how it works -- however, there are gotchas. > > a plain block: > > #+begin_src haskell > ...code... > #+end_src > > is okay when you only have a one-liner to evaluate. But again, ob-haskell > seems to do nothing but take the block contents and dump it to the ghci > REPL as though the user had typed it in line-by-line, Enter, Enter... > > What would be nice is if a C-c C-c inside a block could somehow act as > though the ghci were being sent a regular *.hs buffer in haskell-mode -- > and that, of course, cumulatively. C-' creates a decent haskell-mode > environment, BTW, so some form of a babel block to haskell-mode connection > does exist.... > > So am I on the right track? It's obvious at this point raw dumps into the > REPL aren't optimal, i.e., are fraught. What is, e.g., geiser&Scheme doing > that ob-haskell isn't? > > LB > > PS: Eventually, I'll try to glean some hints from the Jupyter Haskell > effort. > > PPS: GHCI User's Guide > > doesn't > really tell me anything other than yes, ob-haskell is raw-dumping into an > environment that isn't designed to play nice with babel.