hspec-dirstream 1.0.0.1 → 1.0.0.2
raw patch · 2 files changed
+5/−5 lines, 2 filesdep ~pipes-safePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: pipes-safe
API changes (from Hackage documentation)
- Test.Hspec.Dirstream: instance Control.Monad.Fail.MonadFail Test.Hspec.Dirstream.SafeSpecM
+ Test.Hspec.Dirstream: instance Control.Monad.Fail.MonadFail (Test.Hspec.Core.Spec.Monad.SpecM a)
Files
- hspec-dirstream.cabal +1/−1
- src/Test/Hspec/Dirstream.hs +4/−4
hspec-dirstream.cabal view
@@ -1,6 +1,6 @@ cabal-version: 1.18 name: hspec-dirstream-version: 1.0.0.1+version: 1.0.0.2 license: BSD3 license-file: LICENSE copyright: Copyright: (c) 2018 Vanessa McHale
src/Test/Hspec/Dirstream.hs view
@@ -24,7 +24,7 @@ , SafeSpecM ) where -import Control.Monad.Fail (MonadFail (..))+import Control.Monad.Fail (MonadFail (..)) import Data.DirStream import Data.Text (Text) import qualified Filesystem.Path.CurrentOS as F@@ -40,6 +40,9 @@ deriving instance MonadMask (SpecM a) deriving instance MonadIO (SpecM a) +instance MonadFail (SpecM a) where+ fail = error+ hasExtension :: Text -> F.FilePath -> Bool hasExtension = flip F.hasExtension @@ -49,9 +52,6 @@ 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