Bruno Barbier <brubar...@gmail.com> writes: >> Why not simply putStrLn ("\"" ++ show it ++ "\"") ? >> > > I'm not sure I understand. I'm using the first > 'org-babel-comint-with-output' to execute the source block and save the > last value (the "it" variable). Then, I'm using a second > 'org-babel-comint-with-output' to make sure the output of this one > contains only the last value. If I display "it" in the first block, I > will not be able to differentiate between some output, previous values > and the last value. And, printing "org-babel-haskell-eoe" updates the > "it" variable (the last value becoming "()"), so I have to store the > real "it" somewhere.
I see. I missed that `it' gets updated because of eoe indicator. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>