hspec-core 2.11.0 → 2.11.0.1
raw patch · 3 files changed
+7/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- hspec-core.cabal +1/−1
- src/Test/Hspec/Core/Config.hs +5/−1
- version.yaml +1/−1
hspec-core.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack name: hspec-core-version: 2.11.0+version: 2.11.0.1 license: MIT license-file: LICENSE copyright: (c) 2011-2023 Simon Hengel,
src/Test/Hspec/Core/Config.hs view
@@ -18,6 +18,7 @@ import Prelude () import Test.Hspec.Core.Compat +import GHC.IO.Exception (IOErrorType(UnsupportedOperation)) import System.IO import System.IO.Error import System.Exit@@ -148,10 +149,13 @@ readGlobalConfigFile :: IO (Maybe ConfigFile) readGlobalConfigFile = do- mHome <- tryJust (guard . isDoesNotExistError) getHomeDirectory+ mHome <- tryJust (guard . isPotentialHomeDirError) getHomeDirectory case mHome of Left _ -> return Nothing Right home -> readConfigFile (home </> ".hspec")+ where+ isPotentialHomeDirError e =+ isDoesNotExistError e || ioeGetErrorType e == UnsupportedOperation readLocalConfigFile :: IO (Maybe ConfigFile) readLocalConfigFile = do
version.yaml view
@@ -1,1 +1,1 @@-&version 2.11.0+&version 2.11.0.1