unison icon indicating copy to clipboard operation
unison copied to clipboard

Somehow notify the user if their type signature is less general than what could be inferred

Open pchiusano opened this issue 4 years ago • 1 comments

Example is like:

Parse.many : '{Parse e} a -> '{Parse e} [a]

Whose implementation might permit the type:

Parse.many : '{Parse e,g} a -> '{Parse e,g} [a]

pchiusano avatar Aug 03 '21 19:08 pchiusano

Is that a good thing? There are plenty of times where going with a more concrete type signature is reasonable and good practice.

gampleman avatar Aug 10 '21 13:08 gampleman