liblawless 0.17.2 → 0.17.3
raw patch · 3 files changed
+86/−6 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
+ Path: (<++>) :: FilePath os ar -> String -> FilePath os ar
+ Path: addExtension :: FilePath os ar -> String -> FilePath os ar
+ Path: combine :: DirPath os ar -> RelPath os fd -> Path os ar fd
+ Path: dirFromFile :: FilePath os ar -> DirPath os ar
+ Path: dirFromFileDir :: FileDirPath os ar -> DirPath os ar
+ Path: dropExtension :: FilePath os ar -> FilePath os ar
+ Path: dropExtensions :: FilePath os ar -> FilePath os ar
+ Path: dropFileName :: FilePath os ar -> DirPath os ar
+ Path: dynamicMakeAbsolute :: System os => AbsDir os -> AbsRelPath os fd -> AbsPath os fd
+ Path: dynamicMakeAbsoluteFromCwd :: System os => AbsRelPath os fd -> IO (AbsPath os fd)
+ Path: equalFilePath :: String -> String -> Bool
+ Path: extSeparator :: Char
+ Path: fileFromDir :: DirPath os ar -> Maybe (FilePath os ar)
+ Path: fileFromFileDir :: FileDirPath os ar -> Maybe (FilePath os ar)
+ Path: fromFileDir :: FileDir fd => FileDirPath os ar -> Maybe (Path os ar fd)
+ Path: genericAddExtension :: FileDir fd => Path os ar fd -> String -> Path os ar fd
+ Path: genericDropExtension :: FileDir fd => Path os ar fd -> Path os ar fd
+ Path: genericDropExtensions :: FileDir fd => Path os ar fd -> Path os ar fd
+ Path: genericMakeAbsolute :: (System os, AbsRel ar) => AbsDir os -> Path os ar fd -> AbsPath os fd
+ Path: genericMakeAbsoluteFromCwd :: (System os, AbsRel ar) => Path os ar fd -> IO (AbsPath os fd)
+ Path: genericSplitExtension :: FileDir fd => Path os ar fd -> (Path os ar fd, String)
+ Path: genericSplitExtensions :: FileDir fd => Path os ar fd -> (Path os ar fd, String)
+ Path: genericTakeExtension :: FileDir fd => Path os ar fd -> String
+ Path: genericTakeExtensions :: FileDir fd => Path os ar fd -> String
+ Path: hasAnExtension :: FilePath os ar -> Bool
+ Path: hasExtension :: String -> FilePath os ar -> Bool
+ Path: isAbsolute :: AbsRel ar => Path os ar fd -> Bool
+ Path: isAbsoluteString :: String -> Bool
+ Path: isExtSeparator :: Char -> Bool
+ Path: isRelative :: AbsRel ar => Path os ar fd -> Bool
+ Path: isRelativeString :: String -> Bool
+ Path: isSearchPathSeparator :: Char -> Bool
+ Path: joinPath :: FileDir fd => [String] -> RelPath os fd
+ Path: makeAbsolute :: System os => AbsDir os -> RelPath os fd -> AbsPath os fd
+ Path: makeAbsoluteFromCwd :: System os => RelPath os fd -> IO (AbsPath os fd)
+ Path: makeRelative :: (System os, FileDir fd) => AbsDir os -> AbsPath os fd -> RelPath os fd
+ Path: makeRelativeMaybe :: (System os, FileDir fd) => AbsDir os -> AbsPath os fd -> Maybe (RelPath os fd)
+ Path: mapFileName :: (String -> String) -> FilePath os ar -> FilePath os ar
+ Path: mapFileNameF :: Functor f => (String -> f String) -> FilePath os ar -> f (FilePath os ar)
+ Path: normalise :: System os => Path os ar fd -> Path os ar fd
+ Path: pathMap :: FileDir fd => (String -> String) -> Path os ar fd -> Path os ar fd
+ Path: replaceBaseName :: FilePath os ar -> String -> FilePath os ar
+ Path: replaceDirectory :: FilePath os ar1 -> DirPath os ar2 -> FilePath os ar2
+ Path: replaceExtension :: FilePath os ar -> String -> FilePath os ar
+ Path: replaceFileName :: FilePath os ar -> String -> FilePath os ar
+ Path: searchPathSeparator :: Char
+ Path: splitDirName :: DirPath os ar -> Maybe (DirPath os ar, RelDir os)
+ Path: splitExtension :: FilePath os ar -> (FilePath os ar, String)
+ Path: splitExtensions :: FilePath os ar -> (FilePath os ar, String)
+ Path: splitFileName :: FilePath os ar -> (DirPath os ar, RelFile os)
+ Path: splitPath :: (AbsRel ar, FileOrDir fd) => Path os ar fd -> (Bool, [RelDir os], Maybe (RelFile os))
+ Path: takeBaseName :: FilePath os ar -> RelFile os
+ Path: takeDirName :: DirPath os ar -> Maybe (RelDir os)
+ Path: takeDirectory :: FilePath os ar -> DirPath os ar
+ Path: takeExtension :: FilePath os ar -> String
+ Path: takeExtensions :: FilePath os ar -> String
+ Path: takeFileName :: FilePath os ar -> RelFile os
+ Path: takeSuperDirectory :: DirPath os ar -> Maybe (DirPath os ar)
+ Path: toFileDir :: FileDir fd => Path os ar fd -> FileDirPath os ar
- Path: parse :: (IsText t, AbsRel ar, FileDir fd) => t -> Either Text (Path ar fd)
+ Path: parse :: (AbsRel ar, FileDir fd) => String -> Either String (Path ar fd)
Files
- ChangeLog +4/−1
- Source/Path.hs +81/−4
- liblawless.cabal +1/−1
ChangeLog view
@@ -1,6 +1,9 @@ 2017-03-06 Evan Cofsky <evan@theunixman.com> - * liblawles.cabal: 0.17.2+ * liblawless.cabal (0.17.3): 0.17.3+ * Source/Path.hs: Export more pathtype functions.++ * liblawles.cabal (0.17.2): 0.17.2 * Source/Path.hs: Export the path operators. * test.sh: Build and run tests. * hackage.sh: Upload tagged package to hackage.
Source/Path.hs view
@@ -15,7 +15,81 @@ P.rootDir, P.currentDir, P.emptyFile,- parse,+ P.splitPath,+ P.dropExtension,+ P.dropExtensions,+ P.dropFileName,+ P.replaceExtension,+ P.replaceBaseName,+ P.replaceDirectory,+ P.replaceFileName,+ P.addExtension,+ P.combine,+ P.dropExtension,+ P.dropExtensions,+ P.dropFileName,+ P.replaceExtension,+ P.replaceBaseName,+ P.replaceDirectory,+ P.replaceFileName,+ P.splitExtension,+ P.splitExtensions,+ P.splitFileName,+ P.splitDirName,+ P.takeBaseName,+ P.takeDirectory,+ P.takeSuperDirectory,+ P.takeExtension,+ P.takeExtensions,+ P.takeFileName,+ P.takeDirName,+ P.mapFileName,+ P.mapFileNameF,++ -- * Auxillary Manipulation Functions+ P.equalFilePath,+ P.joinPath,+ P.normalise,+ P.splitPath,+ P.makeRelative,+ P.makeRelativeMaybe,+ P.makeAbsolute,+ P.makeAbsoluteFromCwd,+ P.dynamicMakeAbsolute,+ P.dynamicMakeAbsoluteFromCwd,+ P.genericMakeAbsolute,+ P.genericMakeAbsoluteFromCwd,+ P.pathMap,+ P.dirFromFile,+ P.fileFromDir,+ P.toFileDir,+ P.fromFileDir,+ P.fileFromFileDir,+ P.dirFromFileDir,++ -- * Path Predicates+ P.isAbsolute,+ P.isRelative,+ P.isAbsoluteString,+ P.isRelativeString,+ P.hasAnExtension,+ P.hasExtension,++ -- * Separators+ P.extSeparator,+ P.searchPathSeparator,+ P.isExtSeparator,+ P.isSearchPathSeparator,++ -- * Generic Manipulation Functions+ P.genericAddExtension,+ P.genericDropExtension,+ P.genericDropExtensions,+ P.genericSplitExtension,+ P.genericSplitExtensions,+ P.genericTakeExtension,+ P.genericTakeExtensions,+ P.parse, toText, AbsFile, RelFile,@@ -30,7 +104,8 @@ absRelFile, absRelDir, (</>),- (<.>)+ (<.>),+ (<++>), ) where import Lawless hiding ((<.>))@@ -41,13 +116,15 @@ AbsDir, RelDir, AbsRelFile,- AbsRelDir+ AbsRelDir,+ (</>),+ (<.>),+ (<++>) ) import qualified System.Path as P import qualified System.Path.PartClass as C import Aeson hiding (parse) import Control.Monad.Fail-import System.Path ((</>), (<.>)) parse ∷ (IsText t, C.AbsRel ar, C.FileDir fd) ⇒ t → Either Text (P.Path ar fd) parse t = case P.parse (t ^. unpacked) of
liblawless.cabal view
@@ -1,5 +1,5 @@ name: liblawless-version: 0.17.2+version: 0.17.3 synopsis: Prelude based on protolude for GHC 8 and beyond. license: GPL-3 license-file: LICENSE