-
Notifications
You must be signed in to change notification settings - Fork 0
feat(claude): claude-codeのpluginを作成 #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "name": "himari", | ||
| "description": "HimariカスタムPreludeを使用したHaskellプロジェクト開発支援プラグイン", | ||
| "version": "0.1.0", | ||
| "author": { | ||
| "name": "ncaq", | ||
| "url": "https://github.com/ncaq" | ||
| }, | ||
| "repository": "https://github.com/ncaq/himari", | ||
| "license": "Apache-2.0" | ||
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,107 @@ | ||||||||||||||||||||
| --- | ||||||||||||||||||||
| name: himari | ||||||||||||||||||||
| description: | | ||||||||||||||||||||
| HimariカスタムPreludeを使用したHaskellプロジェクトの開発支援。 | ||||||||||||||||||||
| Himariモジュールのimport方法、lensアクセサ生成(makeFieldsId)、 | ||||||||||||||||||||
| convertibleによる型変換、MonadUnliftIOの活用、 | ||||||||||||||||||||
| エラーハンドリングのベストプラクティスをガイドします。 | ||||||||||||||||||||
| Haskell、カスタムPrelude、lens、rio代替を扱う際に適用されます。 | ||||||||||||||||||||
| --- | ||||||||||||||||||||
|
|
||||||||||||||||||||
| # Himari Haskell Development Guide | ||||||||||||||||||||
|
|
||||||||||||||||||||
| HimariはrioライブラリのシンプルなカスタムPrelude代替です。 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ## Preludeのimport | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ```haskell | ||||||||||||||||||||
| import Himari | ||||||||||||||||||||
| ``` | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ## 言語設定 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| パッケージレベルで以下を設定済み: | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ```cabal | ||||||||||||||||||||
| default-language: GHC2024 | ||||||||||||||||||||
| default-extensions: | ||||||||||||||||||||
| NoImplicitPrelude | ||||||||||||||||||||
| ``` | ||||||||||||||||||||
|
|
||||||||||||||||||||
| 追加の言語拡張はモジュールレベルで個別に設定。 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ## 禁止事項 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ### 危険な言語拡張 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - `AllowAmbiguousTypes` | ||||||||||||||||||||
| - `ImplicitParams` | ||||||||||||||||||||
| - `IncoherentInstances` | ||||||||||||||||||||
| - `OverlappingInstances` | ||||||||||||||||||||
| - `UndecidableInstances` | ||||||||||||||||||||
| - `UndecidableSuperClasses` | ||||||||||||||||||||
|
|
||||||||||||||||||||
| ### 危険な関数 | ||||||||||||||||||||
|
|
||||||||||||||||||||
| - `error` - 純粋関数空間での例外は禁止 | ||||||||||||||||||||
| - `fromJust` - 部分関数 | ||||||||||||||||||||
| - `read` - 部分関数、代わりに`readMaybe`を使用 | ||||||||||||||||||||
| - `unsafePerformIO`系全般 | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
Comment on lines
+48
to
+50
|
||||||||||||||||||||
| - `read` - 部分関数、代わりに`readMaybe`を使用 | |
| - `unsafePerformIO`系全般 | |
| - `read` - 部分関数、代わりに`readMaybe`を使用 | |
| - `head` - 部分関数 | |
| - `tail` - 部分関数 | |
| - `(!!)` - 部分関数 | |
| - `unsafePerformIO`系全般 | |
| ※ 他の禁止されている部分関数や詳細な理由については `coding-style.md` を参照してください。 |
Copilot
AI
Jan 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Template HaskellのLANGUAGEプラグマが記載されていません。makeFieldsIdを使用する際はTemplateHaskell拡張が必要です。コード例に以下を追加してください:
{-# LANGUAGE TemplateHaskell #-}これはcoding-style.mdの185-202行目の例では正しく記載されています。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
危険な言語拡張のリストが不完全です。以下の言語拡張も禁止事項に含める必要があります:
ImpredicativeTypesLiberalTypeSynonymsRebindableSyntaxこれらの拡張は
coding-style.mdと内部ガイドラインには記載されていますが、こちらには含まれていません。一貫性のため、全ての禁止されている言語拡張をリストアップするか、または詳細はcoding-style.mdを参照するように記載してください。