If I have a function
foo :: Foo -> Aff Effects (Either String Bar)
and a value
baz :: Either String Foo
then traversing will give:
qux :: Aff Effects (Either String (Either String Bar))
qux = traverse foo baz
I can do
join <$> qux :: Aff Effects (Either String Bar)
to get to what I want, but I’m curious if there’s a more idiomatic way of handling this type of situation?