Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
a single-digit decimal number, i.e. [0..9]
i.e. Fin 10
.
the Num
instance provides numerical literals, and is partial like Natural
.
Instances
Bounded Digit Source # | |
Enum Digit Source # |
|
Eq Digit Source # | |
Data Digit Source # | |
Defined in Data.Digit gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Digit -> c Digit # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Digit # dataTypeOf :: Digit -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Digit) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Digit) # gmapT :: (forall b. Data b => b -> b) -> Digit -> Digit # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Digit -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Digit -> r # gmapQ :: (forall d. Data d => d -> u) -> Digit -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Digit -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Digit -> m Digit # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Digit -> m Digit # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Digit -> m Digit # | |
Num Digit Source # | |
Ord Digit Source # | |
Read Digit Source # | |
Show Digit Source # | |
Ix Digit Source # | |
NFData Digit Source # | |
Defined in Data.Digit | |
Hashable Digit Source # | |
Defined in Data.Digit |
minimumDigit :: Num a => a Source #
maximumDigit :: Num a => a Source #
unsafeDigit :: Integral a => a -> Digit Source #