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

Incorrect pretty printing for types #835

Closed
brianhuffman opened this issue Jul 28, 2020 · 0 comments · Fixed by #841
Closed

Incorrect pretty printing for types #835

brianhuffman opened this issue Jul 28, 2020 · 0 comments · Fixed by #841
Assignees

Comments

@brianhuffman
Copy link
Contributor

Here's an example type error message that prints a type constraint with not enough parentheses:

Cryptol> :t (zero : Float 2 3) <$ zero

[error] at <interactive>:1:1--1:27:
  Unsolved constraints:
    • SignedCmp Float 2 3
        arising from
        use of expression (<$)
        at <interactive>:1:1--1:27
[error] at <interactive>:1:2--1:18:
  Unsolved constraints:
    • ValidFloat 2 3
        arising from
        use of partial type function Float
        at <interactive>:1:2--1:18

In particular, the line containing SignedCmp Float 2 3 is missing some parens; it should print as SignedCmp (Float 2 3).

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 a pull request may close this issue.

1 participant