Registry / networking / fs2-io-3

fs2-io-3

JSON →
library3.13.0javamavenunverified

The I/O module of FS2, a functional streaming library for Scala 3, providing support for file and network operations.

<dependency> <groupId>co.fs2</groupId> <artifactId>fs2-io_3</artifactId> <version>3.13.0</version> </dependency>
INSTALL
IMPORT
SIG · FS2-IO-3
F
fs2-io-3
networkingjavav3.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Files
fs2.io.file.Files

Read a file line by line using FS2 streams.

import fs2.{Stream, text} import fs2.io.file.{Files, Path} import cats.effect.{IO, IOApp} object MyApp extends IOApp.Simple { def run: IO[Unit] = Files[IO] .readAll(Path("input.txt")) .through(text.utf8.decode) .through(text.lines) .evalMap(line => IO.println(line)) .compile .drain }
Debug
Known issues
breakingThis artifact is for Scala 3 only; use fs2-io (without _3) for Scala 2.13 or 2.12.
fix
Use the artifact co.fs2:fs2-io for Scala 2.x.
affects: *
Upgrade
Version history
3.13.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
fs2-io-3 — mvn dependency:get fs2-io-3 · libregistry