[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] ob-haskell: Line Continuations Mangle Block Output
From: |
Nick Daly |
Subject: |
[PATCH] ob-haskell: Line Continuations Mangle Block Output |
Date: |
Sun, 17 May 2020 14:30:32 -0500 |
Hi Org Maintainers,
Please see the attached patch to remove "Prelude> " and "Prelude| " line
continuations from the block result output when parsing blocks that contain
multi-line function declarations.
This likely requires yesterday's patch to return value-type results from
Haskell blocks. This patch applies cleanly against the org-mode master.
#+name: chain-ecm
#+BEGIN_SRC haskell
:{
chain :: (Integral a) => a -> [a]
chain 1 = [1]
chain n
| even n = n:chain (n `div` 2)
| odd n = n:chain (n*3 + 1)
:}
chain 10
#+END_SRC
Results without patch:
: Prelude| Prelude| Prelude| Prelude| Prelude| Prelude| Prelude>
[10,5,16,8,4,2,1]
Results with patch:
: | 10 | 5 | 16 | 8 | 4 | 2 | 1 |
Thank you for your time,
Nick
ob-haskell-trim-prelude.diff
Description: Text Data
- [PATCH] ob-haskell: Line Continuations Mangle Block Output,
Nick Daly <=