+2 votes
in Programming Languages by (14.2k points)

How to fix parse error on input `=' I am getting when I try to run a very small Haskell program using ghci?

1 Answer

0 votes
by (14.2k points)

" 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.