feat: add convenience coercion from String to FilePath
This commit is contained in:
parent
619873c842
commit
e4995ce8ba
1 changed files with 3 additions and 0 deletions
|
|
@ -114,6 +114,9 @@ end FilePath
|
|||
def mkFilePath (parts : List String) : FilePath :=
|
||||
⟨String.intercalate FilePath.pathSeparator.toString parts⟩
|
||||
|
||||
instance : Coe String FilePath where
|
||||
coe := FilePath.mk
|
||||
|
||||
abbrev SearchPath := List FilePath
|
||||
|
||||
namespace SearchPath
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue