This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0277]: the trait bound `axum::error_handling::HandleError<tower_http::decompression::RequestDecompression<axum::routing::Route>, [closure@src/main.rs:18:46: 18:59], _>: tower::Service<axum::http::Request<_>>` is not satisfied | |
--> src/main.rs:17:13 | |
| | |
16 | .layer( | |
| ----- required by a bound introduced by this call | |
17 | / ServiceBuilder::new() | |
18 | | .layer(HandleErrorLayer::new(|_: BoxError| async move { | |
19 | | (StatusCode::INTERNAL_SERVER_ERROR, "Unhandled server error") | |
20 | | })) | |
21 | | .layer(RequestDecompressionLayer::new()), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app "cli-tutorial" | |
packages { pf: "examples/cli/platform" } | |
imports [ pf.Stdout, pf.Task.{ await } ] | |
provides [ main ] to pf | |
measurements = [199, 200, 208, 210, 200, 207, 240, 269, 260, 263 ] | |
increases = List.walk measurements { counts: 0, previousElement: None } \state, elem -> | |
when state.previousElement is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app "cli-tutorial" | |
packages { pf: "../examples/cli/platform" } | |
imports [ pf.Stdout, pf.Task.{ await } ] | |
provides [ main ] to pf | |
Option a : [ Some a, None ]a | |
Aggr : { counts: Nat, previousElement: Option Nat} | |
initialState: Aggr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sttp.client3.SttpClientException$ConnectException: Exception when sending request: GET <server name> | |
at sttp.client3.SttpClientException$.defaultExceptionToSttpClientException(SttpClientException.scala:34) | |
at sttp.client3.asynchttpclient.AsyncHttpClientBackend.adjustExceptions$$anonfun$1(AsyncHttpClientBackend.scala:227) | |
at sttp.client3.SttpClientException$$anon$1.applyOrElse(SttpClientException.scala:57) | |
at sttp.client3.SttpClientException$$anon$1.applyOrElse(SttpClientException.scala:56) | |
at cats.ApplicativeError.recoverWith$$anonfun$1(ApplicativeError.scala:106) | |
at cats.effect.IOFiber.handleErrorWithK(IOFiber.scala:1306) | |
at cats.effect.IOFiber.failed(IOFiber.scala:1067) | |
at cats.effect.IOFiber.uncancelableFailureK(IOFiber.scala:1334) | |
at cats.effect.IOFiber.failed(IOFiber.scala:1069) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sbt.ForkMain$ForkError: sbt.ForkMain$ForkError: java.lang.StackOverflowError: null | |
at java.lang.Class.getDeclaredFields(Class.java:1915) | |
at org.scalactic.source.ObjectMeta$$anon$1.privFields$lzycompute(ObjectMeta.scala:36) | |
at org.scalactic.source.ObjectMeta$$anon$1.privFields(ObjectMeta.scala:36) | |
at org.scalactic.source.ObjectMeta$$anon$1.$anonfun$fieldNames$1(ObjectMeta.scala:41) | |
at org.scalactic.source.ObjectMeta$$anon$1.$anonfun$fieldNames$1$adapted(ObjectMeta.scala:39) | |
at scala.collection.TraversableLike.$anonfun$filterImpl$1(TraversableLike.scala:256) | |
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36) | |
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33) | |
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation CreateCart { | |
createCart(draft: { | |
currency: "USD" | |
origin: Customer | |
lineItems: [ | |
{ | |
productId: "<product-id>" | |
variantId: 1 | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when updating monix from `3.0.0-RC1` to `3.0.0-RC2-840c090`, there were warnings but also some errors like: | |
code: | |
``` | |
trait ContextAware { | |
def runInContext[A](context: Context)(task: Task[A])(implicit scheduler: Scheduler): CancelableFuture[A] = | |
(Context.write(context) >> task).executeWithOptions(_.enableLocalContextPropagation).runAsync | |
} | |
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Algebra[F[_], A] = F[A] => A | |
def cata[F[_], R, A](algebra: Algebra[F, A], out: R ⇒ F[R])(r: R)(implicit F: Functor[F]): A = | |
algebra(F.map(cata(algebra, out))(out(r))) | |
type Coalgebra[F[_], A] = A => F[A] | |
def ana[F[_], R, A](coalgebra: Coalgebra[F, A], in: F[R] ⇒ R)(a: A)(implicit F: Functor[F]): R = | |
in(F.map(ana(coalgebra, in))(coalgebra(a))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.UUID | |
import scala.collection.JavaConverters._ | |
import scala.concurrent.duration._ | |
class DataSpec extends BaseSpec { | |
private def recoverFrom(action: ⇒ Unit): Unit = { | |
val index = s"index-${UUID.randomUUID().toString}" | |
eventually { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.UUID | |
import scala.collection.JavaConverters._ | |
import scala.concurrent.duration._ | |
class DataSpec extends BaseSpec { | |
private def recoverFrom(action: ⇒ Unit): Unit = { | |
val index = s"index-${UUID.randomUUID().toString}" | |
eventually { |
NewerOlder