Skip to content
Browse files

Fix checking the haskell-session is bound in stylish-buffer (fixes #66).

  • Loading branch information...
1 parent 1c078d4 commit 73ef95a9f80d175bc4cc27148d4bd57fb2ba3238 @chrisdone chrisdone committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 haskell-mode.el
View
3 haskell-mode.el
@@ -767,7 +767,8 @@ This function will be called with no arguments.")
buffer remains unchanged."
(let* ((file (buffer-file-name (current-buffer)))
(output (with-temp-buffer
- (let ((default-directory (if haskell-session
+ (let ((default-directory (if (and (boundp 'haskell-session)
+ haskell-session)
(haskell-session-cabal-dir haskell-session)
default-directory)))
(call-process cmd

0 comments on commit 73ef95a

Please sign in to comment.
Something went wrong with that request. Please try again.