" parse error on input `=' " is very common error a new Haskell programmer gets when he/she tries to run the program. This reason for this error is using tab instead of spacebar to put spaces in the code.
Solution is - delete the spaces provided using the tab bar and use spacebar to provide spaces or to align the codes.