hlint
hlint copied to clipboard
Hint "Functor law" is unaware of pipeline direction
getContents <&> myLexer <&> pExp >>= \case
...
This triggers linter warning:
Applying this refactoring would create a pipeline where the flow in the middle is reversed:
getContents <&> pExp . myLexer >>= \case
The pipeline in question here is: read -> lex -> parse -> case.
Yeah, I imagine most people don't want this hint. I think it should be removed.
See also #1606.
The hint has been disabled in https://github.com/ndmitchell/hlint/pull/1659.