hspec 2.5.8 → 2.5.9
raw patch · 2 files changed
+10/−8 lines, 2 filesdep ~hspec-coredep ~hspec-discoverPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: hspec-core, hspec-discover
API changes (from Hackage documentation)
+ Test.Hspec: type family Arg e :: Type
+ Test.Hspec.Discover: infixl 1 >>
+ Test.Hspec.Discover: infixl 6 -
+ Test.Hspec.Discover: infixl 7 *
+ Test.Hspec.Discover: infixr 6 <>
- Test.Hspec: around :: () => ActionWith a -> IO () -> SpecWith a -> Spec
+ Test.Hspec: around :: () => (ActionWith a -> IO ()) -> SpecWith a -> Spec
- Test.Hspec: aroundWith :: () => ActionWith a -> ActionWith b -> SpecWith a -> SpecWith b
+ Test.Hspec: aroundWith :: () => (ActionWith a -> ActionWith b) -> SpecWith a -> SpecWith b
- Test.Hspec: around_ :: () => IO () -> IO () -> SpecWith a -> SpecWith a
+ Test.Hspec: around_ :: () => (IO () -> IO ()) -> SpecWith a -> SpecWith a
- Test.Hspec: beforeWith :: () => b -> IO a -> SpecWith a -> SpecWith b
+ Test.Hspec: beforeWith :: () => (b -> IO a) -> SpecWith a -> SpecWith b
- Test.Hspec: it :: (HasCallStack, Example a) => String -> a -> SpecWith Arg a
+ Test.Hspec: it :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec: specify :: (HasCallStack, Example a) => String -> a -> SpecWith Arg a
+ Test.Hspec: specify :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec: xit :: (HasCallStack, Example a) => String -> a -> SpecWith Arg a
+ Test.Hspec: xit :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec: xspecify :: (HasCallStack, Example a) => String -> a -> SpecWith Arg a
+ Test.Hspec: xspecify :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec.Core: Item :: String -> Maybe Location -> Maybe Bool -> Params -> ActionWith a -> IO () -> ProgressCallback -> IO Result -> Item a
+ Test.Hspec.Core: Item :: String -> Maybe Location -> Maybe Bool -> (Params -> (ActionWith a -> IO ()) -> ProgressCallback -> IO Result) -> Item a
- Test.Hspec.Core: [itemExample] :: Item a -> Params -> ActionWith a -> IO () -> ProgressCallback -> IO Result
+ Test.Hspec.Core: [itemExample] :: Item a -> Params -> (ActionWith a -> IO ()) -> ProgressCallback -> IO Result
- Test.Hspec.Core: evaluateExample :: Example e => e -> Params -> ActionWith Arg e -> IO () -> ProgressCallback -> IO Result
+ Test.Hspec.Core: evaluateExample :: Example e => e -> Params -> (ActionWith (Arg e) -> IO ()) -> ProgressCallback -> IO Result
- Test.Hspec.Core: mapSpecItem :: () => ActionWith a -> ActionWith b -> Item a -> Item b -> SpecWith a -> SpecWith b
+ Test.Hspec.Core: mapSpecItem :: () => (ActionWith a -> ActionWith b) -> (Item a -> Item b) -> SpecWith a -> SpecWith b
- Test.Hspec.Core: mapSpecItem_ :: () => Item a -> Item a -> SpecWith a -> SpecWith a
+ Test.Hspec.Core: mapSpecItem_ :: () => (Item a -> Item a) -> SpecWith a -> SpecWith a
- Test.Hspec.Core: modifyParams :: () => Params -> Params -> SpecWith a -> SpecWith a
+ Test.Hspec.Core: modifyParams :: () => (Params -> Params) -> SpecWith a -> SpecWith a
- Test.Hspec.Core: safeEvaluateExample :: Example e => e -> Params -> ActionWith Arg e -> IO () -> ProgressCallback -> IO Result
+ Test.Hspec.Core: safeEvaluateExample :: Example e => e -> Params -> (ActionWith (Arg e) -> IO ()) -> ProgressCallback -> IO Result
- Test.Hspec.Core: specItem :: (HasCallStack, Example a) => String -> a -> SpecTree Arg a
+ Test.Hspec.Core: specItem :: (HasCallStack, Example a) => String -> a -> SpecTree (Arg a)
- Test.Hspec.Core: specify :: (HasCallStack, Example a) => String -> a -> SpecWith Arg a
+ Test.Hspec.Core: specify :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec.Core: type family Arg e :: *;
+ Test.Hspec.Core: type family Arg e :: Type;
- Test.Hspec.Core: xit :: (HasCallStack, Example a) => String -> a -> SpecWith Arg a
+ Test.Hspec.Core: xit :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec.Core: xspecify :: (HasCallStack, Example a) => String -> a -> SpecWith Arg a
+ Test.Hspec.Core: xspecify :: (HasCallStack, Example a) => String -> a -> SpecWith (Arg a)
- Test.Hspec.Discover: ($!) :: () => a -> b -> a -> b
+ Test.Hspec.Discover: ($!) :: () => (a -> b) -> a -> b
- Test.Hspec.Discover: ($) :: () => a -> b -> a -> b
+ Test.Hspec.Discover: ($) :: () => (a -> b) -> a -> b
- Test.Hspec.Discover: (.) :: () => b -> c -> a -> b -> a -> c
+ Test.Hspec.Discover: (.) :: () => (b -> c) -> (a -> b) -> a -> c
- Test.Hspec.Discover: (<$>) :: Functor f => a -> b -> f a -> f b
+ Test.Hspec.Discover: (<$>) :: Functor f => (a -> b) -> f a -> f b
- Test.Hspec.Discover: (<*>) :: Applicative f => f a -> b -> f a -> f b
+ Test.Hspec.Discover: (<*>) :: Applicative f => f (a -> b) -> f a -> f b
- Test.Hspec.Discover: (=<<) :: Monad m => a -> m b -> m a -> m b
+ Test.Hspec.Discover: (=<<) :: Monad m => (a -> m b) -> m a -> m b
- Test.Hspec.Discover: (>>=) :: Monad m => m a -> a -> m b -> m b
+ Test.Hspec.Discover: (>>=) :: Monad m => m a -> (a -> m b) -> m b
- Test.Hspec.Discover: all :: Foldable t => a -> Bool -> t a -> Bool
+ Test.Hspec.Discover: all :: Foldable t => (a -> Bool) -> t a -> Bool
- Test.Hspec.Discover: any :: Foldable t => a -> Bool -> t a -> Bool
+ Test.Hspec.Discover: any :: Foldable t => (a -> Bool) -> t a -> Bool
- Test.Hspec.Discover: break :: () => a -> Bool -> [a] -> ([a], [a])
+ Test.Hspec.Discover: break :: () => (a -> Bool) -> [a] -> ([a], [a])
- Test.Hspec.Discover: class Functor f => Applicative (f :: * -> *)
+ Test.Hspec.Discover: class Functor f => Applicative (f :: Type -> Type)
- Test.Hspec.Discover: class Foldable (t :: * -> *)
+ Test.Hspec.Discover: class Foldable (t :: Type -> Type)
- Test.Hspec.Discover: class Functor (f :: * -> *)
+ Test.Hspec.Discover: class Functor (f :: Type -> Type)
- Test.Hspec.Discover: class Applicative m => Monad (m :: * -> *)
+ Test.Hspec.Discover: class Applicative m => Monad (m :: Type -> Type)
- Test.Hspec.Discover: class (Functor t, Foldable t) => Traversable (t :: * -> *)
+ Test.Hspec.Discover: class (Functor t, Foldable t) => Traversable (t :: Type -> Type)
- Test.Hspec.Discover: concatMap :: Foldable t => a -> [b] -> t a -> [b]
+ Test.Hspec.Discover: concatMap :: Foldable t => (a -> [b]) -> t a -> [b]
- Test.Hspec.Discover: curry :: () => (a, b) -> c -> a -> b -> c
+ Test.Hspec.Discover: curry :: () => ((a, b) -> c) -> a -> b -> c
- Test.Hspec.Discover: dropWhile :: () => a -> Bool -> [a] -> [a]
+ Test.Hspec.Discover: dropWhile :: () => (a -> Bool) -> [a] -> [a]
- Test.Hspec.Discover: either :: () => a -> c -> b -> c -> Either a b -> c
+ Test.Hspec.Discover: either :: () => (a -> c) -> (b -> c) -> Either a b -> c
- Test.Hspec.Discover: filter :: () => a -> Bool -> [a] -> [a]
+ Test.Hspec.Discover: filter :: () => (a -> Bool) -> [a] -> [a]
- Test.Hspec.Discover: flip :: () => a -> b -> c -> b -> a -> c
+ Test.Hspec.Discover: flip :: () => (a -> b -> c) -> b -> a -> c
- Test.Hspec.Discover: fmap :: Functor f => a -> b -> f a -> f b
+ Test.Hspec.Discover: fmap :: Functor f => (a -> b) -> f a -> f b
- Test.Hspec.Discover: foldMap :: (Foldable t, Monoid m) => a -> m -> t a -> m
+ Test.Hspec.Discover: foldMap :: (Foldable t, Monoid m) => (a -> m) -> t a -> m
- Test.Hspec.Discover: foldl :: Foldable t => b -> a -> b -> b -> t a -> b
+ Test.Hspec.Discover: foldl :: Foldable t => (b -> a -> b) -> b -> t a -> b
- Test.Hspec.Discover: foldl1 :: Foldable t => a -> a -> a -> t a -> a
+ Test.Hspec.Discover: foldl1 :: Foldable t => (a -> a -> a) -> t a -> a
- Test.Hspec.Discover: foldr :: Foldable t => a -> b -> b -> b -> t a -> b
+ Test.Hspec.Discover: foldr :: Foldable t => (a -> b -> b) -> b -> t a -> b
- Test.Hspec.Discover: foldr1 :: Foldable t => a -> a -> a -> t a -> a
+ Test.Hspec.Discover: foldr1 :: Foldable t => (a -> a -> a) -> t a -> a
- Test.Hspec.Discover: interact :: String -> String -> IO ()
+ Test.Hspec.Discover: interact :: (String -> String) -> IO ()
- Test.Hspec.Discover: iterate :: () => a -> a -> a -> [a]
+ Test.Hspec.Discover: iterate :: () => (a -> a) -> a -> [a]
- Test.Hspec.Discover: map :: () => a -> b -> [a] -> [b]
+ Test.Hspec.Discover: map :: () => (a -> b) -> [a] -> [b]
- Test.Hspec.Discover: mapM_ :: (Foldable t, Monad m) => a -> m b -> t a -> m ()
+ Test.Hspec.Discover: mapM_ :: (Foldable t, Monad m) => (a -> m b) -> t a -> m ()
- Test.Hspec.Discover: maybe :: () => b -> a -> b -> Maybe a -> b
+ Test.Hspec.Discover: maybe :: () => b -> (a -> b) -> Maybe a -> b
- Test.Hspec.Discover: scanl :: () => b -> a -> b -> b -> [a] -> [b]
+ Test.Hspec.Discover: scanl :: () => (b -> a -> b) -> b -> [a] -> [b]
- Test.Hspec.Discover: scanl1 :: () => a -> a -> a -> [a] -> [a]
+ Test.Hspec.Discover: scanl1 :: () => (a -> a -> a) -> [a] -> [a]
- Test.Hspec.Discover: scanr :: () => a -> b -> b -> b -> [a] -> [b]
+ Test.Hspec.Discover: scanr :: () => (a -> b -> b) -> b -> [a] -> [b]
- Test.Hspec.Discover: scanr1 :: () => a -> a -> a -> [a] -> [a]
+ Test.Hspec.Discover: scanr1 :: () => (a -> a -> a) -> [a] -> [a]
- Test.Hspec.Discover: sequence :: (Traversable t, Monad m) => t m a -> m t a
+ Test.Hspec.Discover: sequence :: (Traversable t, Monad m) => t (m a) -> m (t a)
- Test.Hspec.Discover: sequenceA :: (Traversable t, Applicative f) => t f a -> f t a
+ Test.Hspec.Discover: sequenceA :: (Traversable t, Applicative f) => t (f a) -> f (t a)
- Test.Hspec.Discover: sequence_ :: (Foldable t, Monad m) => t m a -> m ()
+ Test.Hspec.Discover: sequence_ :: (Foldable t, Monad m) => t (m a) -> m ()
- Test.Hspec.Discover: span :: () => a -> Bool -> [a] -> ([a], [a])
+ Test.Hspec.Discover: span :: () => (a -> Bool) -> [a] -> ([a], [a])
- Test.Hspec.Discover: takeWhile :: () => a -> Bool -> [a] -> [a]
+ Test.Hspec.Discover: takeWhile :: () => (a -> Bool) -> [a] -> [a]
- Test.Hspec.Discover: traverse :: (Traversable t, Applicative f) => a -> f b -> t a -> f t b
+ Test.Hspec.Discover: traverse :: (Traversable t, Applicative f) => (a -> f b) -> t a -> f (t b)
- Test.Hspec.Discover: uncurry :: () => a -> b -> c -> (a, b) -> c
+ Test.Hspec.Discover: uncurry :: () => (a -> b -> c) -> (a, b) -> c
- Test.Hspec.Discover: until :: () => a -> Bool -> a -> a -> a -> a
+ Test.Hspec.Discover: until :: () => (a -> Bool) -> (a -> a) -> a -> a
- Test.Hspec.Discover: zipWith :: () => a -> b -> c -> [a] -> [b] -> [c]
+ Test.Hspec.Discover: zipWith :: () => (a -> b -> c) -> [a] -> [b] -> [c]
- Test.Hspec.Discover: zipWith3 :: () => a -> b -> c -> d -> [a] -> [b] -> [c] -> [d]
+ Test.Hspec.Discover: zipWith3 :: () => (a -> b -> c -> d) -> [a] -> [b] -> [c] -> [d]
- Test.Hspec.QuickCheck: modifyArgs :: () => Args -> Args -> SpecWith a -> SpecWith a
+ Test.Hspec.QuickCheck: modifyArgs :: () => (Args -> Args) -> SpecWith a -> SpecWith a
- Test.Hspec.QuickCheck: modifyMaxDiscardRatio :: () => Int -> Int -> SpecWith a -> SpecWith a
+ Test.Hspec.QuickCheck: modifyMaxDiscardRatio :: () => (Int -> Int) -> SpecWith a -> SpecWith a
- Test.Hspec.QuickCheck: modifyMaxShrinks :: () => Int -> Int -> SpecWith a -> SpecWith a
+ Test.Hspec.QuickCheck: modifyMaxShrinks :: () => (Int -> Int) -> SpecWith a -> SpecWith a
- Test.Hspec.QuickCheck: modifyMaxSize :: () => Int -> Int -> SpecWith a -> SpecWith a
+ Test.Hspec.QuickCheck: modifyMaxSize :: () => (Int -> Int) -> SpecWith a -> SpecWith a
- Test.Hspec.QuickCheck: modifyMaxSuccess :: () => Int -> Int -> SpecWith a -> SpecWith a
+ Test.Hspec.QuickCheck: modifyMaxSuccess :: () => (Int -> Int) -> SpecWith a -> SpecWith a
Files
- CHANGES.markdown +3/−0
- hspec.cabal +7/−8
CHANGES.markdown view
@@ -1,3 +1,6 @@+## Changes in 2.5.9+ - Extract source locations from RecConError (see #375)+ ## Changes in 2.5.8 - Add `modifyArgs` and `modifyMaxShrinks` to `Test.Hspec.QuickCheck` (see #380)
hspec.cabal view
@@ -1,13 +1,13 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.30.0.+-- This file has been generated from package.yaml by hpack version 0.31.0. -- -- see: https://github.com/sol/hpack ----- hash: 40b85ddf44dc97639bb3e671d45d8dfb9cb7a6e2f2636b617e83d9db15d63374+-- hash: bf5dc1c765ad341077da7d97ffc9db5652d6b90d225ae6e211ba1be255351ca6 name: hspec-version: 2.5.8+version: 2.5.9 license: MIT license-file: LICENSE copyright: (c) 2011-2018 Simon Hengel,@@ -20,9 +20,8 @@ bug-reports: https://github.com/hspec/hspec/issues homepage: http://hspec.github.io/ synopsis: A Testing Framework for Haskell-description: Hspec is a testing framework for Haskell. It is inspired by- the Ruby library RSpec. Some of Hspec's distinctive features- are:+description: Hspec is a testing framework for Haskell. Some of Hspec's distinctive+ features are: . * a friendly DSL for defining tests .@@ -47,8 +46,8 @@ build-depends: QuickCheck >=2.10 , base ==4.*- , hspec-core ==2.5.8- , hspec-discover ==2.5.8+ , hspec-core ==2.5.9+ , hspec-discover ==2.5.9 , hspec-expectations ==0.8.2.* exposed-modules: Test.Hspec