Learn How To Resolve To Parse Error On Input Where Instantly.

Asked By 0 points N/A Posted on -
qa-featured

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?

SHARE
Answered By 0 points N/A #299216

Learn How To Resolve To Parse Error On Input Where Instantly.

qa-featured

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.

Image result for parse error on input where instantly.

Related Questions