path-utils 0.1.0.0 → 0.1.1.0
raw patch · 3 files changed
+10/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Path.Utils: toFilePathText :: Path b t -> Text
Files
- ChangeLog.md +4/−0
- path-utils.cabal +1/−1
- src/Path/Utils.hs +5/−0
ChangeLog.md view
@@ -1,5 +1,9 @@ # Changelog for path-utils +## (v0.1.1.0)++* Add `toFilePathText`.+ ## (v0.1.0.0) * Add handful of path utility functions.
path-utils.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: path-utils-version: 0.1.0.0+version: 0.1.1.0 synopsis: Handful of simple utility functions for the path library. description: Handful of simple utility functiosn for the path library. category: Filesystem
src/Path/Utils.hs view
@@ -10,6 +10,7 @@ (</$>) , changeDir , splitPath+, toFilePathText ) where import Control.Monad.Catch@@ -29,3 +30,7 @@ -- | Split a relative path into text sections. splitPath :: Path Rel t -> [Text] splitPath = fmap T.pack . splitOn "/" . toFilePath++-- | Convert a `Path` to `Text`.+toFilePathText :: Path b t -> Text+toFilePathText = T.pack . toFilePath