From mboxrd@z Thu Jan 1 00:00:00 1970 From: Doro Rose Subject: Re: [PATCH]: Fix ob-haskell.el to work with custom ghci prompts Date: Sat, 18 Nov 2017 12:12:24 +0100 Message-ID: References: <87k1yque93.fsf@nicolasgoaziou.fr> <87y3n4tuvy.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eG132-0000Ng-VN for emacs-orgmode@gnu.org; Sat, 18 Nov 2017 06:12:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eG12z-0000tu-PN for emacs-orgmode@gnu.org; Sat, 18 Nov 2017 06:12:32 -0500 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:42700) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eG12z-0000t6-IL for emacs-orgmode@gnu.org; Sat, 18 Nov 2017 06:12:29 -0500 Received: by mail-wm0-x22a.google.com with SMTP id 5so9608794wmk.1 for ; Sat, 18 Nov 2017 03:12:28 -0800 (PST) In-Reply-To: <87y3n4tuvy.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 17 Nov 2017 23:14:57 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Doro Rose writes: > >> In summary, yes I'm accessing user settings but in a rather >> noninvasive way. Unfortunately I can't think of a more elegant way to >> do this. > > Let's put it differently then. Isn't it the job of the user, who changed > their prompt, to configure properly "inf-haskell" library? I don't get > why it should be a task for "ob-haskell". > > This is a genuine question: I don't use Haskell at all. > > Regards, Well the "inf-haskell" library is fine as it is, i.e. the code sent to its buffer is evaluated correctly in the corresponding buffer. The problem occurs when sending code to that buffer via org-babel, since the interpreter output isn't parsed correctly in `org-babel-comint-with-output`. As an org-babel user my expectation would be for that to just work out of the box. -> Without having to figure out that I need to set internal variables defined in "inf-haskell" or that I need to add `ansi-color-filter-apply` to `comint-preoutput-filter-functions`.