Comments (3)
This sounds similar to what I'm (was) experiencing. It seems that inferior-haskell-cabal-of-buf
is doing something not quite right. Here's what I've changed:
diff --git a/inf-haskell.el b/inf-haskell.el
index 6433169..67deba4 100644
--- a/inf-haskell.el
+++ b/inf-haskell.el
@@ -275,11 +275,12 @@ The process PROC should be associated to a comint buffer."
(with-current-buffer buf
(or (and (buffer-live-p inferior-haskell-cabal-buffer)
inferior-haskell-cabal-buffer)
- (and (not (local-variable-p 'inferior-haskell-cabal-buffer
- ;; XEmacs needs this argument.
- (current-buffer)))
- (set (make-local-variable 'inferior-haskell-cabal-buffer)
- (haskell-cabal-find-file))))))
+ (if (local-variable-p 'inferior-haskell-cabal-buffer
+ ;; XEmacs needs this argument.
+ (current-buffer))
+ inferior-haskell-cabal-buffer
+ (set (make-local-variable 'inferior-haskell-cabal-buffer)
+ (haskell-cabal-find-file))))))
(defun inferior-haskell-find-project-root (buf)
(with-current-buffer buf
In old version, first parameter to and
would just produce nil
, because variable is already set on subsequent reloads, instead of giving actual value.
Let me now if I should issue pull request for this.
from haskell-mode.
If you want it in the next release, pull request, otherwise not.
from haskell-mode.
can't reproduce so I guess/hope it's fixed now
from haskell-mode.
Related Issues (20)
- C-c C-c `haskell-process-cabal-build` won't work if haven't ran C-c C-l
- Cabal repl without a cabal file
- tree-sitter HOT 1
- add topics HOT 1
- Feature request: "cabal repl" with file target HOT 1
- Haskell repl freezes when I run getChar HOT 1
- string-trim-left redefinition vs quasi-quote tests in emacs 29.1 HOT 3
- Should `haskell-cabal` mode derive from `prog-mode`? HOT 4
- Color escape sequences from `cabal repl` causing garbled output (Cabal 3.10.1.0) HOT 3
- `deriving someStrategy ...` breaks indentation in the rest of the file
- flymake-allowed-file-name-masks is void HOT 3
- haskell-cabal: bad indentation with redundant leading comma
- error "Marker does not point anywhere"
- Symbol's value as variable is void: flymake-allowed-file-name-masks HOT 6
- An interface for hoogle HOT 5
- Add {-# LANGUAGE Data #-} to the top of the file? (y or n) HOT 2
- Loading a file under test-suite fails when importing library
- Parse error for Haskell sections
- Is cabal repl TARGET possible on starting ghci?
- automatically change session target based on buffer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell-mode.