Skip to content

Commit

Permalink
Merge pull request #8 from osavaryb/master
Browse files Browse the repository at this point in the history
Have FilePath functions return a String when appropriate
  • Loading branch information
davdar authored Apr 10, 2024
2 parents d1e08fd + f7dba88 commit aaeb568
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/UVMHS/Core/FilePath.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ pnull = ℙ ""
pappend
pappend x y = $ string $ tohsChars (unℙ x) FP.</> tohsChars (unℙ y)

pfilename
pfilename = string FP.takeFileName tohsChars unℙ
pfilename 𝕊
pfilename = string FP.takeFileName tohsChars unℙ

pbasename
pbasename = string FP.takeBaseName tohsChars unℙ
pbasename 𝕊
pbasename = string FP.takeBaseName tohsChars unℙ

pdirectory
pdirectory = string FP.takeDirectory tohsChars unℙ

pextension
pextension = string FP.takeExtension tohsChars unℙ
pextension 𝕊
pextension = string FP.takeExtension tohsChars unℙ

0 comments on commit aaeb568

Please sign in to comment.