Add haskell to elisp/eshell-starship.el

This commit is contained in:
2026-04-25 03:18:38 -07:00
parent 43c4769a51
commit 5bd993a231

View File

@@ -637,6 +637,20 @@ For example, a revert. If there is no current operation, return nil."
emacs-version) emacs-version)
:doc "The current emacs-version.") :doc "The current emacs-version.")
(eshell-starship-defmodule haskell
:extensions '("hs" "cabal" "hs-boot")
:files '("stack.yaml")
:prefix "via "
:icon ""
:color "purple"
:allow-remote nil
:reload-on 'cwd
:action (eshell-starship-find-version-function
("stack" "ghc" "--" "--version")
"version \\([0-9.]+\\)$"
"v" (match-string 1))
:doc "The current GHC version (as reported by Stack).")
(eshell-starship-defmodule java (eshell-starship-defmodule java
:extensions '("java" "class" "gradle" "jar" "clj" "cljc") :extensions '("java" "class" "gradle" "jar" "clj" "cljc")
:files '("pom.xml" "build.gradle.kts" "build.sbt" ".java-version" "deps.edn" :files '("pom.xml" "build.gradle.kts" "build.sbt" ".java-version" "deps.edn"