Copyright | Copyright 2017 Awake Security |
---|---|
License | Apache-2.0 |
Maintainer | opensource@awakesecurity.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
A data type for integers greater than zero.
Since: 0.1.0
- data Positive
- makePositive :: Int -> Maybe Positive
- fromPositive :: Getter Positive Int
Documentation
This type represents a positive number; i.e.: an integer greater than zero.
Since: 0.1.0
Enum Positive Source # | |
Eq Positive Source # | |
Integral Positive Source # | |
Num Positive Source # | This instance uses Since: 0.1.0 |
Ord Positive Source # | |
Read Positive Source # | |
Real Positive Source # | |
Show Positive Source # | |
Generic Positive Source # | |
Hashable Positive Source # | |
ToJSON Positive Source # | |
FromJSON Positive Source # | |
NFData Positive Source # | |
Monad m => Serial m Positive Source # | Uses the underlying Since: 0.1.0 |
Monad m => CoSerial m Positive Source # | Uses the underlying Since: 0.1.0 |
type Rep Positive Source # | |