Cats: Remove `Applicative#traverse` and `Applicative#sequence`

Created on 24 Nov 2017  路  3Comments  路  Source: typelevel/cats

These don't really serve any purpose and just delegate to the functions on Traverse so let's get rid of them.

help wanted low-hanging fruit

Most helpful comment

I think I can make this happen ;) always calling dibs on removing some code

All 3 comments

As a little extra motivation, if you try to call traverse on something like catsStdInstancesForVector with type parameters, the compiler will complain about the middle parameter not having the right kind (because of the collision between Applicative#traverse and Traverse#traverse). You can easily work around this by upcasting the instances, but it's still vaguely annoying.

I think I can make this happen ;) always calling dibs on removing some code

If anyone is missing the Applicative#sequence when use in a composed Applicative like in Applicative[Future].compose[MyValidatedNel].sequence(segments), then an workaround described in
https://gitter.im/typelevel/cats?at=5a564e2f232e79134dedaad5

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SimY4 picture SimY4  路  4Comments

fosskers picture fosskers  路  3Comments

alexandru picture alexandru  路  4Comments

kailuowang picture kailuowang  路  5Comments

kailuowang picture kailuowang  路  3Comments