Hoogle Search

Within LTS Haskell 24.67 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. okNumNonNegative :: (Eq a, Num a) => a -> a -> a -> Bool

    leancheck Test.LeanCheck.Utils.Operators

    Like okNum but restricted to zero and positives.

    > check (okNumNonNegative :: Natural -> Natural -> Natural -> Bool)
    +++ OK, passed 200 tests.
    

  2. newtype AlphaNum

    leancheck Test.LeanCheck.Utils.Types

    Alphanumeric characters.

    list :: [AlphaNum]  =  "0a1A2b3B4c..."
    
    > check $ \(AlphaNum c) -> isAlphaNum c
    +++ OK, passed 62 tests (exhausted).
    

  3. AlphaNum :: Char -> AlphaNum

    leancheck Test.LeanCheck.Utils.Types

    No documentation available.

  4. newtype AlphaNums

    leancheck Test.LeanCheck.Utils.Types

    Strings of alphanumeric characters

  5. AlphaNums :: String -> AlphaNums

    leancheck Test.LeanCheck.Utils.Types

    No documentation available.

  6. unAlphaNum :: AlphaNum -> Char

    leancheck Test.LeanCheck.Utils.Types

    No documentation available.

  7. unAlphaNums :: AlphaNums -> String

    leancheck Test.LeanCheck.Utils.Types

    No documentation available.

  8. boundedEnumLaws :: (Enum a, Bounded a, Eq a, Arbitrary a, Show a) => Proxy a -> Laws

    quickcheck-classes-base Test.QuickCheck.Classes.Base

    Tests the same properties as enumLaws except that it requires the type to have a Bounded instance. These tests avoid taking the successor of the maximum element or the predecessor of the minimal element.

  9. enumLaws :: (Enum a, Eq a, Arbitrary a, Show a) => Proxy a -> Laws

    quickcheck-classes-base Test.QuickCheck.Classes.Base

    Tests the following properties:

    This only works for Enum types that are not bounded, meaning that succ and pred must be total. This means that these property tests work correctly for types like Integer but not for Int. Sadly, there is not a good way to test fromEnum and toEnum, since many types that have reasonable implementations for succ and pred have more inhabitants than Int does.

  10. casesEnum :: (Bounded a, Enum a) => Cases a

    selective Control.Selective

    The list of all possible values of an enumerable data type.

Page 200 of many | Previous | Next