Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Set to Type #397

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

HeinrichApfelmus
Copy link
Contributor

This pull request introduces the name Type instead of the name Set for all types that are transpiled to Haskell. This change has two motivations:

  • Be more consistent with nomenclature from Haskell, where the canonical name for types is Type.
  • Avoid the name clash with Set from the containers package.

Using Type instead of Set removes a small, yet pervasive stumbling block for people who know Haskell and want to learn Agda2hs. In principle, people can learn the difference, but in this case, I believe that this is learning effort not well-spent.

(In a future change, it may make sense to introduce Prop in addition to Type in order to better distinguish between propositions about Haskell and types in Haskell — while every Haskell type can be transpiled from a Type, the converse is not true. But that discussion is out of scope for this pull request.)

@HeinrichApfelmus HeinrichApfelmus force-pushed the HeinrichApfelmus/set-to-type branch from b40afc5 to 6d0667d Compare February 1, 2025 12:37
@HeinrichApfelmus HeinrichApfelmus force-pushed the HeinrichApfelmus/set-to-type branch from 6d0667d to fecee0b Compare February 1, 2025 12:57
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.

1 participant