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.
-
non-negative Numeric.NonNegative.Chunky No documentation available.
-
non-negative Numeric.NonNegative.Chunky No documentation available.
fromNumber :: (Ord a, Num a) => a -> T anon-negative Numeric.NonNegative.Wrapper Convert a number to a non-negative number. If a negative number is given, an error is raised.
fromNumberClip :: (Ord a, Num a) => a -> T anon-negative Numeric.NonNegative.Wrapper Convert a number to a non-negative number. A negative number will be replaced by zero. Use this function with care since it may hide bugs.
fromNumberMsg :: (Ord a, Num a) => String -> a -> T anon-negative Numeric.NonNegative.Wrapper No documentation available.
-
non-negative Numeric.NonNegative.Wrapper Wrap a number into a non-negative number without doing checks. This routine exists entirely for efficiency reasons and must be used only in cases where you are absolutely sure, that the input number is non-negative.
-
non-negative Numeric.NonNegative.Wrapper No documentation available.
boundedEnumLaws :: (Enum a, Bounded a, Eq a, Arbitrary a, Show a) => Proxy a -> Lawsquickcheck-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.
enumLaws :: (Enum a, Eq a, Arbitrary a, Show a) => Proxy a -> Lawsquickcheck-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.-
gi-gio GI.Gio.Callbacks Type for the callback on the (unwrapped) C side.