davenverse / crossplatformioapp   0.1.0

MIT License GitHub
Scala versions: 3.x 2.13 2.12
Scala.js versions: 1.x
Scala Native versions: 0.4

CrossPlatformIOApp - Cross Platform IOApp Instantiation Maven Central Code of Conduct

Quick Start

To use CrossPlatformIOApp in an existing SBT project with Scala 2.13 or a later version, add the following dependencies to your build.sbt depending on your needs:

libraryDependencies ++= Seq(
  "io.chrisdavenport" %% "crossplatformioapp" % "<version>"

Use is super straightforward, use exactly like IOApp/IOApp.Simple but automatically get working app for scala-native with epollcat.

import cats.effect._
import io.chrisdavenport.crossplatformioapp.CrossPlatformIOApp

object Main extends CrossPlatformIOApp.Simple {
  def run: IO[Unit] = IO.println("Hello world!")