News for hackers. Stuff that matters.
Re:Teenage Haskell by Kiro on Saturday June 28, 2014 @03:53AM (#7957722)
(&) :: Picture -> Picture -> Picture

Can someone explain this line?

Re:Teenage Haskell by m0g on Saturday June 28, 2014 @03:55AM (#7957727)
It's a type declaration saying that the & operator takes two Picture as arguments and returns a picture.

So, if "a" and "b" are pictures "a & b" is typechecking.

To be more precise, if you account for currying, it says that the & operator takes a Picture and returns a Picture -> Picture function. This function can then be applied to a Picture to yield a Picture. It's as I explained above but with an intermediate step.