diff --git a/elisp/eshell-starship.el b/elisp/eshell-starship.el index e3dc5cd..eedc055 100644 --- a/elisp/eshell-starship.el +++ b/elisp/eshell-starship.el @@ -637,6 +637,20 @@ For example, a revert. If there is no current operation, return nil." 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 :extensions '("java" "class" "gradle" "jar" "clj" "cljc") :files '("pom.xml" "build.gradle.kts" "build.sbt" ".java-version" "deps.edn"