Fix ob-haskell.el to work with custom ghci prompts
commitb4678774375251927d002811ff1d32426503eef8
authorDoro Rose <doroerose@gmail.com>
Sat, 2 Dec 2017 21:25:54 +0000 (2 22:25 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 11 Dec 2017 14:11:56 +0000 (11 15:11 +0100)
tree82980bdc6487b790e10a2f3bee040b0a68141764
parent1187538a212112708993b44e6b814f1a70e9f6ce
Fix ob-haskell.el to work with custom ghci prompts

* lisp/ob-haskell.el (haskell-prompt-regexp):  Define defvar
`haskell-prompt-regexp`.  This variable will override the variable set by
inf-haskell, when `org-babel-execute:haskell` is called.
(org-babel-execute:haskell):  Make sure that
`comint-prompt-regexp` is set appropriately to enable  correct parsing
of "λ"-prompts.  Set `comint-preoutput-filter-functions` appropriately to
enable correct parsing of coloured ghci prompts.

The problem was that code sent back from the inf-haskell buffer to
 org-babel wasn't parsed correctly in `org-babel-comint-with-output`.
 This occured when the user uses the commonly used "λ"-prompt.

TINYCHANGE
lisp/ob-haskell.el