Skip to content

Commit 5ef810d

Browse files
authored
Merge pull request #5595 from unisonweb/fix-path-show
2 parents 9ac7f3b + 9a1effa commit 5ef810d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

unison-cli/src/Unison/CommandLine/InputPatterns.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ import Unison.Util.Pretty.MegaParsec (prettyPrintParseError)
248248

249249
formatStructuredArgument :: Maybe Int -> StructuredArgument -> Text
250250
formatStructuredArgument schLength = \case
251-
SA.AbsolutePath path -> into @Text $ show path
251+
SA.AbsolutePath path -> Path.toText path
252252
SA.Name name -> Name.toText name
253253
SA.HashQualified hqName -> HQ.toText hqName
254254
SA.Project projectName -> into @Text projectName
@@ -288,7 +288,7 @@ formatStructuredArgument schLength = \case
288288
<> if Text.null pathArgStr || Text.isSuffixOf "." pathArgStr
289289
then s
290290
else "." <> s
291-
pathArgStr = Text.pack $ show pathArg
291+
pathArgStr = Path.toText pathArg
292292

293293
-- | Converts an arbitrary argument to a `String`.
294294
--

0 commit comments

Comments
 (0)