Hoogle Search
Within LTS Haskell 24.18 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
showReadSpec :: (Show a, Eq a, Read a, Typeable a, GenValid a) => Specgenvalidity-hspec Test.Validity Standard test spec for properties of Show and Read instances for valid values Example usage:
showReadSpec @Int
showReadSpecOnArbitrary :: (Show a, Eq a, Read a, Typeable a, Arbitrary a) => Specgenvalidity-hspec Test.Validity Standard test spec for properties of Show and Read instances for arbitrary values Example usage:
showReadSpecOnArbitrary @Double
showReadSpecOnGen :: (Show a, Eq a, Read a, Typeable a) => Gen a -> String -> (a -> [a]) -> Specgenvalidity-hspec Test.Validity Standard test spec for properties of Show and Read instances for values generated by a custom generator Example usage:
showReadSpecOnGen ((* 2) <$> genValid @Int) "even" (const [])
showReadRoundTrip :: (Show a, Eq a, Read a, GenValid a) => Propertygenvalidity-hspec Test.Validity.Show showReadRoundTrip @Int
showReadRoundTripOnArbitrary :: (Show a, Eq a, Read a, Arbitrary a) => Propertygenvalidity-hspec Test.Validity.Show showReadRoundTripOnArbitrary @Double
showReadRoundTripOnGen :: (Show a, Eq a, Read a) => Gen a -> (a -> [a]) -> Propertygenvalidity-hspec Test.Validity.Show showReadRoundTripOnGen (abs <$> genValid :: Gen Int) (const [])
showReadSpec :: (Show a, Eq a, Read a, Typeable a, GenValid a) => Specgenvalidity-hspec Test.Validity.Show Standard test spec for properties of Show and Read instances for valid values Example usage:
showReadSpec @Int
showReadSpecOnArbitrary :: (Show a, Eq a, Read a, Typeable a, Arbitrary a) => Specgenvalidity-hspec Test.Validity.Show Standard test spec for properties of Show and Read instances for arbitrary values Example usage:
showReadSpecOnArbitrary @Double
showReadSpecOnGen :: (Show a, Eq a, Read a, Typeable a) => Gen a -> String -> (a -> [a]) -> Specgenvalidity-hspec Test.Validity.Show Standard test spec for properties of Show and Read instances for values generated by a custom generator Example usage:
showReadSpecOnGen ((* 2) <$> genValid @Int) "even" (const [])
showList :: Show a => [a] -> ShowShaskell-gi-base Data.GI.Base.ShortPrelude The method showList is provided to allow the programmer to give a specialised way of showing lists of values. For example, this is used by the predefined Show instance of the Char type, where values of type String should be shown in double quotes, rather than between square brackets.