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
39
votes
3 answers

What are the similarities and differences among Haskell indentation modes for Emacs?

By scrutinizing the documentation, I have learned that Emacs haskell-mode ships with three different, mutually exclusive methods of automated indentation. They are called haskell-indentation, haskell-indent, and haskell-simple-indent. Can anyone…
Norman Ramsey
  • 198,648
  • 61
  • 360
  • 533
20
votes
6 answers

Haskell autocompletion in Emacs using haskell-mode

I installed haskel-mode in emacs. Then I write in my .emacs: (load "~/.emacs.d/haskell-mode/haskell-site-file") (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode) (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation) (add-hook…
0xAX
  • 20,957
  • 26
  • 117
  • 206
12
votes
1 answer

haskell repl in emacs

Hi i am starting with haskell and trying to set up my emacs for its development. I have haskell-mod and ghc-mod latest in emacs 24.3.1. GHC is 7.6.3 i have created a haskell file first.hs and when i do C-c C-l It asks : start a new project named…
Ashish Negi
  • 5,193
  • 8
  • 51
  • 95
12
votes
3 answers

Haskell-mode not working for my project, can't find module

Here is my scenario: I'm working on a project with the following directories/modules: |--proj |-- src |-- Foo |-- FooModule1.hs |-- FooModule2.hs |-- Bar |-- BarModule1.hs BarModule1.hs looks like…
Stephen
  • 123
  • 1
  • 6
12
votes
1 answer

Is haskellmode-vim dead?

I just disabled haskellmode-vim from my plugin configurations. Basically this was for three reasons: I prefer neocomplcache for my auto completion needs. Apparently it wasn't updated since 2010. It doesn't seem to be compatible with cabal I hope…
fho
  • 6,787
  • 26
  • 71
8
votes
2 answers

Emacs : Redefining command in Haskell-mode (haskell-mode-hook)

in emacs in haskell-mode, I wanted to change the command "C-x C-s" to "C-x C-s" followed by "C-c C-l". Taking a cue from : Haskell.org : Emacs/Keybindings and simple usage I tried inserting the following variants into the .emacs file but they…
artella
  • 5,068
  • 4
  • 27
  • 35
6
votes
2 answers

How do I set up haskell-mode to generate tags?

I am trying to setup emacs for haskell. I downloaded haskell-mode with el-get and some parts are working (like indentation, starting ghci, etc.) but I can't get the tags-generation working. Hasktags is installed, and (load…
Pi Tabread
  • 83
  • 6
4
votes
2 answers

Customize indentation width in haskell-indentation mode

I am currently using Emacs as my primary IDE for developing Haskell code and I am really satisfied so far. But at the moment I can't figure out one little detail, namely how to customize the indentation width to be 4 instead of 2. Currently I have…
bmk
  • 1,548
  • 9
  • 17
4
votes
0 answers

Flymake and Haskell

I've seen a number of older questions on this but I'm wondering if there is a more recent problem. Earlier this year I rebuilt my Ubuntu box, installed the GH system 7.6.2, and GNU Emacs 24.2.1. I've recently had some time to return to Haskell but…
sfjac
  • 7,119
  • 5
  • 45
  • 69
4
votes
2 answers

What to do when Emacs 23 Haskell compilation (C-c C-l) goes into unending process?

Many times it happens that while I try to compile an .hs file, the Emacs 23 Haskell mode goes into an unending process and does not show any response. The only thing that happens is that the cursor turns into a circle and within the circle the dots…
Optimight
  • 2,989
  • 6
  • 30
  • 48
4
votes
2 answers

Function name auto-completion in Main prompt in Emacs - haskell mode

I am writing a .hs (haskell) file through emacs and loading it with 'load file' (C-c C-l). For testing the functions, I switchover to Main Prompt Window (C-x o), where I need to type complete function name. I am sure there must be a way to get the…
Optimight
  • 2,989
  • 6
  • 30
  • 48
3
votes
2 answers

Is Haskell Mode's default indentation setup OK?

I'm learning Haskell through, appropriately enough, the Learn You a Haskell book. Up until the section on guards, none of the code examples have been indented, and I'm wondering how I should properly indent my Haskell code going forward. The book…
Sam Estep
  • 12,974
  • 2
  • 37
  • 75
3
votes
1 answer

Cabals Paths_*-Module and emacs' haskell-mode

Given a cabal-project which has a data-file and a function that wants to read it. This function f from project p does roughly the following: module F where import Paths_p f = getDataFileName "datafile.dat" >>= readFile In this file emacs…
NobbZ
  • 1,360
  • 3
  • 15
  • 30
3
votes
1 answer

Preventing pop up windows in emacs

I very new to emacs and I installed evil-mode and haskell-mode. The problem that I have is that every time I press 'o' an haskell-mode-hook window pops up and tells me that the variable is nil and I should configure it. It only appears when I…
Maik Klein
  • 15,548
  • 27
  • 101
  • 197
3
votes
1 answer

How to - piping the output of one program to the input of another (capslocker) using emacs - haskell mode?

capslocker.hs has following code: import Control.Monad import Data.Char main = forever $ do putStr "Give me some input: " l <- getLine putStrLn $ map toUpper l haiku.txt has following contents: I'm a lil' teapot What's…
Optimight
  • 2,989
  • 6
  • 30
  • 48
1
2 3 4 5