mirror of
https://github.com/unisonweb/unison.git
synced 2024-11-10 20:00:27 +03:00
Name: make "." parse as a relative ".", rather than a bogus empty absolute name
This commit is contained in:
parent
4d72bcc206
commit
5caef015b2
@ -361,7 +361,7 @@ unsafeFromString =
|
||||
|
||||
unsafeFromText :: Text -> Name
|
||||
unsafeFromText = \case
|
||||
"." -> error "empty absolute name"
|
||||
"." -> Name Relative ("." :| [])
|
||||
".." -> Name Absolute ("." :| [])
|
||||
t | Text.any (== '#') t -> error ("not a name: " <> show t)
|
||||
t ->
|
||||
|
Loading…
Reference in New Issue
Block a user