No slash command · from haskell-tasuke
Avoid mutable variables like IORef, STRef, and ST in Haskell and prefer immutable records. Use STM variables such as TVar for thread communication. Use when writing or reviewing Haskell code that uses mutable state or concurrency.
Ships in haskell-tasuke. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
一般的なプログラミングにおいても、 mutableな変数はできるだけ避けるべきだとされています。
特にHaskellは純粋関数型言語です。
immutableにレコードを差分更新することを効率よく行えるようになっているので、 mutableな変数が欲しいことは滅多にありません。
mutableな変数を実現する機構は原則禁止です。
例えば以下の機構は避けるべきです。
IORefSTRefSTスレッド間の通信を行いたい場合はミュータブルな変数を使った方がスムーズなことがあります。
例えば以下の型が該当します。
TVarTMVarTChanTQueueTBQueueしかしこれらも低レイヤーな機構なので、 そのまま深く入り組ませずに、 抽象化して使うべきです。
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ncaq/konoka --plugin haskell-tasuke19 skills in this plugin
/bracketUse bracket or with-style functions to guarantee resource cleanup even on exceptions instead of separate do blocks. Use when writing or reviewing Haskell code that acquires and releases resources./bump-cabal-index-stateUpdate Cabal project index-state to the latest timestamp. Use when it needs to bump the cabal index-state./cabal-commandUse cabal with --disable-optimization for development builds and tests, and add --enable-tests to avoid rebuilds. Use when running or suggesting cabal build or test commands in Haskell development./exceptionDo not throw exceptions from pure code with error or throw, give exceptions structured types, and never silently swallow errors in IO. Use when writing or reviewing Haskell error handling, exceptions, or IO code./exportExplicitly enumerate Haskell module exports instead of exporting everything implicitly, and use re-export sparingly. Use when writing or reviewing Haskell module export lists./function-resultDo not discard a function's final value with return (), pure (), or void; adjust the type to return the value and let the caller discard it when unneeded. Use when writing or reviewing Haskell functions that return unit or discard results.