Questions tagged [haskell-mode]

The haskell-mode package is a set of major modes for Emacs for writing Haskell code and working with Haskell projects.

The haskell-mode package is a set of major modes for Emacs for writing Haskell code and working with Haskell projects.

See https://github.com/haskell/haskell-mode

62 questions
2
votes
1 answer

haskell-process file not found in haskell-mode

I'm trying to follow the haskell wiki to set up emacs to program haskell. I'm using haskell mode, and that seems to be working and okay, but now I try to generate haskell tags to be able to open a file with the M-. shortcut. I installed hasktags and…
Kasper
  • 1,205
  • 12
  • 22
2
votes
1 answer

getting haskellmode-vim to work with a cabal project

When I build a cabal project in vim, using :set makeprg=cabal\ build :make haskellmode-vim doesn't seem to find the type information. Doing _t when the cursor is on foo gives me "foo type not known". How can I get haskellmode-vim to obtain the type…
user316146
  • 1,307
  • 1
  • 12
  • 19
1
vote
1 answer

emacs haskell-mode with cabal project. "Unrecognised target syntax for ` --ghc-option=ferror-spans`."

I'm trying to get emacs haskell-mode working with a cabal project. Whenever I try to compile or load a file interactively I get the following output in the haskell-process-log compiling (via (C-c C-c)): cabal.exe: No targets given and there is no…
frabrooks
  • 155
  • 8
1
vote
0 answers

How to configure Spacemacs to use the global installed intero?

Whenever I create a new project and I open it with Spacemacs, Spacemacs will try to install a local intero over and over again leaving me waiting for it to finish the installation. Can I just use my global installed intero for all my stack projects?
Vimniky Luo
  • 156
  • 1
  • 6
1
vote
1 answer

Haskell-mode "could not find module"

I am following an Asteroids tutorial in Haskell(Haskeroids) and I'm having a problem with my submodules. Basically, my folder structure is like this: project/ |-- main.hs |-- Haskeroids/ |-- Geometry.hs |-- Geometry/ |--…
N. Silvestrin
  • 21
  • 1
  • 5
1
vote
2 answers

Installing haskell-mode into Emacs on Ubuntu 12

I'm following these instructions to install haskell-mode on Ubuntu 12. However when I get to the point of typing M-x customize-option RET pac then Emacs says: no match! All the customizable variables are shown in the picture below. Any idea what is…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
1
vote
0 answers

Autocomplete not working correctly after updating Cabal

I recently updated Cabal to version 1.22, before installing ghc-mod so I could get some much needed error-checking in my projects. The update didn't come without complications, ghc-mod wouldn't even run before I had added the path of the latest…
Electric Coffee
  • 11,733
  • 9
  • 70
  • 131
1
vote
2 answers

Can you add a function to a mode-hook to resize the window that the mode opens?

In haskell-mode, C-c C-b opens a GHC REPL for testing and whatnot. However, it invariably opens in a frame equal in size to the one in which I am coding. There is a mode hook, inferior-haskell-mode-hook, but my attempts to add something along the…
asg0451
  • 493
  • 4
  • 13
1
vote
1 answer

Can't rebind C-x C-s to use haskell-mode specific function since its definition is void

In order to do specific actions on save in haskell-mode, this page recommends to rebind the C-x C-s keybinding to use haskell-mode-save-buffer instead of just the standard save-buffer command: (define-key haskell-mode-map (kbd "C-x C-s")…
Guildenstern
  • 2,179
  • 1
  • 17
  • 39
1
vote
2 answers

Haskell-mode reports "Can't find the prompt"---what could be wrong?

When I run C-c C-l haskell-mode reports "Can't find the prompt". My questions are as follows: how would I go about debugging this problem? "Can't find the prompt" in itself is probably too little information, so how would I go about finding what…
wen
  • 3,782
  • 9
  • 34
  • 54
1
vote
1 answer

Haskell-mode source navigation for dependencies

I am using haskell-mode for Emacs. I succeeded at creating etags for my haskell project on every save by hasktags, however, the cabal dependencies can not be navigated to this way. So I wonder: Is there a way to make this source code navigation work…
sleepomeno
  • 193
  • 8
1
vote
0 answers

Installing scion in emacs

I am looking to install the scion for my emacs. However as the README suggests, when I run cabal install the following error pops up: Resolving dependencies... In order, the following will be installed: scion-0.3 (reinstall) changes:…
sudeepdino008
  • 3,194
  • 5
  • 39
  • 73
1
vote
1 answer

How do I change the default working directory of haskell mode in emacs

I am trying to make it so the default working directory of haskell mode updates when I load a module via C-l. Currently, the working directory is always my home directory. This makes it impossible to load custom modules and run them with emacs.…
Joe
  • 1,534
  • 9
  • 19
1
vote
2 answers

haskell-mode prints "*Main>" on same line after using putChar?

Code: main = do putChar 't' putChar 'e' putChar 'h' While I run above-mentioned code, I am getting *Main> main teh*Main> But I am expecting *Main> main teh *Main> My question: Why teh*Main comes instead of teh and then *Main in another…
Optimight
  • 2,989
  • 6
  • 30
  • 48
1
vote
1 answer

How to resolve issues when getting error: Not in scope

*Main> :t putStrn :1:1: Not in scope: `putStrn' Perhaps you meant one of these: `putStr' (imported from Prelude), `putStrLn' (imported from Prelude) Please note that I am practising haskell programming in emacs with haskell…
Optimight
  • 2,989
  • 6
  • 30
  • 48