Restrict parentAbs return to Dir
This commit is contained in:
parent
cb5545f2fe
commit
c0e93d2167
@ -1,5 +1,5 @@
|
||||
name: path
|
||||
version: 0.0.1
|
||||
version: 0.1.0
|
||||
synopsis: Path
|
||||
description: Path
|
||||
license: BSD3
|
||||
|
@ -240,7 +240,7 @@ isParentOf p l =
|
||||
--
|
||||
-- @parentAbs (parentAbs \"\/\") = \"\/\"@
|
||||
--
|
||||
parentAbs :: Path Abs t -> Path Abs t
|
||||
parentAbs :: Path Abs t -> Path Abs Dir
|
||||
parentAbs (Path fp) =
|
||||
Path (normalizeDir (FilePath.takeDirectory (FilePath.dropTrailingPathSeparator fp)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user