Closed
Description
I'm struggling to get Haskell-Mode working with a Cabal project.... :(
If I run with a simple non-cabal project, it all works fine. But after executing cabal init
, answering the questions, then from Emacs calling C-c C-l
, I get the message that the Haskell process has died. Here's the output of the process log:
("Starting inferior `cabal repl' process using cabal ..." "cis194" nil "cabal" "repl" "--ghc-option=-ferror-spans")
-> :set prompt "\4"
-> Prelude.putStrLn ""
-> :set -v1
<- Preprocessing library cis194-0.1.0.0...
Event: "finished
"
Process reset.
My cabal file looks like this:
name: cis194
version: 0.1.0.0
synopsis: cis194 examples and exercises
description: cis194 examples and exercises
license-file: LICENSE
author: Galder Zamarreño
maintainer: galder@zamarreno.com
build-type: Simple
cabal-version: >=1.10
library
build-depends: base >=4.8 && <4.9
hs-source-dirs: src
default-language: Haskell2010
As a result of this, I think my indention and other modes are not working correctly because after creating src/Week1.hs
file like this and saving it, the editor says there's an error in first line and at the bottom I get an indentation failed message like this (Haskell failed Ind company)
module Week1 where
-- Declarations and variables
x :: Int
x = 3
--x = 4
Any ideas what's the problem here?
Here's some version information:
% cabal --version
cabal --version
cabal-install version 1.22.0.0
using version 1.22.0.0 of the Cabal library
% ghc --version
ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.1
haskell-mode 20150504.233
Metadata
Metadata
Assignees
Labels
No labels