-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1e6fc3
commit e062159
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
-- | | ||
-- Module : Streamly.Coreutils.RealPath | ||
-- Copyright : (c) 2022 Composewell Technologies | ||
-- License : BSD-3-Clause | ||
-- Maintainer : [email protected] | ||
-- Stability : experimental | ||
-- Portability : GHC | ||
-- | ||
-- Returns resolved symbolic link target. | ||
|
||
module Streamly.Coreutils.RealPath | ||
(realPath) | ||
where | ||
|
||
import System.Directory (canonicalizePath ) | ||
|
||
-- | Make a path absolute, normalize the path, | ||
-- and remove as many indirections from it as possible. | ||
|
||
realPath :: FilePath -> IO FilePath | ||
realPath = canonicalizePath |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters