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
flap
should be flipped
#1827
Comments
But in Haskell (or PureScript) you'd almost be using
Footnotes |
Anecdotally the Haskell codebase I work on most has two usages of I'd be open to other suggestions as this has been a recurrent pain point for me with Given that with the type system our |
In retrospect there are (<$) :: f a b. Functor f => a -> f b -> f a
($>) :: f a b. Functor f => f a -> b -> f b Maybe having similar ( Indeed a reliable |
I'd love a Very much agreed on |
I'm having exactly the same issue as @samhh. The current param order is yet to work for me. |
The current type signature of
flap
is:It would be better if it were:
The issue I'm constantly running into with the current shape is that I usually have
a
in a pipeline and want to bring my ownf (a -> b)
i.e. it's stopping me from writing pointfree code:The type system isn't capable of allowing
flip
to handle this.The proposed signature would also match Haskell:
flap
in relude(<@>)
in comonadThe text was updated successfully, but these errors were encountered: