Skip to content

Commit

Permalink
Rename the project to steps :-) (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal authored Sep 12, 2024
2 parents 83bc101 + 1ac3d96 commit 68db266
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ val scala3Version = "3.3.3"
lazy val root = project
.in(file("."))
.settings(
name := "dotty-library",
name := "steps",
organization := "ch.epfl.lamp",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
description = "scala-result";
description = "steps";

inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
package dotty.result
package steps.result

import scala.util.{Try, Success, Failure}

/** Provides extension methods convert Scala API optional value containers into
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** Defines [[Result]], an enum representing either a success value or an error.
*/
package dotty.result
package steps.result

import java.{util => ju}
import scala.util.control.NonFatal
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import dotty.result.Result
import dotty.result.Result.*
import dotty.result.Result.eval.*
import scala.util.Try
import scala.util.boundary

import steps.result.Result
import steps.result.Result.*
import steps.result.Result.eval.*

/** Just something to test. We don't encourage putting Throwables inside results
* everywhere (just throw!!)
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import dotty.result.Result
import dotty.result.Result.*
import dotty.result.Result.eval.*
import steps.result.Result
import steps.result.Result.*
import steps.result.Result.eval.*

/** Tests working with collection. */
class CollectionTest extends munit.FunSuite {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import dotty.result.Result
import dotty.result.Result.*
import dotty.result.Result.eval.*
import scala.util.Try

import steps.result.Result
import steps.result.Result.*
import steps.result.Result.eval.*

class ResultTest extends munit.FunSuite {
import dotty.result.Conversions.Compat.given

import steps.result.Conversions.Compat.given

val ok: Result[Int, String] = Ok(1)
val err: Result[Int, String] = Err("bad")

Expand Down Expand Up @@ -184,7 +187,7 @@ class ResultTest extends munit.FunSuite {
}

test("implicit upcasting") {
import dotty.result.Conversions.Lift.given
import steps.result.Conversions.Lift.given

Result[Int, Nothing]:
val t: Result[Int, String] = 1
Expand Down

0 comments on commit 68db266

Please sign in to comment.