could not find implicit value for parameter AG: java.nio.channels.AsynchronousChannelGroup. What should I do?
raiseErrornow need an implicit
RaiseThrowable[F]instance and it’s not immediately obvious to me how best to provide that
encoding.bas64line 97 there’s a call
Pull.raiseError(new Throwable(s"Invalid base 64 encoding at index $idx", e))that is now giving an error
Error:(97, 30) Cannot find an implicit value for RaiseThrowable[F]: an instance is available for any F which has an ApplicativeError[F, Throwable] instance or for F = Fallible. If getting this error for a non-specific F, try manually supplying the type parameter (e.g., Stream.raiseError[IO](t) instead of Stream.raiseError(t)). If getting this error when working with pure streams, use F = Fallible. Pull.raiseError(new Throwable(s"Invalid base 64 encoding at index $idx", e))
ApplicativeErroron the function, but that cascades back up the call chain.
base64to be a class and move the
Fparameter to the class level, with an
ApplicativeErrorbound on it
RaiseThrowablefrom the Pull.raiseError. That way, it will be looked up when you will use this in place where you have Sync[F] available, or MonadError/ApplicativeError instance. so essentially. I think
def decodeRaw[F[_] : RaiseThrowable](alphabet:Base64Alphabet)is all what you need to do