1
My teacher, in a matter of Haskell asked to set tree in the following way:
Being that defining this way gives this error:
And in many corners of the internet, the tree in Haskell they define using Data as the image below:
Then I wonder if the teacher is correct in declaring tree this way, because the way he asked us to define the error in the compiler.