Skip to content

Conversation

michalrus
Copy link
Contributor

(A couple of FIXMEs as a nice break from bugs :P)

(A couple of FIXMEs as a nice break from bugs :P)

def doOrMeh(condition: Boolean, action: DbResultT[_])(implicit ec: EC): DbResultT[Unit] =
if (condition) action.meh else DbResultT.unit
def when[F[_]](p: Boolean, s: F[Unit])(implicit F: Applicative[F]): F[Unit] =
Copy link
Contributor Author

Choose a reason for hiding this comment

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

def appendForUpdate[A, B <: slick.dbio.NoStream](sql: SqlAction[A, B, Effect.Read]): DBIO[A] =
sql.overrideStatements(sql.statements.map(_ + " for update"))

def lift[A](value: A): DBIO[A] = DBIO.successful(value)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not needed, we have pure from cats.

def apply[A](a: A)(implicit F: Monad[F]): FoxyT[F, A] = // TODO: remove me? @michalrus
pure(a)

def pure[A](a: A)(implicit F: Monad[F]): FoxyT[F, A] =
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not needed, we have pure from cats.

}

trait FoxyTFunctions[F[_]] {
def apply[A](a: A)(implicit F: Monad[F]): FoxyT[F, A] = // TODO: remove me? @michalrus
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Dead code.

@narma
Copy link
Contributor

narma commented Jun 27, 2017

FMT!

@michalrus
Copy link
Contributor Author

Yikes!
But it wouldn’t compile anyway. :p

for {
failures * <~ IlluminateAlgorithm.validateAttributes(fs.form.attributes, fs.shadow.attributes)
_ * <~ failIfFailures(failures)
_ * <~ failIfFailures[DBIO](failures) // TODO: why no inference? @michalrus
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@kjanosz sad :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants