+2 votes
in Programming Languages by (71.8k 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

+2 votes
by (71.8k points)
selected by
 
Best answer

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


...