hspec-dirstream 1.0.0.0 → 1.0.0.1
raw patch · 2 files changed
+6/−2 lines, 2 filesdep ~basedep ~dirstreamdep ~pipes-safePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base, dirstream, pipes-safe
API changes (from Hackage documentation)
+ Test.Hspec.Dirstream: instance Control.Monad.Fail.MonadFail Test.Hspec.Dirstream.SafeSpecM
- Test.Hspec.Dirstream: FileProc :: (FilePath -> IO a) -> (a -> b) -> (b -> Bool) -> FileProcessor a b
+ Test.Hspec.Dirstream: FileProc :: FilePath -> IO a -> a -> b -> b -> Bool -> FileProcessor a b
Files
- hspec-dirstream.cabal +2/−2
- src/Test/Hspec/Dirstream.hs +4/−0
hspec-dirstream.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: hspec-dirstream-version: 1.0.0.0+version: 1.0.0.1 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2018 Vanessa McHale@@ -37,7 +37,7 @@ default-language: Haskell2010 ghc-options: -Wall build-depends:- base >=4.7 && <5,+ base >=4.9 && <5, hspec -any, dirstream -any, pipes -any,
src/Test/Hspec/Dirstream.hs view
@@ -24,6 +24,7 @@ , SafeSpecM ) where +import Control.Monad.Fail (MonadFail (..)) import Data.DirStream import Data.Text (Text) import qualified Filesystem.Path.CurrentOS as F@@ -48,6 +49,9 @@ type SafeSpecM = SafeT (SpecM ()) type Recursor = F.FilePath -> ListT SafeSpecM F.FilePath type PathProducer = String -> PathFilter -> Producer String SafeSpecM ()++instance MonadFail SafeSpecM where+ fail = error dirFiles :: PathProducer dirFiles = getDirFiles childOf