Skip to content
Back to skills

Cabal Command

ASecurity

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

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

Security analysis

A100/100

Scanned May 27, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Cabal Command?

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

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

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: cabal-command
description: Use 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.
user-invocable: false
---

# cabalコマンド

## 最適化の無効化

開発時のビルド確認やテストの実行時には、
`--disable-optimization`オプションを付与して最適化を無効化します。

Haskellは結構ビルドに時間がかかる言語なので、
最適化時の挙動を確認するわけでも、
リリースするわけでもないときは、
最適化を無効化してビルド時間を短縮してください。

## ビルド

ビルドは以下のコマンドを実行します。

```console
cabal build --disable-optimization --enable-tests
```

`build`サブコマンドの実行時にはテストは実行されずにビルドだけ行われます。
テストを行う時にフラグが変わって再ビルドが行われると面倒なので、
基本的には`--enable-tests`も付与してビルドしてください。

## テスト

テストは以下のコマンドを実行します。

```console
cabal test --disable-optimization --enable-tests
```

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.

Comments

Loading comments…

Newsletter

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