No slash command · from haskell-tasuke
When testing Either values, compare the value directly with shouldBe instead of checking isLeft, so test failures show the actual value. Use when writing or reviewing Haskell test code that asserts on Either or similar values.
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.
値xをテストするときに、
値xがEitherの値である場合は、
次のように書くのは避けます。
isLeft x `shouldBe` True
このように書くとテストフレームワーク側に、 実際どのような値が入っていたのかの情報が伝わらないため、 テスト失敗時に情報がなくなってしまいます。
Eitherの値がShowとEqのインスタンスである場合は以下のように単純に比較できます。
x `shouldBe` Left "expected error"
Eqのインスタンスでない場合でも、
isLeftの結果をshouldBeに渡すよりは、
実際の中身の振る舞いを検査できる関数が、
テストフレームワーク側に用意されているはずなので、
それを使うべきです。
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ncaq/konoka --plugin haskell-tasukeOther plugins' skills for the same job
19 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.