mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-04 21:57:25 +03:00
bugfix: Path.toText rendered an empty path as ".", not ""
This commit is contained in:
parent
3f3860fba3
commit
609c47b0bf
@ -350,10 +350,8 @@ instance Show Path where
|
||||
|
||||
-- | Note: This treats the path as relative.
|
||||
toText :: Path -> Text
|
||||
toText path =
|
||||
case toName path of
|
||||
Nothing -> "."
|
||||
Just name -> Name.toText name
|
||||
toText =
|
||||
maybe Text.empty Name.toText . toName
|
||||
|
||||
unsafeParseText :: Text -> Path
|
||||
unsafeParseText = \case
|
||||
|
Loading…
Reference in New Issue
Block a user