Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does t0,t1,t2 and a0 mean in Haskell?

Tags:

I have been coding in Haskell for couple of weeks now and I keep on seeing errors with t0,t1,t2 and a0. I'm wondering, do they have any in particular meaning or they are just variables? I am asking because I would like to understand better the errors that the compiler spits at me.

like image 383
Paul Kar. Avatar asked Mar 09 '14 18:03

Paul Kar.


1 Answers

No, they do not have any particular meaning. They're just variables denoting arbitrary type, as you have noticed. The numbering of these variables (t0, t1, t2 etc.) is related to typechecking process internals and also does not mean anything in particular, as far as I know.

like image 167
Vladimir Matveev Avatar answered Oct 27 '22 00:10

Vladimir Matveev