Distribution.Types.TestType

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

Safe Haskell | Safe-Inferred
Language | Haskell2010

Distribution.Types.TestType

Synopsis

- data TestType
  - = TestTypeExe Version
  - | TestTypeLib Version
  - | TestTypeUnknown String Version
- knownTestTypes :: [TestType]

# Documentation

data TestType Source #

The "test-type" field in the test suite stanza.

Constructors

TestTypeExe Version | "type: exitcode-stdio-x.y"
TestTypeLib Version | "type: detailed-x.y"
TestTypeUnknown String Version | Some unknown test type e.g. "type: foo"

#### Instances

Instances details

Parsec TestType Source # |
Instance details Defined in Distribution.Types.TestType Methods parsec :: CabalParsing m => m TestType Source #
Pretty TestType Source # |
Instance details Defined in Distribution.Types.TestType Methods pretty :: TestType -> Doc Source # prettyVersioned :: CabalSpecVersion -> TestType -> Doc Source #
Structured TestType Source # |
Instance details Defined in Distribution.Types.TestType Methods structure :: Proxy TestType -> Structure Source # structureHash' :: Tagged TestType MD5
Data TestType Source # |
Instance details Defined in Distribution.Types.TestType Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> TestType -> c TestType Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c TestType Source # toConstr :: TestType -> Constr Source # dataTypeOf :: TestType -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c TestType) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TestType) Source # gmapT :: (forall b. Data b => b -> b) -> TestType -> TestType Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> TestType -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> TestType -> r Source # gmapQ :: (forall d. Data d => d -> u) -> TestType -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> TestType -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> TestType -> m TestType Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> TestType -> m TestType Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> TestType -> m TestType Source #
Generic TestType Source # |
Instance details Defined in Distribution.Types.TestType Associated Types type Rep TestType :: Type -> Type Source # Methods from :: TestType -> Rep TestType x Source # to :: Rep TestType x -> TestType Source #
Read TestType Source # |
Instance details Defined in Distribution.Types.TestType Methods readsPrec :: Int -> ReadS TestType Source # readList :: ReadS [TestType] Source # readPrec :: ReadPrec TestType Source # readListPrec :: ReadPrec [TestType] Source #
Show TestType Source # |
Instance details Defined in Distribution.Types.TestType Methods showsPrec :: Int -> TestType -> ShowS Source # show :: TestType -> String Source # showList :: [TestType] -> ShowS Source #
Binary TestType Source # |
Instance details Defined in Distribution.Types.TestType Methods put :: TestType -> Put Source # get :: Get TestType Source # putList :: [TestType] -> Put Source #
NFData TestType Source # |
Instance details Defined in Distribution.Types.TestType Methods rnf :: TestType -> () Source #
Eq TestType Source # |
Instance details Defined in Distribution.Types.TestType Methods (==) :: TestType -> TestType -> Bool # (/=) :: TestType -> TestType -> Bool #
type Rep TestType Source # |
Instance details Defined in Distribution.Types.TestType type Rep TestType = D1 ('MetaData "TestType" "Distribution.Types.TestType" "Cabal-syntax-3.7.0.0" 'False) (C1 ('MetaCons "TestTypeExe" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Version)) :+: (C1 ('MetaCons "TestTypeLib" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Version)) :+: C1 ('MetaCons "TestTypeUnknown" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Version))))

knownTestTypes :: [TestType] Source #