Category[PartialFunction], but I've imported
cats.implicits._and it just doesn't seem to be there. Any reason why?
Seq[ValidatedNel[ValidationError, FrequencyDisplayConfiguration]]and need to convert it to
ValidatedNel[ValidationError, Seq[FrequencyDisplayConfiguration]]. (In my case the given Seq is never empty.)
Throwableyou're out of luck. You could make it work if
E <: Throwableby deriving the
ApplicativeError[F[_], E]using classy prisms.
PartialFunction[E, F[A]]I guess
=> Either[E, A]
ThreadLocalis a no-go if you're on
traitthat defines the api you want for recording this information
WriterT[F, Log, ?]as your
Fwould be fine except then
Ffailures don't get logged
Either[Throwableto catch the
def st: State[S, List[A]] def modo(f: A => B): IndexedState[S, T, List[A]] = Bifunctor[IndexedStateT[Eval, S, ?, ?]].leftMap(st)(traversal.modify(f)) def modo2(f: A => B): IndexedState[S, T, List[A]] = (st: IndexedStateT[Eval, S, S, List[A]]).leftMap(traversal.modify(f))