Skip to content

Add Cardano.Base.Typeable with type TypeName a#660

Merged
lehins merged 1 commit into
masterfrom
aniketd/typename
May 21, 2026
Merged

Add Cardano.Base.Typeable with type TypeName a#660
lehins merged 1 commit into
masterfrom
aniketd/typename

Conversation

@aniketd
Copy link
Copy Markdown
Contributor

@aniketd aniketd commented May 20, 2026

Description

Add IsString and Show instances for TypeName a, where a can be any type, so that it is convenient to use show on any type using the TypeName constructor, as well as just use a String when necessary.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated
  • All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages.
    New section is never added with the code changes. (See RELEASING.md)
  • When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
    versioning process.
  • The version bounds in .cabal files for all affected packages are updated.
    If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
  • Self-reviewed the diff

@aniketd aniketd requested a review from lehins May 20, 2026 13:15
Comment thread cardano-base/src/Cardano/Base/Typeable.hs
Comment thread cardano-base/src/Cardano/Base/Typeable.hs
@aniketd aniketd force-pushed the aniketd/typename branch from 9d08e52 to efe33cb Compare May 20, 2026 14:23
Copy link
Copy Markdown
Collaborator

@lehins lehins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. Thank you!

Comment thread cardano-base/src/Cardano/Base/Typeable.hs
@lehins lehins enabled auto-merge May 20, 2026 14:54
Add `IsString` and `Show` instances for `TypeName`, where a can be any type,
so that it is convenient to use show on any type using the `TypeName`
constructor, as well as just use a `String` when necessary.
@lehins lehins force-pushed the aniketd/typename branch from efe33cb to 85ee04d Compare May 21, 2026 06:36
@lehins lehins merged commit 70b1f6f into master May 21, 2026
29 checks passed
@lehins lehins deleted the aniketd/typename branch May 21, 2026 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants