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