Lens (Grade A) logo

Lens (Grade A)Security-tested data-ai skill for Claude AI. Grade A. Use the lens library, generating accessors with makeFieldsId for NoFieldSelectors records, export accessors together with their type classes, and

(0)
Daniel NikulshynReviewed by Daniel Nikulshyn·Updated July 2026

Overview

This skill uses the lens library to generate accessors for records defined without field selectors. It exports accessors together with their type classes, and encourages the use of lens or OverloadedRecordDot over pattern matching. This skill is particularly useful when writing or reviewing Haskell code that uses lens, records, or field access. It helps to avoid shadowing warnings and duplicate type class definitions, and promotes the use of lens or OverloadedRecordDot for accessing record fields.

Key features

  • makeFieldsId function for generating accessors
  • Export of accessors with their type classes
  • Encourages lens or OverloadedRecordDot over pattern matching
  • Handling of NoFieldSelectors records

Pricing

Model
Free
Category
Skills
Rating
No reviews yet

Use cases

Haskell Record Field Access

Use Lens (Grade A) to generate accessors for record fields in Haskell, ensuring safe and efficient data structure interactions.

Code Review and Optimization

Apply Lens (Grade A) to review and optimize existing Haskell code for better record field access practices.

Pros & Cons

Pros

  • Promotes best practices for record field access in Haskell
  • Reduces shadowing warnings by encouraging lens or OverloadedRecordDot usage
  • Facilitates safe and efficient data structure interactions

Cons

  • May require adjustments to existing codebases for compatibility
  • Steeper learning curve for those unfamiliar with lens or Haskell

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Q&A

Is there a learning curve for new users?

The skill promotes best practices but requires familiarity with the lens library and Template Haskell; users unfamiliar with these may experience a steeper learning curve compared to traditional record access.

Asked by Kalinda Reddy · Nov 27, 2025

Will I need to adjust my existing Haskell code to use this skill?

If your code already uses lens or OverloadedRecordDot, integration is minimal. However, if you rely on pattern matching or custom field prefixes, you may need to refactor those parts to avoid shadowing warnings and to align with the skill’s conventions.

Asked by Linda Petersen · Sep 19, 2025

Does the skill support records that use the NoFieldSelectors extension?

Yes, it is specifically designed for NoFieldSelectors records, allowing makeFieldsId to generate accessors that match the field names exactly without needing prefixes or underscores.

Asked by Hosanna Marte · Sep 18, 2025

What is the main purpose of the Lens skill for Haskell developers?

The Lens skill automates the generation of field accessors for records using the lens library’s makeFieldsId, exporting accessors with their type classes and encouraging use of lens or OverloadedRecordDot instead of pattern matching, which reduces shadowing warnings and duplicate type class definitions.

Asked by Grace Okafor · Sep 14, 2025

Ask a question

Skills alternatives

Using Git Worktrees (Grade A) logo
Using Git Worktrees (Grade A)Skills

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

(0)
Free
Ga4 Bigquery Schema (Grade A) logo
Ga4 Bigquery Schema (Grade A)Skills

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

(0)
Free
Meta Capi (Grade A) logo
Meta Capi (Grade A)Skills

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

(0)
Free
Callees (Grade A) logo
Callees (Grade A)Skills

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

(0)
Free
Test Module Name (Grade A) logo
Test Module Name (Grade A)Skills

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

(0)
Free
Board Of Directors (Grade A) logo
Board Of Directors (Grade A)Skills

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

(0)
Free
Advpl Mvc Avancado (Grade A) logo
Advpl Mvc Avancado (Grade A)Skills

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)

(0)
Free
D
Docs Writer (Grade A)Skills

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

(0)
Free