When the operand of a left operator section is an application with the argument a lambda taking advantage of BlockArguments, an incorrect suggestion to remove the brackets around the application is given. Removal of these brackets would move the operator inside the lambda, resulting in a syntax error.
Example module:
{-# LANGUAGE BlockArguments #-}
module Example where
f = ((const 1 \_ -> ()) +)
When the operand of a left operator section is an application with the argument a lambda taking advantage of
BlockArguments
, an incorrect suggestion to remove the brackets around the application is given. Removal of these brackets would move the operator inside the lambda, resulting in a syntax error.Example module:
Emitted suggestion:
Module after accepting the suggestion (syntax error):