Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- type Test = (String, String, String, String, App ())
- yieldTests :: HasTests x => String -> String -> String -> String -> x -> WriterT [Test] IO ()
- class HasTests x where
- data TestCase a = MkTestCase {
- testCaseName :: String
- testCase :: a
- class TestCases a where
- mkTestCases :: IO [TestCase a]
- newtype Tagged s a = MkTagged {
- unTagged :: a
- type TaggedBool s = Tagged s Bool
- pattern TaggedBool :: Bool -> Tagged s Bool
- mkName :: Either String String -> String -> String
- class GEnum f where
- data OneOf a b
Documentation
yieldTests :: HasTests x => String -> String -> String -> String -> x -> WriterT [Test] IO () Source #
MkTestCase | |
|
Instances
Foldable TestCase Source # | |
Defined in Testlib.PTest fold :: Monoid m => TestCase m -> m # foldMap :: Monoid m => (a -> m) -> TestCase a -> m # foldMap' :: Monoid m => (a -> m) -> TestCase a -> m # foldr :: (a -> b -> b) -> b -> TestCase a -> b # foldr' :: (a -> b -> b) -> b -> TestCase a -> b # foldl :: (b -> a -> b) -> b -> TestCase a -> b # foldl' :: (b -> a -> b) -> b -> TestCase a -> b # foldr1 :: (a -> a -> a) -> TestCase a -> a # foldl1 :: (a -> a -> a) -> TestCase a -> a # elem :: Eq a => a -> TestCase a -> Bool # maximum :: Ord a => TestCase a -> a # minimum :: Ord a => TestCase a -> a # | |
Traversable TestCase Source # | |
Functor TestCase Source # | |
Generic (TestCase a) Source # | |
Show a => Show (TestCase a) Source # | |
Eq a => Eq (TestCase a) Source # | |
Ord a => Ord (TestCase a) Source # | |
type Rep (TestCase a) Source # | |
Defined in Testlib.PTest type Rep (TestCase a) = D1 ('MetaData "TestCase" "Testlib.PTest" "integration-0.1.0-1M0hVX0XSYq1OAOo8LJGGB" 'False) (C1 ('MetaCons "MkTestCase" 'PrefixI 'True) (S1 ('MetaSel ('Just "testCaseName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "testCase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a))) |
class TestCases a where Source #
enumerate all members of a bounded enum type
mkTestCases :: IO [TestCase a] Source #
Instances
Instances
Generic (Tagged s a) Source # | |
Show a => Show (Tagged s a) Source # | |
Eq a => Eq (Tagged s a) Source # | |
Ord a => Ord (Tagged s a) Source # | |
(GEnum (Rep a), KnownSymbol s, Generic a) => TestCases (Tagged s a) Source # | only works for outer-most use of |
Defined in Testlib.PTest | |
type Rep (Tagged s a) Source # | |
Defined in Testlib.PTest |
type TaggedBool s = Tagged s Bool Source #
Instances
GEnum (U1 :: k -> Type) Source # | |
(GEnum k1, GEnum k2) => GEnum (k1 :+: k2 :: k -> Type) Source # | |
(GEnum k2, KnownSymbol n) => GEnum (C1 ('MetaCons n p b) k2 :: k1 -> Type) Source # | |
(GEnum k2, KnownSymbol n) => GEnum (D1 ('MetaData n m p b) k2 :: k1 -> Type) Source # | |
(GEnum (Rep k2), Generic k2) => GEnum (K1 r k2 :: k1 -> Type) Source # | |
GEnum k2 => GEnum (S1 md k2 :: k1 -> Type) Source # | |
Instances
(MakesValue a, MakesValue b) => MakesValue (OneOf a b) Source # | |
(TestCases a, TestCases b) => TestCases (OneOf a b) Source # | |
Defined in Testlib.PTest |