Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
okNum :: (Eq a, Num a) => a -> a -> a -> Boolleancheck Test.LeanCheck.Utils.Operators Is this Num instance valid? This is useful for testing your custom Num instances against required properties.
> check (okNum :: Int -> Int -> Int -> Bool) +++ OK, passed 200 tests.
Double is mostly valid, but not entirely valid:> check (okNum :: Double -> Double -> Double -> Bool) *** Failed! Falsifiable (after 6 tests):
- 0 0.0 Infinity
okNumNonNegative :: (Eq a, Num a) => a -> a -> a -> Boolleancheck Test.LeanCheck.Utils.Operators Like okNum but restricted to zero and positives.
> check (okNumNonNegative :: Natural -> Natural -> Natural -> Bool) +++ OK, passed 200 tests.
-
leancheck Test.LeanCheck.Utils.Types Alphanumeric characters.
list :: [AlphaNum] = "0a1A2b3B4c..."
> check $ \(AlphaNum c) -> isAlphaNum c +++ OK, passed 62 tests (exhausted).
-
leancheck Test.LeanCheck.Utils.Types No documentation available.
-
leancheck Test.LeanCheck.Utils.Types Strings of alphanumeric characters
AlphaNums :: String -> AlphaNumsleancheck Test.LeanCheck.Utils.Types No documentation available.
unAlphaNum :: AlphaNum -> Charleancheck Test.LeanCheck.Utils.Types No documentation available.
unAlphaNums :: AlphaNums -> Stringleancheck Test.LeanCheck.Utils.Types No documentation available.
enumSequenceFrom :: Num a => a -> Sequence amath-functions Numeric.Series enumSequenceFrom x generate sequence: <math>
enumSequenceFromStep :: Num a => a -> a -> Sequence amath-functions Numeric.Series enumSequenceFromStep x d generate sequence: <math>