Open walseb opened 7 months ago
For those wanting to build this on Cabal, you need to clone this: https://github.com/francesquini/atto-lisp
Create a cabal.project pointing to it (simply insert something like packages: ./ ./deps/atto-lisp
), and then do a bunch of overrides as this was written prior to cabal v2:
(with-eval-after-load 'haskell-emacs
(defun haskell-emacs--compile-command (heB)
"Compile haskell-emacs with buffer HEB."
(if (eql 1 ;; If this doesn't work for you, I would remove this check. I don't know why my cabal outputs 1.
(progn (message "Compiling ...")
(setq test (+ (call-process "cabal" nil heB nil "init")
;; (call-process "cabal" nil heB nil "install" "happy" "--overwrite-policy=always") -- just install as a system dependency instead of having cabal install it
(call-process "cabal" nil heB nil "install" "--overwrite-policy=always")))))
(progn
(message "Haskell compilation success!")
(kill-buffer heB))
(let ((bug (with-current-buffer heB (buffer-string))))
(kill-buffer heB)
(error bug))))
(defun haskell-emacs--set-bin ()
"Set the path of the executable."
(setq haskell-emacs--bin "~/.local/bin/HaskellEmacs")))
Also remember to enable cabal
(setq haskell-emacs-build-tool 'cabal)
I think the package needs a bit of a rewrite which I might get to some day.
Brilliant package nonetheless!
Hello!
Is anyone able to build this package through Cabal or Nix?
For me, Nix tells me atto-lisp is marked as broken and won't build.
Cabal can't build atto-lisp either, due to a too old base being set.
I tried cloning atto-lisp and removing that limitation, but now it seems like Happy won't build:
Thoughts?