Skip to content

Commit

Permalink
Adapt for SpecificPath being a capability
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Nov 14, 2023
1 parent 7cb6777 commit b9d7630
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/working.scala
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ object WorkingDirectory:

@capability
trait WorkingDirectory(val directory: Maybe[Text]):
def path[PathType: SpecificPath]: Maybe[PathType] = directory.mm(SpecificPath(_))
def path[PathType](using specificPath: SpecificPath[PathType]): Maybe[PathType^{specificPath}] =
directory.mm(SpecificPath(_))

object HomeDirectory:
given default(using Quickstart): HomeDirectory = HomeDirectory(System.getProperty("user.home").nn.tt)
Expand Down

0 comments on commit b9d7630

Please sign in to comment.