I hereby claim:
- I am daenyth on github.
- I am daenyth (https://keybase.io/daenyth) on keybase.
- I have a public key ASCSw0W8Kr-JKKaGIAxIIOqY3h1MuLZzNqx2epHUbiLD4Qo
To claim this, I am signing this object:
| a | |
| ajaja | |
| ajowan | |
| aka | |
| akala | |
| akali | |
| akan | |
| akasa | |
| ake | |
| akeki |
| package com.myproject.prelude | |
| import cats.syntax.{AllSyntaxBinCompat => CatsSyntax} | |
| import cats.effect.syntax.{AllSyntax => CESyntax} | |
| import cats.effect.instances.{AllInstances => CEInstances} | |
| /** Custom prelude for importing with -Yimport | |
| * | |
| * This means we never need to import cats syntax or stream explicitly | |
| */ |
| import cats.effect.Sync | |
| import cats.syntax.all._ | |
| import cats.effect.std.Dispatcher | |
| import fs2.kafka.vulcan.{AvroSettings, avroDeserializer, avroSerializer} | |
| import fs2.kafka.{Deserializer, Headers, Serializer} | |
| import org.apache.kafka.common.serialization.{Serde, Serdes} | |
| import vulcan.Codec | |
| // Credit to Fede Fernández for the original CE2 version | |
| // Note: this isn't under an open source license; it's for educational purposes only |
I hereby claim:
To claim this, I am signing this object:
"Monad" is a word that describes a set of behaviors
In scala, we use the Monad[Foo] typeclass from cats to define instances of this behavior.
The essence of its behavior is the ability to describe a series of computations, where one computation depends on the result of the computation that came before it.
For example, Monad[Option] shows that the Option[A] data type can be used to describe computations of A which may result in no value.
| twitter.com##div[aria-label="Timeline: Trending now"] | |
| twitter.com##aside[aria-label="Who to follow"] | |
| twitter.com##div[data-testid="sidebarColumn"] |
| version = "2.7.1" | |
| align = some | |
| align.arrowEnumeratorGenerator = true | |
| align.openParenCallSite = true | |
| align.tokens = [caseArrow] | |
| binPack.parentConstructors = true | |
| comments.wrap = standalone |
| import cats.effect.Async | |
| import doobie.util.transactor.Transactor | |
| import scala.concurrent.ExecutionContext | |
| trait DoobieSlickCompat { | |
| /** Create a Doobie Transactor backed by the same Jdbc DataSource as the live slick Database */ | |
| def transactorFromSlick[F[_]: Async]( | |
| slickDb: slick.jdbc.JdbcBackend#Database, |
There's a lot of libraries with overlapping support. This tries to index the ones I've seen.
I only care about / list the ones that support cats-effect/fs2 in some way or another.
I'll list some project status:
| /** Convenience imports for doobie, to make it easier to remember | |
| * | |
| * @example {{{ | |
| * import DoobieImplicits.all._ | |
| * // is equal to all of: | |
| * import doobie.postgres.implicits._ | |
| * import doobie.implicits._ | |
| * import doobie.implicits.legacy.instant._ | |
| * import doobie.implicits.legacy.localdate._ | |
| * import io.chrisdavenport.fuuid.doobie.implicits._ |