Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Error explanations #10

Open
aboeglin opened this issue Nov 2, 2020 · 0 comments
Open

Error explanations #10

aboeglin opened this issue Nov 2, 2020 · 0 comments
Labels
📘 proposal An idea for a thing

Comments

@aboeglin
Copy link
Contributor

aboeglin commented Nov 2, 2020

Error explanation definition

Function calls

Also, after the last paragraph we should indicate how to add a typing to the signature.

Type error in function call at line 3:
fn(2, "3", "3")
           ^^^
The 3rd argument of the function "fn" has type
	String
But it was expected to be
	Num
To help you out, in this context the function fn has type:
    Num -> a -> Num -> Bool

If the function is polymorphic it is possible that the error comes from the application of other arguments.
Otherwise you might want to add a typing to the signature to improve documentation and make error messages
more precise !
@brekk brekk added 📘 proposal An idea for a thing and removed 🔥 feature labels Dec 9, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
📘 proposal An idea for a thing
Projects
None yet
Development

No branches or pull requests

2 participants