Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utility types relating to numeric values
Documentation
newtype NonNegative a Source #
Instances
mkNonNegative :: (Ord a, Num a) => a -> Maybe (NonNegative a) Source #
unsafeNonNegative :: a -> NonNegative a Source #
newtype NonNegativeInt Source #
Instances
newtype PositiveInt Source #
Instances
mkPositiveInt :: Int -> Maybe PositiveInt Source #
unsafePositiveInt :: Int -> PositiveInt Source #
newtype NonNegativeDiffTime Source #