File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ trait TypeMapper[T] { outer =>
6565}
6666
6767object TypeMapper {
68+ def apply [T ](implicit t : TypeMapper [T ]): TypeMapper [T ] = t
6869
6970 /**
7071 * These definitions are workarounds for a bug in the Scala 3 compiler
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ package object scalasql {
3636 type Expr [T ] = core.Expr [T ]
3737
3838 type TypeMapper [T ] = core.TypeMapper [T ]
39+ val TypeMapper = core.TypeMapper
3940
4041 val Config = core.Config
4142 type Config = core.Config
Original file line number Diff line number Diff line change @@ -1452,7 +1452,7 @@ object WorldSqlTests extends TestSuite {
14521452 case class CityId2 (value : Int )
14531453
14541454 object CityId2 {
1455- implicit def tm : TypeMapper [CityId2 ] = implicitly[ TypeMapper [Int ] ].bimap[CityId2 ](
1455+ implicit def tm : TypeMapper [CityId2 ] = TypeMapper [Int ].bimap[CityId2 ](
14561456 city => city.value,
14571457 int => CityId2 (int)
14581458 )
You can’t perform that action at this time.
0 commit comments