@@ -29,25 +29,25 @@ import vacuous.*
29
29
import scala .compiletime .*
30
30
31
31
object Path :
32
- given [PathType <: Path ] => PathType is Encodable in Text as encodable = _.text
32
+ given encodable : [PathType <: Path ] => PathType is Encodable in Text = _.text
33
33
34
- given [PlatformType : {Navigable , Radical }] => Decoder [Path on PlatformType ] as decoder =
34
+ given decoder : [PlatformType : {Navigable , Radical }] => Decoder [Path on PlatformType ] =
35
35
Path .parse(_)
36
36
37
- given [PlatformType ] => (Path on PlatformType ) is Showable as showable = _.text
38
- given [PlatformType ] => (Path on PlatformType ) is GenericPath as generic = _.text
39
- given [PlatformType ] => (Path on PlatformType ) is Nominable as nominable = path =>
37
+ given showable : [PlatformType ] => (Path on PlatformType ) is Showable = _.text
38
+ given generic : [PlatformType ] => (Path on PlatformType ) is GenericPath = _.text
39
+ given nominable : [PlatformType ] => (Path on PlatformType ) is Nominable = path =>
40
40
path.textDescent.prim.or(path.textRoot)
41
41
42
- given [PlatformType : {Navigable , Radical }] => Path on PlatformType is SpecificPath as specific =
42
+ given specific : [PlatformType : {Navigable , Radical }] => Path on PlatformType is SpecificPath =
43
43
_.decode[Path on PlatformType ]
44
44
45
- given Path is Communicable as communicable = path =>
45
+ given communicable : Path is Communicable = path =>
46
46
Message (path.textDescent.reverse.join(path.textRoot, path.separator, t " " ))
47
47
48
- given [PlatformType : Navigable ]( using Tactic [PathError ])
48
+ given addable : [PlatformType : Navigable ] => Tactic [PathError ]
49
49
=> (Path on PlatformType ) is Addable by (Relative by PlatformType .Operand ) into
50
- (Path on PlatformType ) as addable =
50
+ (Path on PlatformType ) =
51
51
(left, right) =>
52
52
def recur (descent : List [Text ], ascent : Int ): Path on PlatformType =
53
53
if ascent > 0 then
0 commit comments