Compare commits

..

No commits in common. "e1e91664a5fc58da5ce2a80a904e5c5f1cbccc45" and "e2ac704185912e842f0d805d48427ea00b9dab59" have entirely different histories.

2 changed files with 21 additions and 26 deletions

View File

@ -1083,16 +1083,10 @@ I have also found this to be much simpler and conflicting with other packages su
;; local completions in 'where' and 'let' clauses
'((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
:straight t
:hook ((haskell-mode . origami-mode)
(haskell-mode . company-mode)
(haskell-mode . flycheck-haskell-setup)
(haskell-mode . haskell-indentation-mode)
;; this enables better integration with the running GHCi process
;; NOTE this is NOT the same is haskell-interactive-mode which is used
@ -1121,13 +1115,15 @@ I have also found this to be much simpler and conflicting with other packages su
;; unnecessary to see on the modeline
(delight 'subword-mode nil "subword"))
#+END_SRC
**** hlint
This is an additional syntax checker and requires the =hlint= binary.
#+BEGIN_SRC emacs-lisp
(nd/require-bin "hlint" :aur "hlint-bin")
(nd/when-bin "hlint"
(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
**** helper functions
Other helper functions that make haskell even more fun.

View File

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