Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Type modifiers for writing properties that quantify over commonly used subsets of standard types. | | Currently there are only a few modifiers, more will be added.
List modifiers
A type of non empty lists such that nonEmpty xs /= []
.
mkNonEmpty :: a -> [a] -> NonEmpty a Source
Numeric modifiers
A type of natural numbers such that nat a >= 0
.
A type of non-zero integers such that nonZero a /= 0
.
Character and string modifiers
Any unicode character. Should contain all values of the Char type.
Printable ASCII characters.
printables :: [Printable] -> String Source
Access function for printable ASCII strings