d10-0.2.1.0: Digits 0-9

Safe HaskellSafe
LanguageHaskell2010

Data.D10.Predicate

Description

Functions to test whether values of various types represent digits in the range 0 to 9.

Synopsis

Documentation

isD10Char :: Char -> Bool Source #

Determines whether a Char is in the range '0' to '9'.

isD10Str :: String -> Bool Source #

Determines whether a String consists of a single character and that character is within the range '0' to '9'.

isD10ListStr :: String -> Bool Source #

Determines whether a String consists entirely of characters that are within the range '0' to '9'.

isD10Nat :: Natural -> Bool Source #

Determines whether a Natural is in the range 0 to 9.

isD10Integer :: Integer -> Bool Source #

Determines whether an Integer is in the range 0 to 9.

isD10Int :: Int -> Bool Source #

Determines whether an Int is in the range 0 to 9.

isD10Integral :: Integral a => a -> Bool Source #

Determines whether a number whose type has an Integral instance is in the range 0 to 9.