HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduletasty-discover-5.1.0Haskell2010

Test.Tasty.Discover.Internal.Config

The test driver configuration options module.

Anything that can be passed as an argument to the test driver definition exists as a field in the Config type.

  • 4 types
  • 7 values

Configuration Options

9 declarations
datadata Config
#

The discovery and runner configuration.

Constructors

Instances3Show, Generic, Rep
newtypenewtype SkipTest
#

Newtype wrapper for skip test option.

This option type integrates with Tasty's option system to control whether tests should be skipped. When set to SkipTest True, tests will show as [SKIPPED] in yellow in the test output and won't actually execute.

Used internally by the skip function and Flavored type to implement test skipping functionality.

Constructors

Instances5Eq, Show, Generic, IsOption, Rep
newtypenewtype OnPlatform
#

Newtype wrapper for platform-specific test filtering.

This option type allows tests to be conditionally executed based on platform criteria. The wrapped function takes a platform string and returns whether the test should run on that platform.

Platform values correspond to System.Info.os: - "linux" for Linux systems - "darwin" for macOS - "mingw32" for Windows (GHC compiled) - "unix" matches both "linux" and "darwin"

Example usage: @ -- Only run on Linux onLinux :: OnPlatform onLinux = OnPlatform (== "linux")

  • - Run on Unix-like systems onUnix :: OnPlatform onUnix = OnPlatform (p -> p elem ["linux", "darwin"]) @

Constructors

Instances1IsOption
valueonUnix :: OnPlatform
#

Helper function: only run on Unix-like systems (Linux or macOS)

Configuration Parser

1 declaration

Configuration Defaults

1 declaration