
Unsafe (Grade A)Security-tested data-ai skill for Claude AI. Grade A. Forbid unsafe Haskell functions such as unsafePerformIO, unsafeCoerce, and other unsafe-prefixed functions. Use when writing or reviewing Haskell
Overview
Key features
- Detects and forbids unsafe-prefixed functions
- Provides guidance on safer alternatives
- Supports FFI bindings and global mutable variables with NOINLINE
Pricing
- Model
- Free
- Category
- Skills
- Rating
- No reviews yet
Use cases
Haskell Code Review
Use this skill to review Haskell code and ensure it does not use unsafe-prefixed functions.
Writing Safe Haskell Code
Use this skill to write safe Haskell code by avoiding unsafe-prefixed functions and following best practices.
Pros & Cons
Pros
- Prevents use of functions that compromise language guarantees
- Encourages safer coding practices
- Helps prevent unpredictable behavior and crashes
Cons
- May limit performance optimizations in some cases
- Requires explicit justification for safe API design
Reviews
Sign in to leave a review.
No reviews yet. Be the first!
Q&A
What alternatives does the skill suggest for unsafe functions?
It recommends safer equivalents like using the safe versions of library functions (e.g., indexMaybe instead of unsafeIndex), using Data.Coerce.coerce instead of unsafeCoerce, and designing APIs that avoid unsafePerformIO by encapsulating side‑effects internally.
Asked by Rina Desai · Dec 29, 2025
Can I still use unsafe functions for FFI bindings or global mutable variables?
Yes, the skill allows unsafe functions in limited cases such as FFI bindings or when combined with NOINLINE for global mutable variables, but they must be confined to internal modules and exposed only through a safe pure API with explicit justification comments.
Asked by Hiroshi Tanaka · Dec 26, 2025
What specific Haskell functions does the Unsafe skill block?
It forbids any function whose name starts with the unsafe prefix, including unsafePerformIO, unsafeDupablePerformIO, unsafeInterleaveIO, unsafeFixIO, unsafeCoerce, and library functions like unsafeIndex or unsafeRead that skip safety checks.
Asked by Cristina Moreno · Nov 21, 2025
Ask a question
Skills alternatives

Security-tested data-ai skill for Claude AI. Grade A. Use when starting feature work that needs isolation from current workspace or before executing implementation plans - creates isolated git worktre

Security-tested data-ai skill for Claude AI. Grade A. GA4 BigQuery Export Schema Reference — complete field reference, nested structures, query patterns, and performance tips

Security-tested data-ai skill for Claude AI. Grade A. Meta Conversions API (CAPI) Setup Reference — architecture, event types, customer information hashing, deduplication, implementation examples, AEM

Security-tested development skill for Claude AI. Grade A. Lista o que uma funcao/metodo chama (call graph direto)

Security-tested data-ai skill for Claude AI. Grade A. Name Haskell test modules after the module under test with a Spec suffix in the same namespace. Use when writing or reviewing Haskell test module

Security-tested data-ai skill for Claude AI. Grade A. Simulate a 5-member expert board deliberation for major decisions. Use when evaluating plans, architecture choices, feature designs, or any decisi

Security-tested development skill for Claude AI. Grade A. MVC avançado via PE (Pontos de Entrada) — adicionar grids customizadas em telas MVC padrão (CNTA300/MATA070/MATA440/MATA460/FINA040 via *STRU)
Security-tested devops skill for Claude AI. Grade A. **WORKFLOW SKILL** — Maintains repository documentation accuracy and freshness across the docs site, agent files, and changelog. WHEN: "update docs
Trending now

Accurate Homework Help with Full Explanations

Document intelligence API that parses, splits, OCRs, and extracts structured data from complex PDFs, slides, and spreadsheets.

Open multimodal 12B model handling interleaved images and text with a 128K context window.

Sponsored answers, paid per click.
