Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ThisBuild / tlSonatypeUseLegacyHost := true
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("17"))
ThisBuild / githubWorkflowSbtCommand := "./sbt"

val Scala213 = "2.13.12"
val Scala213 = "2.13.18"

ThisBuild / crossScalaVersions := Seq("2.12.18", "3.3.1", Scala213)
ThisBuild / scalaVersion := Scala213
Expand All @@ -33,11 +33,17 @@ lazy val core = project.in(file("core"))
lazy val site = project.in(file("site"))
.enablePlugins(TypelevelSitePlugin)
.dependsOn(core)
.settings(
laikaTheme := tlSiteHelium.value.site
.topNavigationBar(
homeLink = laika.helium.config.IconLink.internal(laika.ast.Path.Root / "index.md", laika.helium.config.HeliumIcon.home)
)
.build
)


val prometheusV = "1.2.1"
val prometheusV = "1.4.3"
val catsV = "2.9.0"
val catsEffectV = "3.4.8"
val catsEffectV = "3.6.3"
val shapelessV = "2.3.9"

val munitCatsEffectV = "1.0.7"
Expand Down
8 changes: 6 additions & 2 deletions docs/docs/05-Counter.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ labelledExample.unsafeRunSync()
An Example of a Counter backed algebra.

```scala mdoc
sealed trait Foo; case object Bar extends Foo; case object Baz extends Foo;
sealed trait Foo
case object Bar extends Foo
case object Baz extends Foo

def fooLabel(f: Foo) = {
f match {
Expand All @@ -83,7 +85,9 @@ def fooLabel(f: Foo) = {
trait FooAlg[F[_]]{
def bar: F[Unit]
def baz: F[Unit]
}; object FooAlg {
}

object FooAlg {
def impl[F[_]](c: Counter.UnlabelledCounter[F, Foo]) = new FooAlg[F]{
def bar: F[Unit] = c.label(Bar).inc
def baz: F[Unit] = c.label(Baz).inc
Expand Down