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

[ fix ] Data and Type Constructor tags for :di #3395

Merged
merged 4 commits into from
Oct 5, 2024

Conversation

stefan-hoeck
Copy link
Contributor

Description

The :di command at the REPL confuses data and type constructors. Example:

CaseTree> :di Bool
Prelude.Basics.Bool
Type constructor:
  tag: 100
  arity: 0
  parameter positions: []
  constructors: Prelude.Basics.False, Prelude.Basics.True
Compiled: Data Constructor:
  arity: 0

As can be seen, Bool is listed as a "Data Constructor" in its compiled form. Likewise, True or False will be listed as type constructors. The fix is trivial.

Should this change go in the CHANGELOG?

  • If this is a fix, user-facing change, a compiler change, or a new paper
    implementation, I have updated CHANGELOG_NEXT.md (and potentially also
    CONTRIBUTORS.md).

@gallais gallais merged commit f840d1b into idris-lang:main Oct 5, 2024
22 checks passed
@stefan-hoeck stefan-hoeck deleted the data_vs_type branch October 5, 2024 07:45
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