Compare commits

..

2 Commits

2 changed files with 26 additions and 21 deletions

View File

@ -1083,10 +1083,16 @@ I have also found this to be much simpler and conflicting with other packages su
;; local completions in 'where' and 'let' clauses ;; local completions in 'where' and 'let' clauses
'((company-capf company-dabbrev-code)))) '((company-capf company-dabbrev-code))))
;; flycheck setup (needed to get flycheck to pay attention to flags/extensions
;; in cabal files)
(use-package flycheck-haskell
:straight t)
(use-package haskell-mode (use-package haskell-mode
:straight t :straight t
:hook ((haskell-mode . origami-mode) :hook ((haskell-mode . origami-mode)
(haskell-mode . company-mode) (haskell-mode . company-mode)
(haskell-mode . flycheck-haskell-setup)
(haskell-mode . haskell-indentation-mode) (haskell-mode . haskell-indentation-mode)
;; this enables better integration with the running GHCi process ;; this enables better integration with the running GHCi process
;; NOTE this is NOT the same is haskell-interactive-mode which is used ;; NOTE this is NOT the same is haskell-interactive-mode which is used
@ -1115,15 +1121,13 @@ I have also found this to be much simpler and conflicting with other packages su
;; unnecessary to see on the modeline ;; unnecessary to see on the modeline
(delight 'subword-mode nil "subword")) (delight 'subword-mode nil "subword"))
#+END_SRC #+END_SRC
**** hlint **** hlint
This is an additional syntax checker and requires the =hlint= binary. This is an additional syntax checker and requires the =hlint= binary.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(nd/require-bin "hlint" :aur "hlint-bin")
(nd/when-bin "hlint"
(with-eval-after-load 'haskell (with-eval-after-load 'haskell
(flycheck-add-next-checker 'haskell-stack-ghc '(t . haskell-hlint)))) (flycheck-add-next-checker 'haskell-stack-ghc '(t . haskell-hlint)))
#+END_SRC #+END_SRC
**** helper functions **** helper functions
Other helper functions that make haskell even more fun. Other helper functions that make haskell even more fun.

View File

@ -1,4 +1,4 @@
(("ESS" . "b6aefb9ca231c3cbb1a6532b8afa4022c2678f81") (("ESS" . "8b4664e4a76a573b76ab3cf7a467d5e20fd5a6de")
("Highlight-Indentation-for-Emacs" . "d88db4248882da2d4316e76ed673b4ac1fa99ce3") ("Highlight-Indentation-for-Emacs" . "d88db4248882da2d4316e76ed673b4ac1fa99ce3")
("ace-window" . "77115afc1b0b9f633084cf7479c767988106c196") ("ace-window" . "77115afc1b0b9f633084cf7479c767988106c196")
("anaconda-mode" . "ca8edbaa7662d97e4a4416ec9a8d743863303911") ("anaconda-mode" . "ca8edbaa7662d97e4a4416ec9a8d743863303911")
@ -10,7 +10,7 @@
("biblio.el" . "ee52f6cda82ea6fbc3b400e7b12132595cc0374c") ("biblio.el" . "ee52f6cda82ea6fbc3b400e7b12132595cc0374c")
("blacken" . "456596e00f8277eafd9a08c62a71df06e8cad2c5") ("blacken" . "456596e00f8277eafd9a08c62a71df06e8cad2c5")
("c-eldoc" . "f4ede1f37f6de583376669735326367d84a0a917") ("c-eldoc" . "f4ede1f37f6de583376669735326367d84a0a917")
("cider" . "ec31a4614bf612b228c79d59cc7554c4e9605db4") ("cider" . "f695986d97d3df5cbaa2ee45e49a58d9e8de9212")
("citeproc-el" . "2623043b2546ee09a4bd86641870ca86332c0bcf") ("citeproc-el" . "2623043b2546ee09a4bd86641870ca86332c0bcf")
("clang-format" . "e48ff8ae18dc7ab6118c1f6752deb48cb1fc83ac") ("clang-format" . "e48ff8ae18dc7ab6118c1f6752deb48cb1fc83ac")
("clojure-mode" . "3453cd229b412227aaffd1dc2870fa8fa213c5b1") ("clojure-mode" . "3453cd229b412227aaffd1dc2870fa8fa213c5b1")
@ -19,18 +19,18 @@
("company-c-headers" . "9d384571b1190e99d0a789e5296176d69a3d0771") ("company-c-headers" . "9d384571b1190e99d0a789e5296176d69a3d0771")
("company-irony" . "b44711dfce445610c1ffaec4951c6ff3882b216a") ("company-irony" . "b44711dfce445610c1ffaec4951c6ff3882b216a")
("company-math" . "3eb006874e309ff4076d947fcbd61bb6806aa508") ("company-math" . "3eb006874e309ff4076d947fcbd61bb6806aa508")
("company-mode" . "d5d06f0539068e741b12a480be3f312e9b6df812") ("company-mode" . "2ca3e29abf87392714bc2b26e50e1c0f4b9f4e2c")
("compat" . "226bd90cddc2dc20404a1d817032b83026afe4a6") ("compat" . "d88a0520f6df9265d79348c17a5d3cbdf4370ed0")
("conda.el" . "667968184e40afa8514ece090893a160ae16b258") ("conda.el" . "667968184e40afa8514ece090893a160ae16b258")
("csv-mode" . "58d1b74e5ecdff748f314bf701f5048ad35984b3") ("csv-mode" . "d190a479b4f36806b604da527e5d5a50909d3ceb")
("dash.el" . "3df46d7d9fe74f52a661565888e4d31fd760f0df") ("dash.el" . "3df46d7d9fe74f52a661565888e4d31fd760f0df")
("delight" . "70cb8cec9e5eb2c24364e065d85c2ea8f14a587c") ("delight" . "70cb8cec9e5eb2c24364e065d85c2ea8f14a587c")
("dhall-mode" . "c77f1c1e75b6d2725019c5275fc102ae98d25628") ("dhall-mode" . "c77f1c1e75b6d2725019c5275fc102ae98d25628")
("dired-du" . "e5a2aa64849aae14fd6d1973919ec7e13ed76dd0") ("dired-du" . "e5a2aa64849aae14fd6d1973919ec7e13ed76dd0")
("dired-hacks" . "1382acb219c5e3b179662bcacd9c57463802718a") ("dired-hacks" . "da34f8843987ab7c7868fbc1ae5bd0816f68ad88")
("dockerfile-mode" . "52c6c00da1d31c0b6c29c74335b3af63ed6bf06c") ("dockerfile-mode" . "52c6c00da1d31c0b6c29c74335b3af63ed6bf06c")
("ebib" . "56c2d15d9eb796108b3105e17904c0e730f6247b") ("ebib" . "abe6ed461b334673001b930f7e30752aa8aff526")
("el-get" . "17db7640d3ba0c15954a18ff1ea612831436935e") ("el-get" . "bc4299031e634b514eceb472b6b02432c2bb86ba")
("elpy" . "ae7919d94659eb26d4146d4c3422c5f4c3610837") ("elpy" . "ae7919d94659eb26d4146d4c3422c5f4c3610837")
("emacs-async" . "d27b65fd453586b2fa87f8124a65da0d4fdb268e") ("emacs-async" . "d27b65fd453586b2fa87f8124a65da0d4fdb268e")
("emacs-buttercup" . "07a52c99695845a0089e828d43da154c0ba0c178") ("emacs-buttercup" . "07a52c99695845a0089e828d43da154c0ba0c178")
@ -43,9 +43,9 @@
("emacs-reformatter" . "f454b179ab7d39dc8783b9f2a046cab353b272f5") ("emacs-reformatter" . "f454b179ab7d39dc8783b9f2a046cab353b272f5")
("emacs-web-server" . "22ce66ea43e0eadb9ec1d691a35d9695fc29cee6") ("emacs-web-server" . "22ce66ea43e0eadb9ec1d691a35d9695fc29cee6")
("emacs-which-key" . "8093644032854b1cdf3245ce4e3c7b6673f741bf") ("emacs-which-key" . "8093644032854b1cdf3245ce4e3c7b6673f741bf")
("emacsmirror-mirror" . "03db6f73d94f4cc820ac3f6db878cceb01508f9c") ("emacsmirror-mirror" . "ac1425dc729d89bd6208ced50d821a8538717f5d")
("epl" . "78ab7a85c08222cd15582a298a364774e3282ce6") ("epl" . "78ab7a85c08222cd15582a298a364774e3282ce6")
("evil" . "e981c2d0a7c40e33d3de46306c13c469f845c290") ("evil" . "880613823a572d9294001b63468d8c39face5acf")
("evil-ReplaceWithRegister" . "91cc7bf21a94703c441cc9212214075b226b7f67") ("evil-ReplaceWithRegister" . "91cc7bf21a94703c441cc9212214075b226b7f67")
("evil-collection" . "85743099972bfcc4d7788db70dfe33e864eba090") ("evil-collection" . "85743099972bfcc4d7788db70dfe33e864eba090")
("evil-commentary" . "2dab6ac34d1617971768ad219d73af48f7473fec") ("evil-commentary" . "2dab6ac34d1617971768ad219d73af48f7473fec")
@ -53,16 +53,17 @@
("evil-surround" . "f273821f575ace519066fb106ee45a5b8577475f") ("evil-surround" . "f273821f575ace519066fb106ee45a5b8577475f")
("f.el" . "af7d37c619010b576fd22b50c62c71ff33093f3c") ("f.el" . "af7d37c619010b576fd22b50c62c71ff33093f3c")
("fill-column-indicator" . "c35f9de072c241699b57bcb46da84bed5af29cfe") ("fill-column-indicator" . "c35f9de072c241699b57bcb46da84bed5af29cfe")
("flycheck" . "15f0759602f9a31aff134c44d001ab058fbe747c") ("flycheck" . "9db727590b8f038b91cd1360ead1706f50043d2a")
("flycheck-clang-analyzer" . "646d9f3a80046ab231a07526778695d5decad92d") ("flycheck-clang-analyzer" . "646d9f3a80046ab231a07526778695d5decad92d")
("flycheck-haskell" . "50425a8b96fea84ea15940a4a07b184e43bb8e7a")
("flycheck-package" . "3a6aaed29ff61418c48c0251e1432c30748ae739") ("flycheck-package" . "3a6aaed29ff61418c48c0251e1432c30748ae739")
("flyspell-correct" . "7d7b6b01188bd28e20a13736ac9f36c3367bd16e") ("flyspell-correct" . "7d7b6b01188bd28e20a13736ac9f36c3367bd16e")
("gnu-elpa-mirror" . "3350028f721bec8076b332a7d50ae8fa488834a6") ("gnu-elpa-mirror" . "3350028f721bec8076b332a7d50ae8fa488834a6")
("goto-chg" . "278cd3e6d5107693aa2bb33189ca503f22f227d0") ("goto-chg" . "278cd3e6d5107693aa2bb33189ca503f22f227d0")
("graphviz-dot-mode" . "71beaf8bc23d9a139928c9b378e4be9d4fd0a683") ("graphviz-dot-mode" . "19d08c6d2af26bbdf479eb068150ee16b06bbeec")
("haskell-mode" . "a34ccdc54be15043ff0d253c3c20087524255491") ("haskell-mode" . "a34ccdc54be15043ff0d253c3c20087524255491")
("helm-bibtex" . "8ebf50d5bd368082d0b7ab79d26a52f372cdef98") ("helm-bibtex" . "8ebf50d5bd368082d0b7ab79d26a52f372cdef98")
("ht.el" . "e83fdb8bc0a3cc8cd2687a947e2610b20b68b7d3") ("ht.el" . "d90969eec9263ee818cbfbe29bf6596a0657ab11")
("hydra" . "317e1de33086637579a7aeb60f77ed0405bf359b") ("hydra" . "317e1de33086637579a7aeb60f77ed0405bf359b")
("iedit" . "27c61866b1b9b8d77629ac702e5f48e67dfe0d3b") ("iedit" . "27c61866b1b9b8d77629ac702e5f48e67dfe0d3b")
("impatient-mode" . "479a2412596ff1dbdddeb7bdbba45482ce5b230c") ("impatient-mode" . "479a2412596ff1dbdddeb7bdbba45482ce5b230c")
@ -79,9 +80,9 @@
("lua-mode" . "ad639c62e38a110d8d822c4f914af3e20b40ccc4") ("lua-mode" . "ad639c62e38a110d8d822c4f914af3e20b40ccc4")
("magit" . "b908c79b44f5c282eec44f19fc1d9967f041dd5c") ("magit" . "b908c79b44f5c282eec44f19fc1d9967f041dd5c")
("map" . "a0e501aede34f183a8baa5d3d41610a3ffa1728e") ("map" . "a0e501aede34f183a8baa5d3d41610a3ffa1728e")
("markdown-mode" . "0f7eae811308f92b8681b5411f7a5035d1fcd5a7") ("markdown-mode" . "c765b73b370f0fcaaa3cee28b2be69652e2d2c39")
("math-symbol-lists" . "ac3eb053d3b576fcdd192b0ac6ad5090ea3a7079") ("math-symbol-lists" . "ac3eb053d3b576fcdd192b0ac6ad5090ea3a7079")
("melpa" . "33ccef52aa0d6df974c1128ab2ba8febb9187877") ("melpa" . "f40f30810167b6851d17f7d400d2bd527871b29d")
("no-littering" . "8b07314d2f0594ff22bf798d9a5f5bf44b4dd4cd") ("no-littering" . "8b07314d2f0594ff22bf798d9a5f5bf44b4dd4cd")
("nongnu-elpa" . "85c7a060c6174bf544f0ff8fe2480aaa1f70ed46") ("nongnu-elpa" . "85c7a060c6174bf544f0ff8fe2480aaa1f70ed46")
("org-bullets" . "767f55feb58b840a5a04eabfc3fbbf0d257c4792") ("org-bullets" . "767f55feb58b840a5a04eabfc3fbbf0d257c4792")
@ -100,7 +101,7 @@
("password-store" . "26d2dae04bb76a87be6960861c10432820cd5d55") ("password-store" . "26d2dae04bb76a87be6960861c10432820cd5d55")
("pcre2el" . "38c6f80c787da547287db96b495e5b695ca0b4b8") ("pcre2el" . "38c6f80c787da547287db96b495e5b695ca0b4b8")
("pdf-tools" . "bc2ba117e8c3196ff9adf0da4fa1e63a8da3d7c8") ("pdf-tools" . "bc2ba117e8c3196ff9adf0da4fa1e63a8da3d7c8")
("php-mode" . "cf9481ccb7fbd50847e5a8c1da37f68771c2532e") ("php-mode" . "fb11df8268b7099766264cd53836ef159746adbd")
("pkg-info" . "76ba7415480687d05a4353b27fea2ae02b8d9d61") ("pkg-info" . "76ba7415480687d05a4353b27fea2ae02b8d9d61")
("pkgbuild-mode" . "9525be8ecbd3a0d0bc7cc27e6d0f403e111aa067") ("pkgbuild-mode" . "9525be8ecbd3a0d0bc7cc27e6d0f403e111aa067")
("poly-R" . "e4a39caaf48e1c2e5afab3865644267b10610537") ("poly-R" . "e4a39caaf48e1c2e5afab3865644267b10610537")