Skip to content

Add appliedTo and chain aliases #129

@NickSeagull

Description

@NickSeagull

Hi 👋

I wanted to request the addition of the following function aliases:

appliedTo = (<*>)

and

chain = (=<<)

The reason behind this, is that I found them much easier to understand for newcomers, and they are much better in my experience with teaching Haskell, as one can resemble fluent APIs from other languages with them:

Just(drop 1)
& appliedTo (Just [1,2,3])
& chain head

vs

(Just [1,2,3] <*> Just (drop 1)) >>= head

I really love relude , I really wish it becomes the standard for preludes out there. For me it is always the prelude of choice, and would love that it had nice little features like these that make the adoption of Haskell much easier 😊

If this is okay for you, I can work on a PR. Where should these aliases go? 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomersnewBring something new into library (add function or type or interface)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions