|
|
|
|
|
by TheCoelacanth
3985 days ago
|
|
Depends what you mean by "not declared". Haskell doesn't require you to provide type signatures, so if you don't put a type signature on a function, you can have parameters that aren't explicitly declared (though they still have an inferred static type, so you could use ghci to see what all the parameters are). If you do put any type signature on the function, then all parameters would have to be included. |
|
If I make a typo when using a type parameter in a function definition, can I accidentally introduce an extra type parameter?