Restrict parentAbs return to Dir
This commit is contained in:
@@ -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)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user