You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hindent misformats the end of a long constraint section in default method signatures in type class declarations.
I've had this happen in multiple type class declarations, here's just one example
classHasEnvExprm=>MonadRecordEnvExprmwhereaddEnvExpression::EnvExprm->mHostExprdefault addEnvExpression :: ( MonadTranst
, Monad n
, MonadRecordEnvExpr n
, t n ~ m
, EnvExpr m ~EnvExpr n
) =>-- <- this is outdented too much. This is a parse error for GHCEnvExpr m -> m HostExpr
The text was updated successfully, but these errors were encountered:
JustusAdam
changed the title
Hindent instroduces parse errors in constraints for a default method
Hindent introduces parse errors in constraints for a default method
Sep 24, 2019
While the current master no longer raises a parse error, it fails to align the indent. Below is the current output against the given input.
classHasEnvExprm=>MonadRecordEnvExprmwhereaddEnvExpression::EnvExprm->mHostExprdefault addEnvExpression :: ( MonadTranst
, Monad n
, MonadRecordEnvExpr n
, t n ~ m
, EnvExpr m ~EnvExpr n
) =>EnvExpr m -> m HostExpr
It aligns parameters if the signature is outside of a class declaration.
Hindent misformats the end of a long constraint section in default method signatures in type class declarations.
I've had this happen in multiple type class declarations, here's just one example
The text was updated successfully, but these errors were encountered: