Skip to content

Commit

Permalink
Merge pull request #126 from zetashift/use-new-directive
Browse files Browse the repository at this point in the history
undefined
  • Loading branch information
TonioGela authored Nov 13, 2023
2 parents 30d1918 + 22bf3a4 commit fdfc3ce
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This example was written by [Koroeskohr] and taken from the [Virtuslab Blog](htt
@:choice(scala-3)

```scala mdoc:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import cats.effect.*
import io.circe.Decoder
Expand Down Expand Up @@ -47,7 +47,7 @@ object Main extends IOApp.Simple:
@:choice(scala-2)

```scala mdoc:reset:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import cats.effect._
import io.circe.Decoder
Expand Down Expand Up @@ -108,7 +108,7 @@ $ echo -e "foo\nbar" | ./mkString --prefix "[" -d "," --suffix "]"

@:choice(scala-3)
```scala mdoc:reset:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import cats.effect.*
import cats.syntax.all.*
Expand Down Expand Up @@ -136,7 +136,7 @@ object Main extends CommandIOApp("mkString", "Concatenates strings from stdin"):
@:choice(scala-2)

```scala mdoc:reset:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import cats.effect._
import cats.syntax.all._
Expand Down Expand Up @@ -183,7 +183,7 @@ id,First Name,Age,flight number,destination

@:choice(scala-3)
```scala mdoc:reset:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import cats.effect.*
import fs2.text
Expand Down Expand Up @@ -254,7 +254,7 @@ object CSVPrinter extends IOApp.Simple:

@:choice(scala-2)
```scala mdoc:reset:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import cats.effect._
import fs2.text
Expand Down Expand Up @@ -358,7 +358,7 @@ perft 6 227689589
@:choice(scala-3)

```scala mdoc:reset:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import cats.effect.{IO, IOApp}
import fs2.{Stream, text}
Expand Down Expand Up @@ -388,7 +388,7 @@ object PerftConverter extends IOApp.Simple:

@:choice(scala-2)
```scala mdoc:reset:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import cats.effect.{IO, IOApp}
import fs2.{Stream, text}
Expand Down Expand Up @@ -464,7 +464,7 @@ As an example, let's imagine we have a `Book` class we would like to write to a

@:choice(scala-3)
```scala mdoc:reset:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import fs2.data.csv.*
import fs2.data.csv.generic.semiauto.*
Expand Down Expand Up @@ -501,7 +501,7 @@ object WriteBooksToCsv extends IOApp.Simple:
@:choice(scala-2)

```scala mdoc:reset:silent
//> using lib "org.typelevel::toolkit::@VERSION@"
//> using toolkit typelevel::@VERSION@

import fs2.data.csv._
import fs2.data.csv.generic.semiauto._
Expand Down

0 comments on commit fdfc3ce

Please sign in to comment.