File tree 1 file changed +10
-3
lines changed
modules/doobie/src/main/scala/io/chrisdavenport/fuuid/doobie
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,21 @@ import io.chrisdavenport.fuuid.FUUID
8
8
9
9
object implicits {
10
10
11
- @ deprecated(message = " Please use FuuidMeta instead." , since = " 0.5.1" )
11
+ @ deprecated(
12
+ message = " You should not demand a Meta implicitly. Please use FuuidGet or FuuidPut instead." ,
13
+ since = " 0.5.1"
14
+ )
12
15
def FuuidType (implicit U : Meta [UUID ]): Meta [FUUID ] =
13
16
FuuidMeta (Get [FUUID ], Put [FUUID ])
14
17
15
18
implicit def FuuidGet (implicit G : Get [UUID ]): Get [FUUID ] = G .map(FUUID .fromUUID)
16
19
17
20
implicit def FuuidPut (implicit P : Put [UUID ]): Put [FUUID ] = P .contramap(FUUID .Unsafe .toUUID)
18
21
19
- implicit def FuuidMeta (implicit A : Get [FUUID ], B : Put [FUUID ]): Meta [FUUID ] = Meta [FUUID ]
20
-
22
+ @ deprecated(
23
+ message = " You should not demand a Meta implicitly. Please use FuuidGet or FuuidPut instead." ,
24
+ since = " 0.6.1"
25
+ )
26
+ def FuuidMeta (implicit A : Get [FUUID ], B : Put [FUUID ]): Meta [FUUID ] =
27
+ new Meta (A , B )
21
28
}
You can’t perform that action at this time.
0 commit comments