Function: org-babel-haskell-with-session
org-babel-haskell-with-session is a macro defined in ob-haskell.el.gz.
Signature
(org-babel-haskell-with-session SESSION-SYMBOL PARAMS &rest BODY)
Documentation
Get the session identified by PARAMS and run BODY with it.
Get or create a session, as needed to match PARAMS. Assign the session to SESSION-SYMBOL. Execute BODY. Destroy the session if needed. Return the value of the last form of BODY.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-haskell.el.gz
(defmacro org-babel-haskell-with-session (session-symbol params &rest body)
"Get the session identified by PARAMS and run BODY with it.
Get or create a session, as needed to match PARAMS. Assign the session to
SESSION-SYMBOL. Execute BODY. Destroy the session if needed.
Return the value of the last form of BODY."
(declare (indent 2) (debug (symbolp form body)))
`(org-babel-haskell-with-session--worker ,params (lambda (,session-symbol) ,@body)))