Haskell Merge Sort

This is an implementation of Mergesort using higher order functions,guards,where and recursion. However getting an error from compiler 6:26: parse error on input ‘=’ I can’t see whats wrong? or rather I don’t understand the compiler.