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