Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hint "Functor law" is unaware of pipeline direction #1625

Open
andreasabel opened this issue Dec 9, 2024 · 1 comment
Open

Hint "Functor law" is unaware of pipeline direction #1625

andreasabel opened this issue Dec 9, 2024 · 1 comment

Comments

@andreasabel
Copy link

getContents <&> myLexer <&> pExp >>= \case
  ...

This triggers linter warning:
Screenshot 2024-12-09 at 15 51 36

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.

@zliu41
Copy link
Collaborator

zliu41 commented Dec 13, 2024

Yeah, I imagine most people don't want this hint. I think it should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants