Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip zio module changes #82

Closed
wants to merge 1 commit into from
Closed

wip zio module changes #82

wants to merge 1 commit into from

Conversation

AugustNagro
Copy link
Owner

No description provided.

@@ -41,9 +41,9 @@ addCommandAlias("fmt", "scalafmtAll")
val testcontainersVersion = "0.41.4"
val circeVersion = "0.14.10"

lazy val root = project
lazy val magnumRoot = project
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if the root name isn't necessary for sbt to understand that it's your root module 🤔


import scala.util.control.NoStackTrace

private class Break[E](val value: E) extends NoStackTrace
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
private class Break[E](val value: E) extends NoStackTrace
private final class Break[E](val value: E) extends NoStackTrace

Copy link
Contributor

@guizmaii guizmaii Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, why not use ControlThrowable here?

* repo.findById(id)
* }}}
*/
def connectIO[E: ClassTag, A](q: DbCon ?=> A)(using Trace): IO[E, A] =
Copy link
Contributor

@guizmaii guizmaii Dec 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This ClassTag might become annoying for the user at the use-site.

@AugustNagro AugustNagro closed this Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants