26
votes
Emacs and command line $PATH disagreements on OSX
You can also install exec-path-from-shell package and add this to your init file:
(exec-path-from-shell-initialize)
10
votes
No "full service" Haskell org mode?
You need to enable multi-line commands support in GHCi. Put :set +m to GHCi config file or execute it directly in org-babel session as shown in the following code:
#+begin_src haskell
:set +m
let ...
10
votes
Accepted
Emacs and command line $PATH disagreements on OSX
This is an OSX annoying environment issue, the $PATH appearing in Emacs is coming from /etc/paths file, which then gets appended with whatever I've set in the shell. I added /Users/g/Library/Haskell/...
6
votes
Emacs and command line $PATH disagreements on OSX
If you start emacs from your GUI environment (gnome, kde, ...) your shell startup scripts will not be sourced into your environment. So the $PATH that you carefully set in your .zsh will not be loaded....
5
votes
Haskell code execution in Org-mode give error but in .hs file the code is good and working
Well i got answer from #haskell in freenode (thanks dmwit!).
the problem is that the REPL run the code line by line (and not as a whole), thus every line create a new qs, shadowing the old one.
so ...
4
votes
Haskell Interactive Mode Setup - cabal unrecognised command: repl
On my system (Fedora 20) the default cabal version that comes with the haskell-platform package is 1.16.0.2. After installing the latest cabal-install (cabal install cabal-install), I have a new ...
4
votes
Accepted
Add more symbols to haskell `haskell-font-lock-symbols-alist`
The important value at runtime is haskell-font-lock-keywords, which is generated from the alist when loading haskell-font-lock.el. After changing haskell-font-lock-symbols-alist you will also have to ...
3
votes
Emacs and command line $PATH disagreements on OSX
If some part of the PATH gets lost then you can add it in your ~/.emacs
;;; We add /path/to/something/extra by appending it to the path
(setenv "PATH" (concat (getenv "PATH") ":/path/to/something/...
3
votes
Accepted
how to get correct indentation after pressing 'o' in haskell-mode using evil-mode in spacemacs
This appears to be a problem with the interaction between evil and haskell-mode.
Here are some relavent issues on the spacemacs and haskell-mode bug trackers:
https://github.com/syl20bnr/spacemacs/...
3
votes
Emacs and command line $PATH disagreements on OSX
Another way to accomplish this is to simply tell the shell that it's a login shell so that it sources all of the right files. I do this for bash by setting explicit-bash-args to ("--noediting" "--...
3
votes
haskell-mode emacs not finding modules when using stack
All you (should) need to do is insert the following line in your emacs config:
(setq haskell-process-type 'stack-ghci)
That tells emacs that you want to use stack's repl command instead of whatever ...
2
votes
Accepted
Clear ghci screen of haskell-mode
In haskell-mode, C-c C-l calls haskell-process-load-or-reload, and you go into a sub-mode called haskell-cabal-mode-map.
In that mode there is a command haskell-interactive-mode-clear to clear the ...
2
votes
Accepted
Symbol documentation and implementation code in haskell-mode
Hoogle is what I serching for. At this moment there is (at least) two ways to integrate it nicely with Emacs.
Directly through haskell-mode. Fuction which should be called with cursor on desired ...
2
votes
Accepted
How to Use Stack's GHCI when in Haskell Interactive Mode
You can use this line in your Emacs configuration in order to use Stack's GHCI:
(custom-set-variables '(haskell-process-type 'stack-ghci))
Then use the haskell-session-change command to change the ...
1
vote
Emacs keeps overwriting files in Haskell mode
In my case, and in case anyone else using dante stumbles on this: this seems to be a feature of Dante for typechecking to work.
And this was removed in favour of using temp. files as discussed in this ...
1
vote
How to disable stack with flycheck for Haskell?
(add-to-list 'flycheck-disabled-checkers 'haskell-stack-ghc)
The first argument to add-to-list is the name (more precisely the symbol) of the variable to modify. The second argument is the element (...
1
vote
Flycheck-Haskell - "Opening Directory" "Not a directory"
This was frustrating me too :| It's got to do with how Flycheck searches for the stack.yaml file. It's being fixed on Flycheck:
https://github.com/flycheck/flycheck/issues/1291
https://github.com/...
1
vote
Accepted
Customize haddock comments color
I would like to change the color of the doc-comments only for Haskell, not globally.
You can combine the buffer-local effects of Face Remapping with a mode hook to achieve this. For example, in order ...
1
vote
No "full service" Haskell org mode?
Another option for Haskell source blocks in org-mode is to use emacs-jupyter with the IHaskell kernel.
Multi-line code blocks work as expected, e.g.
#+begin_src jupyter-haskell
let ...
1
vote
How to configure spacemacs to work correctly with haskell Stack?
Spacemacs already have the Haskell layer.
This layer has the following dependencies:
apply-refact (required by hlint-refactor)
hlint (required by hlint-refactor)
stylish-haskell (optional for ...
1
vote
How to configure spacemacs to work correctly with haskell Stack?
I use intero for programming Haskell in Emacs. It has superior stack support. Check it out at its homepage.
1
vote
`haskell-mode-hook` is nil?
Here's what happens, for those of you who write and hack on packages:
Emacs tries balancing the customization abilities and expressiveness of its extension language. This is why defvar (and by ...
1
vote
Error with company-mode, using Haskell
If you want to have the ELPA packages activated already when the init script runs, you should call (package-initialize) first.
1
vote
Accepted
Avoid extra tabs when generating Haskell code with ghc-mod
I found the answer in this Stackoverflow post. Adding the following to your init file avoids the issue:
;; Avoid extra TAB indents when pasting or auto-generating code
(electric-indent-mode 0)
1
vote
Emacs and command line $PATH disagreements on OSX
You can also set an OS X-wide default path by for example saving a property list like this as ~/Library/LaunchAgents/my.startup.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist ...
1
vote
Install haskell-mode failed via el-get-install
This was an upstream bug that has been fixed in the meantime.
Community wiki
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
haskell-mode × 35spacemacs × 4
flycheck × 4
doom × 4
org-mode × 3
org-babel × 3
font-lock × 3
indentation × 2
evil × 2
osx × 2
hooks × 2
customize × 2
formatting × 2
lsp × 2
key-bindings × 1
elisp × 1
shell × 1
faces × 1
completion × 1
major-mode × 1
company-mode × 1
colors × 1
lsp-mode × 1
tabs × 1
prelude × 1