Skip to content

Commit

Permalink
also format some historical code for completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
rmgk committed Nov 11, 2023
1 parent af717cd commit 2cb211c
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,22 @@ object CostAssessment {

given JsonValueCodec[scala.Tuple2[
scala.Long,
scala.Tuple3[java.lang.String, scala.collection.immutable.List[scala.Tuple4[
scala.Long,
scala.Int,
scala.Option[scala.Tuple2[rescala.fullmv.CaseClassTransactionSpanningTreeNode[scala.Tuple2[
rescala.fullmv.mirrors.Host.GUID,
rescala.fullmv.TurnPhase.Type
]], scala.Int]],
scala.Option[scala.Tuple2[
scala.Option[scala.collection.immutable.Map[java.lang.String, scala.collection.immutable.Set[scala.Int]]],
scala.Option[scala.Array[scala.Byte]]
]]
]], scala.Array[scala.Byte]]
scala.Tuple3[
java.lang.String,
scala.collection.immutable.List[scala.Tuple4[
scala.Long,
scala.Int,
scala.Option[scala.Tuple2[rescala.fullmv.CaseClassTransactionSpanningTreeNode[scala.Tuple2[
rescala.fullmv.mirrors.Host.GUID,
rescala.fullmv.TurnPhase.Type
]], scala.Int]],
scala.Option[scala.Tuple2[
scala.Option[scala.collection.immutable.Map[java.lang.String, scala.collection.immutable.Set[scala.Int]]],
scala.Option[scala.Array[scala.Byte]]
]]
]],
scala.Array[scala.Byte]
]
]] = JsonCodecMaker.make(CodecMakerConfig.withAllowRecursiveTypes(true))
implicit val host: this.type = this
def binding(i: Int) = Binding[Signal[Map[String, Set[Int]]]](s"binding-$i")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,19 @@ object Bindings {

given JsonValueCodec[scala.Tuple2[
scala.Long,
scala.Tuple3[java.lang.String, scala.collection.immutable.List[scala.Tuple4[
scala.Long,
scala.Int,
scala.Option[scala.Tuple2[rescala.fullmv.CaseClassTransactionSpanningTreeNode[scala.Tuple2[
rescala.fullmv.mirrors.Host.GUID,
rescala.fullmv.TurnPhase.Type
]], scala.Int]],
scala.Option[scala.Tuple2[scala.Option[scala.Int], scala.Option[scala.Array[scala.Byte]]]]
]], scala.Array[scala.Byte]]
scala.Tuple3[
java.lang.String,
scala.collection.immutable.List[scala.Tuple4[
scala.Long,
scala.Int,
scala.Option[scala.Tuple2[rescala.fullmv.CaseClassTransactionSpanningTreeNode[scala.Tuple2[
rescala.fullmv.mirrors.Host.GUID,
rescala.fullmv.TurnPhase.Type
]], scala.Int]],
scala.Option[scala.Tuple2[scala.Option[scala.Int], scala.Option[scala.Array[scala.Byte]]]]
]],
scala.Array[scala.Byte]
]
]] = JsonCodecMaker.make(CodecMakerConfig.withAllowRecursiveTypes(true))

given JsonValueCodec[Int] = JsonCodecMaker.make
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,22 @@ object CodecHelper {

type FullMvTransport[ActualType] = scala.Tuple2[
scala.Long,
scala.Tuple3[java.lang.String, scala.collection.immutable.List[scala.Tuple4[
scala.Long,
scala.Int,
scala.Option[scala.Tuple2[rescala.fullmv.CaseClassTransactionSpanningTreeNode[scala.Tuple2[
rescala.fullmv.mirrors.Host.GUID,
rescala.fullmv.TurnPhase.Type
]], scala.Int]],
scala.Option[scala.Tuple2[
scala.Option[ActualType],
scala.Option[scala.Array[scala.Byte]]
]]
]], scala.Array[scala.Byte]]
scala.Tuple3[
java.lang.String,
scala.collection.immutable.List[scala.Tuple4[
scala.Long,
scala.Int,
scala.Option[scala.Tuple2[rescala.fullmv.CaseClassTransactionSpanningTreeNode[scala.Tuple2[
rescala.fullmv.mirrors.Host.GUID,
rescala.fullmv.TurnPhase.Type
]], scala.Int]],
scala.Option[scala.Tuple2[
scala.Option[ActualType],
scala.Option[scala.Array[scala.Byte]]
]]
]],
scala.Array[scala.Byte]
]
]

given fullCodec[T: JsonValueCodec]: JsonValueCodec[FullMvTransport[T]] =
Expand Down

0 comments on commit 2cb211c

Please sign in to comment.