Cabal-syntax-3.12.1.0: A library for working with .cabal files

Safe Haskell | None
Language | Haskell2010

Distribution.Types.TestSuite

Synopsis

- data TestSuite = TestSuite {
  - testName :: UnqualComponentName
  - testInterface :: TestSuiteInterface
  - testBuildInfo :: BuildInfo
  - testCodeGenerators :: [String]
  }
- emptyTestSuite :: TestSuite
- testType :: TestSuite -> TestType
- testModules :: TestSuite -> [ModuleName]
- testModulesAutogen :: TestSuite -> [ModuleName]

# Documentation

data TestSuite Source #

A "test-suite" stanza in a cabal file.

Constructors

TestSuite |

Fields

- testName :: UnqualComponentName
- testInterface :: TestSuiteInterface
- testBuildInfo :: BuildInfo
- testCodeGenerators :: [String]

#### Instances

Instances details

HasBuildInfo TestSuite Source # |

Instance details

Defined in Distribution.Types.TestSuite

Methods

buildInfo :: Lens' TestSuite BuildInfo Source #

buildable :: Lens' TestSuite Bool Source #

buildTools :: Lens' TestSuite [LegacyExeDependency] Source #

buildToolDepends :: Lens' TestSuite [ExeDependency] Source #

cppOptions :: Lens' TestSuite [String] Source #

asmOptions :: Lens' TestSuite [String] Source #

cmmOptions :: Lens' TestSuite [String] Source #

ccOptions :: Lens' TestSuite [String] Source #

cxxOptions :: Lens' TestSuite [String] Source #

ldOptions :: Lens' TestSuite [String] Source #

hsc2hsOptions :: Lens' TestSuite [String] Source #

pkgconfigDepends :: Lens' TestSuite [PkgconfigDependency] Source #

frameworks :: Lens' TestSuite [String] Source #

extraFrameworkDirs :: Lens' TestSuite [String] Source #

asmSources :: Lens' TestSuite [FilePath] Source #

cmmSources :: Lens' TestSuite [FilePath] Source #

cSources :: Lens' TestSuite [FilePath] Source #

cxxSources :: Lens' TestSuite [FilePath] Source #

jsSources :: Lens' TestSuite [FilePath] Source #

hsSourceDirs :: Lens' TestSuite [SymbolicPath PackageDir SourceDir] Source #

otherModules :: Lens' TestSuite [ModuleName] Source #

virtualModules :: Lens' TestSuite [ModuleName] Source #

autogenModules :: Lens' TestSuite [ModuleName] Source #

defaultLanguage :: Lens' TestSuite (Maybe Language) Source #

otherLanguages :: Lens' TestSuite [Language] Source #

defaultExtensions :: Lens' TestSuite [Extension] Source #

otherExtensions :: Lens' TestSuite [Extension] Source #

oldExtensions :: Lens' TestSuite [Extension] Source #

extraLibs :: Lens' TestSuite [String] Source #

extraLibsStatic :: Lens' TestSuite [String] Source #

extraGHCiLibs :: Lens' TestSuite [String] Source #

extraBundledLibs :: Lens' TestSuite [String] Source #

extraLibFlavours :: Lens' TestSuite [String] Source #

extraDynLibFlavours :: Lens' TestSuite [String] Source #

extraLibDirs :: Lens' TestSuite [String] Source #

extraLibDirsStatic :: Lens' TestSuite [String] Source #

includeDirs :: Lens' TestSuite [FilePath] Source #

includes :: Lens' TestSuite [FilePath] Source #

autogenIncludes :: Lens' TestSuite [FilePath] Source #

installIncludes :: Lens' TestSuite [FilePath] Source #

options :: Lens' TestSuite (PerCompilerFlavor [String]) Source #

profOptions :: Lens' TestSuite (PerCompilerFlavor [String]) Source #

sharedOptions :: Lens' TestSuite (PerCompilerFlavor [String]) Source #

staticOptions :: Lens' TestSuite (PerCompilerFlavor [String]) Source #

customFieldsBI :: Lens' TestSuite [(String, String)] Source #

targetBuildDepends :: Lens' TestSuite [Dependency] Source #

mixins :: Lens' TestSuite [Mixin] Source #

