Skip to content
Back to skills

Bracket

ASecurity

Use 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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added May 27, 2026
data-ai

Security analysis

A100/100

Scanned November 28, 2026

npx -y skills add ncaq/konoka --skill bracket --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bracket?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bracket
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ncaq-bracket/badge)](https://www.skillsdirectory.com/skills/ncaq-bracket)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bracket
description: Use 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.
user-invocable: false
---

# bracketによるリソース管理

リソースの獲得と解放は、`bracket`で書ける場合は`bracket`で書いてください。
`bracket`なら、途中で例外が発生しても解放が確実に実行されます。
獲得と解放を`do`ブロックの中にばらばらに並べる書き方は避けます。

ライブラリには、`bracket`を特定のリソース向けに特化させたwith形式の関数がしばしばあります。
例えば以下のような関数です。
そのような関数がある場合は、`bracket`を直接使うよりもそちらを優先します。

```haskell
withAsync :: MonadUnliftIO m => m a -> (Async a -> m b) -> m b
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data-ai →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.