2

In Type Synonyms we read

Just like we can partially apply functions to get new functions, we can partially apply type parameters and get new type constructors from them.

How can a parameter be applied to something else? I think it should actually be

Just like we can partially apply functions to get new functions, we can partially apply type constructor (giving them less type parameters then they expect) and get new type constructors from them.

Do you agree?

Enlico
  • 23,259
  • 6
  • 48
  • 102

1 Answers1

6

The author seems to use apply to mean both "the function to the parameters" as well as "the parameters to the function".

Further down we read

we'll partially apply Either by feeding it only one parameter

Where the meaning is the former, as well as

Let's apply the type parameter to Maybe and see what the kind of that type is.

ghci> :k Maybe Int  

where the meaning is the latter.

peer
  • 4,171
  • 8
  • 42
  • 73
  • From my non-native English perspective the former and the latter are both correct as much as `Int -> Char` and `Char -> Int` are the same type, hence the question. It seems that my non-English-ness fooled me, thus making the question opinion-based. – Enlico May 22 '20 at 23:10