Skip to content

stack: no such file #1300

Closed
Closed
@julien-truffaut

Description

@julien-truffaut

Hi, I am trying to use haskell-mode with stack but I am getting the following error when I run M-x haskell-process-load-file: Searching for program: no such file or directory, stack

I have the following config:

(req-package haskell-mode
  :config (progn
    (define-key haskell-mode-map (kbd "C-c C-l") 'haskell-process-load-file)
    (add-hook 'haskell-mode-hook 'haskell-doc-mode)
    (add-hook 'haskell-mode-hook 'haskell-indentation-mode)
    (add-hook 'haskell-mode-hook 'interactive-haskell-mode)
    (add-hook 'haskell-mode-hook 'haskell-decl-scan-mode)
    (add-hook 'haskell-mode-hook (lambda ()
                   (electric-indent-local-mode -1)))
    (setq haskell-process-type 'stack-ghci)
    (setq haskell-process-path-ghci "stack")
    (setq haskell-process-args-ghci '("ghci"))

    (setq haskell-process-suggest-remove-import-lines t)
    (setq haskell-process-auto-import-loaded-modules t)
    (setq haskell-process-log nil)
    (setq haskell-stylish-on-save t)))

I have stack on my path and I was using spacemacs previously which could find stack ghci.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions