Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jmcarthurv0.3.0MITIn 1 marketplace
Lets Claude read Haskell code with type hovers, definitions and references, and check whether the project compiles, with errors and warnings reported on request. Needs haskell-language-server and a ghcid build from a fork, not the upstream release.
Trending plugins
7-day copy clicks
Language servers for diagnostics and code navigation.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; changes what Claude reads (system prompt, context, reminders).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
haskell, language-server, lsp, ghc, ghcid, type-checking, compiler-errors
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Haskell support for Claude Code. Claude reads code through
haskell-language-server (types on hover, definitions, references, symbols), and
calls a ghcid tool when it wants to know whether the code compiles. ghcid
reloads the project in the background as files change. The tool returns its
latest errors and warnings, waiting for a reload in progress, so an answer
always covers the last edit. Errors are not pushed after every edit: work in
progress is usually incomplete, and Claude asks when it is ready.
claude plugin marketplace add jmcarthur/claude-plugins
claude plugin install haskell@jmcarthur
Then run /reload-plugins in each open session. The
top-level README covers updating.
The plugin needs two programs on the PATH:
haskell-language-server-wrapper, with a build for your GHC, for example from
ghcup install hls.
A ghcid with the diagnostics request. Until it is released upstream, install the fork:
git clone https://github.com/jmcarthur/ghcid
cd ghcid
cabal install --overwrite-policy=always
To keep another ghcid on the PATH, set GHCID to the fork's executable
instead (see Settings).
Open a Haskell project: a folder with a *.cabal, cabal.project,
stack.yaml or .ghcid file. The session may also start elsewhere, such as
in another clone of the project: each file is served by its own project.
Work as usual. When Claude first reads or edits a Haskell file, the plugin starts ghcid for that project in the background.
Claude calls ghcid when it wants the state of the build, and gets a report
such as:
1 error, 1 warning (12 modules)
src/Shapes/Area.hs:21:23: error: [GHC-83865]
• Couldn't match type '[Char]' with 'Double'
...
or All good (12 modules).
cabal.project or stack.yaml file, else the nearest with a *.cabal or
.ghcid file. A package inside a cabal project so belongs to the project, as
cabal sees it. The language servers and ghcid both go by this root.haskell-lsp, which runs one
haskell-language-server per project root, from the first time a file of that
project is opened, and sends each file's requests there; workspace symbols
come from every running one. A server idle for 10 minutes stops, and starts
again, with the project's open files, when one of them is next asked about.
When haskell-language-server cannot load a file's project, a request about
that file gets the load error rather than an empty answer. The plugin sets the
server's diagnostics option to false, so that Claude Code does not push
the server's errors into the conversation after each edit.ghcid tool. It takes an optional path, a file or folder in the
project, and defaults to the session's folder. The report lists errors first,
then warnings, and is cut at about 8000 characters with a count of what was
left out. When the warnings do not all fit in full, each gets one line: its
place, GHC's code and flag, and the first line of its text. When the project
fails to load (a cabal error, say), the report is ghcid's output, which starts
with the command it ran.haskell-ghcid command starts a small
supervisor in the background that runs
ghcid --server --server-socket SOCKET, with --reload on each top-level
folder that holds Haskell sources. Without those, an edit to a module that is
not loaded, because a module it imports failed, would not start a reload.
Several sessions in one project share its ghcid.haskell-ghcid repl,
which loads every local component of the project in one GHCi:
cabal repl --enable-multi-repl with each library, executable, and enabled
test suite and benchmark of every local package as a target. It finds them in
cabal's plan (dist-newstyle/cache/plan.json, after
cabal build --dry-run all when a cabal file is newer than the plan), and
works again from the plan whenever ghcid restarts for a change to a cabal
file. It leaves out a component with a build-tool-depends on an executable
of the project, which cabal repl would have to build first, and says so in
ghcid's output. With cabal-install before 3.12 or GHC before 9.4, which cannot
load several components in one GHCi, it runs plain cabal repl. A .ghcidBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub jmcarthur/claude-plugins --plugin haskellPlugins from other owners that cover similar ground