packages feed

system-filepath 0.4.12 → 0.4.13

raw patch · 4 files changed

+19/−20 lines, 4 filesdep ~textnew-uploader

Dependency ranges changed: text

Files

+ ChangeLog.md view
@@ -0,0 +1,3 @@+## 0.4.13++Maintenance taken over by FP Complete.
+ README.md view
@@ -0,0 +1,5 @@+## system-filepath++Provides a `FilePath` datatype and utility functions for operating on it.+Unlike the `filepath` package, this package does not simply reuse `String`,+increasing type safety.
lib/Filesystem/Path/Internal.hs view
@@ -25,7 +25,6 @@ import qualified Data.Text.Encoding as TE import           Data.Text.Encoding.Error (UnicodeException) import           Data.Typeable (Typeable)-import           System.IO.Unsafe (unsafePerformIO)  ------------------------------------------------------------------------------- -- File Paths@@ -236,11 +235,6 @@ 		joined -> Just joined  maybeDecodeUtf8 :: B.ByteString -> Maybe T.Text-maybeDecodeUtf8 = excToMaybe . TE.decodeUtf8 where-	excToMaybe :: a -> Maybe a-	excToMaybe x = unsafePerformIO $ Exc.catch-		(fmap Just (Exc.evaluate x))-		unicodeError-	-	unicodeError :: UnicodeException -> IO (Maybe a)-	unicodeError _ = return Nothing+maybeDecodeUtf8 bytes = case TE.decodeUtf8' bytes of+	Left _ -> Nothing+	Right text -> Just text
system-filepath.cabal view
@@ -1,26 +1,23 @@ name: system-filepath-version: 0.4.12+version: 0.4.13 synopsis: High-level, byte-based file and directory path manipulations+description: Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/system-filepath>. license: MIT license-file: license.txt author: John Millikin <jmillikin@gmail.com>-maintainer: John Millikin <jmillikin@gmail.com>+maintainer: FP Complete <michael@fpcomplete.com> copyright: John Millikin 2010-2012 build-type: Custom cabal-version: >= 1.8 category: System stability: experimental-homepage: https://john-millikin.com/software/haskell-filesystem/-bug-reports: mailto:jmillikin@gmail.com+homepage: https://github.com/fpco/haskell-filesystem+bug-reports: https://github.com/fpco/haskell-filesystem/issues+extra-source-files: README.md ChangeLog.md  source-repository head   type: git-  location: https://john-millikin.com/code/haskell-filesystem/--source-repository this-  type: git-  location: https://john-millikin.com/code/haskell-filesystem/-  tag: system-filepath_0.4.12+  location: https://github.com/fpco/haskell-filesystem.git  library   ghc-options: -Wall -O2@@ -30,7 +27,7 @@       base >= 4.0 && < 5.0     , bytestring >= 0.9     , deepseq >= 1.1 && < 1.4-    , text >= 0.7.1+    , text >= 0.11.0.6    if os(windows)     cpp-options: -DCABAL_OS_WINDOWS