packages feed

hspec-api 2.9.0 → 2.10.0

raw patch · 4 files changed

+14/−22 lines, 4 filesdep ~hspec-corePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: hspec-core

API changes (from Hackage documentation)

+ Test.Hspec.Api.Format.V1: modifyConfig :: (Config -> Config) -> SpecWith a
+ Test.Hspec.Api.Format.V1: type SpecWith a = SpecM a ()
+ Test.Hspec.Api.Formatters.V1: modifyConfig :: (Config -> Config) -> SpecWith a
+ Test.Hspec.Api.Formatters.V1: type SpecWith a = SpecM a ()
+ Test.Hspec.Api.Formatters.V2: modifyConfig :: (Config -> Config) -> SpecWith a
+ Test.Hspec.Api.Formatters.V2: prettyPrintFunction :: FormatM (Maybe (String -> String -> (String, String)))
+ Test.Hspec.Api.Formatters.V2: type SpecWith a = SpecM a ()

Files

hspec-api.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           hspec-api-version:        2.9.0+version:        2.10.0 synopsis:       A Testing Framework for Haskell description:    This package provides a stable API that can be used to extend Hspec's functionality. category:       Testing@@ -35,7 +35,7 @@   ghc-options: -Wall   build-depends:       base ==4.*-    , hspec-core >=2.9.0 && <2.11+    , hspec-core >=2.10.0 && <2.11   default-language: Haskell2010  test-suite spec@@ -55,5 +55,5 @@       base ==4.*     , hspec ==2.*     , hspec-api-    , hspec-core >=2.9.0 && <2.11+    , hspec-core >=2.10.0 && <2.11   default-language: Haskell2010
src/Test/Hspec/Api/Format/V1.hs view
@@ -21,10 +21,13 @@ , liftFormatter  -- * Re-exports+, SpecWith , Config+, modifyConfig ) where  import           Test.Hspec.Core.Runner (Config(..))+import           Test.Hspec.Core.Spec (modifyConfig, SpecWith) import           Test.Hspec.Core.Format hiding (FormatConfig(..)) import qualified Test.Hspec.Core.Format as Latest @@ -68,14 +71,7 @@ liftFormatConfig :: Latest.FormatConfig -> FormatConfig liftFormatConfig config = FormatConfig {   formatConfigUseColor = Latest.formatConfigUseColor config--#if MIN_VERSION_hspec_core(2,9,5) , formatConfigReportProgress = Latest.formatConfigReportProgress config-#else-, formatConfigReportProgress = Latest.formatConfigUseColor config-#endif-- , formatConfigOutputUnicode = Latest.formatConfigOutputUnicode config , formatConfigUseDiff = Latest.formatConfigUseDiff config @@ -87,19 +83,8 @@ , formatConfigExternalDiff = Nothing #endif --#if MIN_VERSION_hspec_core(2,9,5) , formatConfigPrettyPrint = Latest.formatConfigPrettyPrint config-#else-, formatConfigPrettyPrint = True-#endif--#if MIN_VERSION_hspec_core(2,10,0) , formatConfigPrettyPrintFunction = Latest.formatConfigPrettyPrintFunction config-#else-, formatConfigPrettyPrintFunction = Nothing-#endif- , formatConfigPrintTimes = Latest.formatConfigPrintTimes config , formatConfigHtmlOutput = Latest.formatConfigHtmlOutput config , formatConfigPrintCpuTime = Latest.formatConfigPrintCpuTime config
src/Test/Hspec/Api/Formatters/V1.hs view
@@ -78,12 +78,15 @@ , Location(..) , Progress +, SpecWith , Config+, modifyConfig ) where  import Test.Hspec.Core.Formatters.V1-import Test.Hspec.Core.Runner+import Test.Hspec.Core.Runner (Config(..)) import Test.Hspec.Core.Format+import Test.Hspec.Core.Spec (modifyConfig, SpecWith)  -- | -- Make a formatter available for use with @--format@ and use it by default.
src/Test/Hspec/Api/Formatters/V2.hs view
@@ -82,6 +82,7 @@ , diffContext , externalDiffAction , prettyPrint+, prettyPrintFunction , extraChunk , missingChunk @@ -90,12 +91,15 @@ , formatException  -- * Re-exports+, SpecWith , Config+, modifyConfig ) where  import Test.Hspec.Core.Formatters.V2 import Test.Hspec.Core.Runner (Config(..)) import Test.Hspec.Core.Format+import Test.Hspec.Core.Spec (modifyConfig, SpecWith)  #if !MIN_VERSION_hspec_core(2,10,6) diffContext :: FormatM (Maybe Int)