packages feed

directory-tree 0.1.2 → 0.2.0

raw patch · 2 files changed

+7/−7 lines, 2 filesdep ~basedep ~directorydep ~filepathPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base, directory, filepath

API changes (from Hackage documentation)

- System.Directory.Tree: Failed :: FileName -> Exception -> DirTree a
+ System.Directory.Tree: Failed :: FileName -> IOException -> DirTree a
- System.Directory.Tree: err :: DirTree a -> Exception
+ System.Directory.Tree: err :: DirTree a -> IOException
- System.Directory.Tree: failedMap :: (FileName -> Exception -> DirTree a) -> DirTree a -> DirTree a
+ System.Directory.Tree: failedMap :: (FileName -> IOException -> DirTree a) -> DirTree a -> DirTree a

Files

System/Directory/Tree.hs view
@@ -67,7 +67,7 @@ import System.Directory import System.FilePath import System.IO-import Control.Exception (handle, Exception)+import Control.Exception (handle, IOException)  import Data.Function (on) import Data.List (sort, (\\))@@ -89,7 +89,7 @@                | File { name :: FileName,                         file :: a }                | Failed { name :: FileName,-                          err  :: Exception }+                          err  :: IOException }                  deriving (Show, Eq)  @@ -222,7 +222,7 @@   -- | maps a function to convert Failed DirTrees to Files or Dirs-failedMap :: (FileName -> Exception -> DirTree a) -> DirTree a -> DirTree a+failedMap :: (FileName -> IOException -> DirTree a) -> DirTree a -> DirTree a failedMap f (Dir n cs)   = Dir n $map (failedMap f) cs failedMap f (Failed n e) = f n e failedMap _ fle          = fle
directory-tree.cabal view
@@ -1,5 +1,5 @@ name:            directory-tree-version:         0.1.2+version:         0.2.0 homepage:        http://coder.bsimmons.name/blog/2009/05/directory-tree-module-released/ synopsis:        A simple directory-like tree datatype, with useful IO functions  description:     A simple directory-like tree datatype, with useful IO functions and Foldable and Traversable instance  @@ -45,16 +45,16 @@ category:        Data, System license:         BSD3 license-file:    LICENSE-copyright:       (c) 2009, Brandon Simmons <brandon.m.simmons@gmail.com>+copyright:       (c) 2010, Brandon Simmons <brandon.m.simmons@gmail.com> author:          Brandon Simmons maintainer:      Brandon Simmons <brandon.m.simmons@gmail.com> cabal-version:   >= 1.2.0 build-type:      Simple-tested-with:     GHC ==6.8.2+tested-with:     GHC <=6.12.1 extra-source-files: examples.hs   library     exposed-modules: System.Directory.Tree-    build-depends: base <4, filepath, directory+    build-depends: base <5, filepath <2, directory <2     ghc-options:       -Wall