No slash command · from haskell-tasuke
Prefer Text over String for text data, and use ByteString for binary or non-Unicode data. Use when writing or reviewing Haskell code that handles strings, text, or byte data.
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.
Stringは[Char]のエイリアスであり、
文字列を表現するために使われますが、
非常に非効率的です。
さらにshowで表示したときに日本語を含むマルチバイト文字列がエスケープされます。
昔からある型のため仕方なく使われていますが、
なるべくTextを使ってください。
TextはUnicode文字列を効率的に扱える型です。
基本的にはText.LazyではなくStrictなTextを優先して使ってください。
ByteStringとの使い分けは、
Unicodeで正しく表現できる文字列の場合はTextを使い、
バイナリデータやエンコードが不明なデータ、
非Unicodeでやり取りされるネットワーク上の文字列データなどはByteStringを使います。
Stringは古くから使われているためライブラリに蔓延しているだけです。
ライブラリが関係するときだけ使い、
そのデータを長く使う場合はTextに変換するべきです。
詳しく知りたい場合は、 Haskellの文字列型: 分類と特徴 - Qiita を参照してください。
What SKILL.md sets; muted values are Claude Code's defaults
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./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.Other plugins' skills for the same job
npx claudepluginhub ncaq/konoka --plugin haskell-tasuke