Packages

package fs2

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Package Members

  1. package interop
  2. package mtl

Type Members

  1. final class LogSelector[F[_]] extends AnyVal

    It helps to add logging capability to components allowing them to use a LogWriter[F] if in scope or defaulting, when F[_] is an Applicative, to noOpLog[F] if no LogWriter is provided.

    It helps to add logging capability to components allowing them to use a LogWriter[F] if in scope or defaulting, when F[_] is an Applicative, to noOpLog[F] if no LogWriter is provided.

    Example:

    def create[F[_]: LogSelector](a: String): ALoggingClient[F] = new ALoggingClient[F] { def do = LogSelector[F].writer.info("something") }

    def useTheClient[F[_]](address: String): F[Unit] = { implicit val logger: LogWriter[F] = consoleLog[F] create[F](address) } will log using logger

    def useTheClient[F[_]](address: String): F[Unit] = create[F](address) will not log

Value Members

  1. object Fs2LogWriter
  2. object LogSelector extends LogSelectorInstances0
  3. object SyncLogWriter

Ungrouped