Skip to content

Instantly share code, notes, and snippets.

@DanielG
Created October 30, 2014 17:29
Show Gist options
  • Save DanielG/568ca37829c7e5b70752 to your computer and use it in GitHub Desktop.
Save DanielG/568ca37829c7e5b70752 to your computer and use it in GitHub Desktop.
(defun ghc-run-ghc-mod (cmds &optional prog)
(let ((target (or prog ghc-module-command)))
(let ((cdir default-directory))
(with-temp-buffer
(cd cdir)
(apply 'ghc-call-process target nil t nil
(append (ghc-make-ghc-options) cmds))
(buffer-substring (point-min) (1- (point-max)))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment