(Replying to the list again)
Hi,Thanks for your reply. I tried your solution but my function becomes like this and it gives an error on the right side :
function (Node a (Node b _ _) (Node c _ _)) = (Node c (Node a _ _) (Node b _ _))
The thing is I don't need to process the subtrees but I still have to return them as an output. I still can't do that. And I read a few chapters in LYAH, it was pretty good, I learned haskell from there. However, I think the answer of this question isn't in LYAH.Thanks..Bahadir