garyb / purescript-indexed-monad

MIT License
21 stars 11 forks source link

Add <*: and :*> operators #5

Closed rightfold closed 7 years ago

rightfold commented 7 years ago

This way foo :>>= const bar :>>= const baz can be written as foo :*> bar :*> baz. See also https://github.com/owickstrom/hyper/pull/17

rightfold commented 7 years ago

Should <*: be :<* instead? It's not just a flipped :*>.

garyb commented 7 years ago

I think it's fine, you could argue that the non-indexed version should be called *< by the same logic :smile: