Questions tagged [ghc-mod]

ghc-mod is a command to enrich Haskell programming on editors

ghc-mod is both an executable and a Haskell library. It is used to provide warnings, errors and type information in the context of Haskell programming. The official description is as follows:

Happy Haskell Programming

The ghc-mod command and ghc-modi command are backend commands to enrich Haskell programming on editors including Emacs, Vim, and Sublime. ghc-mod and ghc-modi are based on the ghc-mod library which is a wrapper of GHC API and Cabal.

ghc-mod gets used in vim, emacs, Sublime Text, and other editors.

See also:

External resources

57 questions
0
votes
1 answer

Haskell Stack install of ghc-mod fails at old time and clock

Installing ghc-mod through stack fails. I've tried all the solutions I found googleing to no avail. I've installed happy and alex. All the other solutions I've found are 1-2 years old and relate to upgrading to GHC 8. ERROR OUTPUT stack install…
iangrant
  • 3
  • 2
0
votes
0 answers

cabal install ghc-mod fails

Running Haskell platform 8.0.1 on Windows 10-64; everything seems fine, but "cabal install ghc-mod" fails; (cabal-install version 1.24.0.0) >cabal install ghc-mod Resolving dependencies... Configuring old-time-1.1.0.3... Failed to install…
guthrie
  • 4,529
  • 4
  • 26
  • 31
0
votes
1 answer

cabal cabal-install error in Ubuntu 14.04

I followed the procedure here for installing GHC and cabal, and then for ghc-mod. But, I get this error at this step cabal update && cabal install cabal-install Configuring cabal-install-1.24.0.2... Failed to install cabal-install-1.24.0.2…
Vijeth Aradhya
  • 268
  • 2
  • 11
0
votes
1 answer

Multiple installations of ghc-mod

I have noticed I have 3 sets of ghc-mod.exe, ghc-modi.exe etc on my computer. The first one I suspect was created with stack. It is in c:\users\myname\appdata\roaming\local\bin The 2nd one I think was created with cabal and is in…
user1897830
  • 443
  • 1
  • 3
  • 10
0
votes
2 answers

atom won't work with .cabal file

I have been learning haskell using the atom editor on Windows 7. This has worked fine until I created a .cabal file. Now I continuously get red error messages.In fact it is so bad to be unusable as the error messages keep popping up faster than you…
user1897830
  • 443
  • 1
  • 3
  • 10
0
votes
1 answer

ghc-mod doesn't see System.Random

After cabal install random, I try ghc-mod list but it still doesn't see the package. cabal --version cabal-install version 1.22.6.0 using version 1.22.4.0 of the Cabal library ghc-mod --version ghc-mod version 5.5.0.0 compiled by GHC 7.10.3 I…
allidoiswin
  • 2,543
  • 1
  • 20
  • 23
0
votes
0 answers

vim-hdevtools: error message about ghc-mod root

Recently (after fixing my Haskell setup after upgrading to El Capitan), when I'm editing Haskell files for a moment in Vim, I get the following error: "FPRef.hs" 13L, 316C written syntastic: error: checker output: You must run ghc-mod in the project…
Ming-Tang
  • 17,410
  • 8
  • 38
  • 76
0
votes
1 answer

IntelliJ publigin: ghc-modi error output: NG quit

I'm just using GHC 7.8.4 and cabal 1.22.0.0 with IntelliJ Haskell plugin. After starting my project, I receive this error log ghc-modi failed ghc-modi failed with error: NG BUG: cabal: createProcess: runInteractiveProcess: exec: does not…
Nks Sai
  • 23
  • 2
0
votes
1 answer

Installing ghc-mod from melpa: Error during download request

I am following the instructions here to install ghc-mod in Emacs. I can add the melpa repos and list packages with M-x package-list-packages, then when I go to install the ghc package, this happens: Debugger entered--Lisp error: (error "Error during…
jaybee
  • 1,897
  • 2
  • 16
  • 29
0
votes
1 answer

ghc-mod info only works for main

So I have a very basic haskell file that looks like this : main = thing thing = print "hi" When I run the ghc-mod command to get info on the main function like this : 'ghc-mod info file.hs main', I get the proper result : main :: IO () -- Defined…
Marcus Buffett
  • 1,289
  • 1
  • 14
  • 32
0
votes
1 answer

ghc-mod can't find a user installed module

I have a situation where ghc-mod can't find a module installed in my ~/.ghc/ directory. The program (foo.hs) is just: import Control.Monad.Loops main = undefined ghci loads foo.hs without any errors. ghc-pkg list produces the…
ErikR
  • 51,541
  • 9
  • 73
  • 124
0
votes
0 answers

Execute ghc-mod fail when .cabal file in current directory

When I execute ghc-mod version normally, It will print the infomation like this: ghc-mod version 5.0.1.2 compiled by GHC 7.8.3 But if .cabal file was in current directory, It will print the error message like this: cabal configure failed: user…
solomon_wzs
  • 1,711
  • 5
  • 16
  • 29
1 2 3
4