Skip to content

Commit

Permalink
Handle newer version of hspec
Browse files Browse the repository at this point in the history
  • Loading branch information
ludat committed May 3, 2024
1 parent 294acaa commit 657b658
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/hspec/src/Conferer/FromConfig/Hspec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ desconstructHspecConfigToDefaults Hspec.Config{..} =
#endif
#if MIN_VERSION_hspec_core(2,11,5)
, ("formatException", toDyn configFormatException)
#endif
#if MIN_VERSION_hspec_core(2,11,8)
, ("seed", toDyn configSeed)
#endif
]

Expand Down Expand Up @@ -254,5 +257,8 @@ instance FromConfig Hspec.Config where
#endif
#if MIN_VERSION_hspec_core(2,11,5)
NotUserConfigurable configFormatException <- fetchFromConfig (key /. "formatException") config
#endif
#if MIN_VERSION_hspec_core(2,11,8)
configSeed <- fetchFromConfig (key /. "seed") config
#endif
pure Hspec.Config{..}

0 comments on commit 657b658

Please sign in to comment.