emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/haskell-mode b2427232ab 02/24: Fix compilation command to


From: ELPA Syncer
Subject: [nongnu] elpa/haskell-mode b2427232ab 02/24: Fix compilation command to handle whitespace in file path
Date: Tue, 1 Nov 2022 22:58:51 -0400 (EDT)

branch: elpa/haskell-mode
commit b2427232ab0b9ea0f6e02db273027618bbf23899
Author: User1 <53079444+EuanParr@users.noreply.github.com>
Commit: User1 <53079444+EuanParr@users.noreply.github.com>

    Fix compilation command to handle whitespace in file path
    
    Enclose the selected file's path in quotes to ensure it is parsed as one 
argument.
---
 haskell-compile.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/haskell-compile.el b/haskell-compile.el
index 4ef85f1e74..8b19662f4b 100644
--- a/haskell-compile.el
+++ b/haskell-compile.el
@@ -69,7 +69,7 @@ For legacy compat, `%s' is replaced by the stack package top 
folder."
   :type 'string)
 
 (defcustom haskell-compile-command
-  "ghc -Wall -ferror-spans -fforce-recomp -c %s"
+  "ghc -Wall -ferror-spans -fforce-recomp -c \"%s\""
   "Default build command to use for `haskell-cabal-build' when no cabal or 
stack file is detected.
 The `%s' placeholder is replaced by the current buffer's filename."
   :group 'haskell-compile



reply via email to

[Prev in Thread] Current Thread [Next in Thread]