Skip to content

Commit

Permalink
Replace mm with let
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Dec 6, 2023
1 parent cad8cb7 commit 6e251b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/working.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ object WorkingDirectory:
@capability
trait WorkingDirectory(val directory: Maybe[Text]):
def path[PathType](using specificPath: SpecificPath[PathType]): Maybe[PathType^{specificPath}] =
directory.mm(SpecificPath(_))
directory.let(SpecificPath(_))

object HomeDirectory:
given default(using Quickstart): HomeDirectory = HomeDirectory(System.getProperty("user.home").nn.tt)
Expand All @@ -37,7 +37,7 @@ case class HomeDirectory(text: Text):
def path[PathType: SpecificPath]: PathType = SpecificPath(text)

package workingDirectories:
given default: WorkingDirectory = WorkingDirectory(Maybe(System.getProperty("user.dir")).mm(_.tt))
given default: WorkingDirectory = WorkingDirectory(Maybe(System.getProperty("user.dir")).let(_.tt))

package homeDirectories:
given default: HomeDirectory = HomeDirectory(System.getProperty("user.home").nn.tt)
Expand Down

0 comments on commit 6e251b3

Please sign in to comment.