Skip to content

Instantly share code, notes, and snippets.

@zainab-ali
Created March 16, 2024 17:57
Show Gist options
  • Save zainab-ali/80489d0a7dbe805a521dd3724c207670 to your computer and use it in GitHub Desktop.
Save zainab-ali/80489d0a7dbe805a521dd3724c207670 to your computer and use it in GitHub Desktop.
scala-cli script to test that aquascapes are generated properly
//> using scala "3.4.0"
//> using lib "com.github.zainab-ali::aquascape:0.1.0"
import fs2.*
import cats.effect.*
import aquascape.*
object BasicScape extends AquascapeApp.Simple {
def stream(using Scape[IO]) = {
Stream(1, 2, 3)
.stage("Source")
.take(2)
.stage("take(2)")
.compile
.drain
.compileStage("compile.drain")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment