Learn How To Resolve To Parse Error On Input Where Instantly.
Asked By
0 points
N/A
Posted on - 06/12/2017
Hi all,
I am using the GHC compiler, and it gives the parse error on input where clause.
Can someone help me with this problem?
Hi all,
I am using the GHC compiler, and it gives the parse error on input where clause.
Can someone help me with this problem?
No matter where the indentation is, where clause should not be present at this position.
The where clause is fine in bindings that feellike a = b where c. According to the language report, where clause is a part of RHS, and RHS is as shown below:
and GDRHS is just the guarded right-hand side as
GDRHS → guards = EXP[GDRHS]
Hence, where clause can be of use when using “=,”orwhile making a binding.