-
Notifications
You must be signed in to change notification settings - Fork 128
Closed
Labels
UXIssues related to the user experience (e.g., improved error messages)Issues related to the user experience (e.g., improved error messages)command-line-replRelated to Cryptol's text-based UIRelated to Cryptol's text-based UIdocsLaTeX, markdown, literate haskell, or in-REPL documentationLaTeX, markdown, literate haskell, or in-REPL documentation
Milestone
Description
Ticket #875 points out that the new defaulting rules lead to a different behavior when you write [0x10] @@ [].
This has type {a} Integral a => [] [8]. In this case we don't default the a because there is no literal that causes the ambiguity.
I am not sure how useful this example is in real Cryptol code but it does appear in the book.
Since I doubt that this would appear very often in actual code, perhaps we should solve this by being more aggressive in the REPL defaulting rules, and use Integral a as a potential hint for defaulting.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
UXIssues related to the user experience (e.g., improved error messages)Issues related to the user experience (e.g., improved error messages)command-line-replRelated to Cryptol's text-based UIRelated to Cryptol's text-based UIdocsLaTeX, markdown, literate haskell, or in-REPL documentationLaTeX, markdown, literate haskell, or in-REPL documentation