Structured TestSuite Source # |
Instance details Defined in Distribution.Types.TestSuite Methods structure :: Proxy TestSuite -> Structure Source # structureHash' :: Tagged TestSuite MD5
Binary TestSuite Source # |
Instance details Defined in Distribution.Types.TestSuite Methods put :: TestSuite -> Put Source # get :: Get TestSuite Source # putList :: [TestSuite] -> Put Source #
NFData TestSuite Source # |
Instance details Defined in Distribution.Types.TestSuite Methods rnf :: TestSuite -> () Source #
Monoid TestSuite Source # |
Instance details Defined in Distribution.Types.TestSuite Methods mempty :: TestSuite # mappend :: TestSuite -> TestSuite -> TestSuite # mconcat :: [TestSuite] -> TestSuite #
Semigroup TestSuite Source # |
Instance details Defined in Distribution.Types.TestSuite Methods (<>) :: TestSuite -> TestSuite -> TestSuite # sconcat :: NonEmpty TestSuite -> TestSuite # stimes :: Integral b => b -> TestSuite -> TestSuite #
Data TestSuite Source # |

Instance details

Defined in Distribution.Types.TestSuite

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TestSuite -> c TestSuite #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TestSuite #

toConstr :: TestSuite -> Constr #

dataTypeOf :: TestSuite -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TestSuite) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TestSuite) #

gmapT :: (forall b. Data b => b -> b) -> TestSuite -> TestSuite #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TestSuite -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TestSuite -> r #

gmapQ :: (forall d. Data d => d -> u) -> TestSuite -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> TestSuite -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> TestSuite -> m TestSuite #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TestSuite -> m TestSuite #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TestSuite -> m TestSuite #

Generic TestSuite Source # |

Instance details

Defined in Distribution.Types.TestSuite

Associated Types

type Rep TestSuite |

Instance details

Defined in Distribution.Types.TestSuite

type Rep TestSuite = D1 ('MetaData "TestSuite" "Distribution.Types.TestSuite" "Cabal-syntax-3.12.1.0-5c0e" 'False) (C1 ('MetaCons "TestSuite" 'PrefixI 'True) ((S1 ('MetaSel ('Just "testName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnqualComponentName) :*: S1 ('MetaSel ('Just "testInterface") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TestSuiteInterface)) :*: (S1 ('MetaSel ('Just "testBuildInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuildInfo) :*: S1 ('MetaSel ('Just "testCodeGenerators") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]))))

Methods

from :: TestSuite -> Rep TestSuite x #

to :: Rep TestSuite x -> TestSuite #

Read TestSuite Source # |
Instance details Defined in Distribution.Types.TestSuite Methods readsPrec :: Int -> ReadS TestSuite # readList :: ReadS [TestSuite] # readPrec :: ReadPrec TestSuite # readListPrec :: ReadPrec [TestSuite] #
Show TestSuite Source # |
Instance details Defined in Distribution.Types.TestSuite Methods showsPrec :: Int -> TestSuite -> ShowS # show :: TestSuite -> String # showList :: [TestSuite] -> ShowS #
Eq TestSuite Source # |
Instance details Defined in Distribution.Types.TestSuite Methods (==) :: TestSuite -> TestSuite -> Bool # (/=) :: TestSuite -> TestSuite -> Bool #
Ord TestSuite Source # |
Instance details Defined in Distribution.Types.TestSuite Methods compare :: TestSuite -> TestSuite -> Ordering # (<) :: TestSuite -> TestSuite -> Bool # (<=) :: TestSuite -> TestSuite -> Bool # (>) :: TestSuite -> TestSuite -> Bool # (>=) :: TestSuite -> TestSuite -> Bool # max :: TestSuite -> TestSuite -> TestSuite # min :: TestSuite -> TestSuite -> TestSuite #
type Rep TestSuite Source # |

Instance details

Defined in Distribution.Types.TestSuite

type Rep TestSuite = D1 ('MetaData "TestSuite" "Distribution.Types.TestSuite" "Cabal-syntax-3.12.1.0-5c0e" 'False) (C1 ('MetaCons "TestSuite" 'PrefixI 'True) ((S1 ('MetaSel ('Just "testName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnqualComponentName) :*: S1 ('MetaSel ('Just "testInterface") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TestSuiteInterface)) :*: (S1 ('MetaSel ('Just "testBuildInfo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuildInfo) :*: S1 ('MetaSel ('Just "testCodeGenerators") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [String]))))

emptyTestSuite :: TestSuite Source #

testType :: TestSuite -> TestType Source #

testModules :: TestSuite -> [ModuleName] Source #

Get all the module names from a test suite.

testModulesAutogen :: TestSuite -> [ModuleName] Source #

Get all the auto generated module names from a test suite. This are a subset of `testModules`.