We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
foldLeft
For some reason, unqualified foldLeft resolved to Array.foldLeft
Array.foldLeft
count : [a] -> Nat count = foldLeft (n _ -> n + 1) 0 -- error expecting to find data.Array
count : [a] -> Nat count = List.foldLeft (n _ -> n + 1) 0 -- ok
The text was updated successfully, but these errors were encountered:
Thanks for reporting @gomain, it is meant to just work.
Sorry, something went wrong.
@aryairani I'm also experiencing, this
unique type SumType = A | B isA : SumType -> Boolean isA = cases A -> true -- don't need to qualify constructor _ -> false
but when
unique type SumType = A | B unique type AlsoSumType = A | B isA : SumType -> Boolean isA = cases A -> true -- don't know constructor named A _ -> false
unique type SumType = A | B unique type AlsoSumType = A | B isA : SumType -> Boolean isA = cases SumType.A -> true -- qualify with type name, ok _ -> false
Not sure what to expect here.
Another case where TDNR fails
unique type Type = { name: Nat } name : Text -> Text name = cases _ -> "bla" >name (Type 2) -- expected Text
No branches or pull requests
For some reason, unqualified
foldLeft
resolved toArray.foldLeft
The text was updated successfully, but these errors were encountered: