HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduletasty-discover-5.2.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.

Contents
  1. Configuration Options
  2. Configuration Parser
  3. Configuration Defaults
Synopsis

Configuration Options

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

Configuration Parser

Configuration Defaults