No slash command · from haskell-tasuke
himari is ncaq's rio-like custom Haskell Prelude. Import it with a single `import Himari`, never `import Himari.Prelude` or other submodules directly. Use when writing or reviewing Haskell code in a project that depends on the himari package.
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.
himariは、 ncaqが作成した、 rio の思想を受け継ぎつつ改良したカスタムPreludeライブラリです。
himariに依存するプロジェクトでは、
NoImplicitPreludeが有効になっており、
標準のPreludeの代わりにhimariを使います。
import Himari の1行だけhimariを使うモジュールでは、 原則として以下の1行だけをimportします。
import Himari
Himariモジュールが以下を全て再exportするエントリポイントだからです。
Himari.CharHimari.EnvHimari.Env.SimpleHimari.LoggerHimari.Preludeimport Himari.Prelude を直接書かないHimari.Preludeなどのサブモジュールを直接importするのは間違いです。
-- 間違い: サブモジュールを直接importしている
import Himari.Prelude
これをやるとHimari.CharやHimari.EnvやHimari.Loggerなどが漏れてしまい、
本来使えるはずのシンボルが見つからなくなります。
Himari.PreludeはHimariから再exportされるための内部モジュールであり、
利用側が直接importするものではありません。
同様にHimari.SafePreludeやHimari.Prelude.Typeなども基本は直接importしません。
全てimport Himariで揃います。
例外としてはSafe言語拡張を使うモジュールでHimari.SafePreludeのみをimportするケースがあります。
またhidingしたけど一部だけrenameしてシンボルを利用したいこともあるかもしれませんが、
これはqualified importの方を使うので稀でしょう。
import Himariで以下が利用可能になります。
個別importは不要です。
newtype Himari env a = Himari { unHimari :: ReaderT env IO a }runHimari :: (MonadIO m) => env -> Himari env a -> m aByteStringHashMapMapNonEmptySeqSetTextVectorUnliftIO系、例えば以下:
UnliftIO.AsyncUnliftIO.DirectoryUnliftIO.ExceptionlogInfoなどData.Aeson系とDeriving.Aesonそのままimportしたら名前がコンフリクトしやすい、 個別のモジュールに属する関数が必要になった場合は、 qualified importが必要になります。 その時のエイリアス規約の一部(himariのhlintルール由来)は以下の通りです。
Data.ByteString → qualified as BData.Text → qualified as TData.Map.Strict → qualified as MapData.List → qualified as Lhimari利用時も以下のhaskell-tasukeスキルの方針が当てはまります。
MonadIOやMonadUnliftIOを優先するmakeFieldsIdでレコードのLensを生成しHasLogActionなどを提供するTextを優先し、バイナリはByteStringを使う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.