Defaulting for []
#877
Labels
command-line-repl
Related to Cryptol's text-based UI
docs
LaTeX, markdown, literate haskell, or in-REPL documentation
UX
Issues related to the user experience (e.g., improved error messages)
Milestone
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 thea
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.The text was updated successfully, but these errors were encountered: