Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- isDigit :: Char -> Bool
- isAsciiLetter :: Char -> Bool
- isGreekLetter :: Char -> Bool
- packBytes :: [Word] -> Word
- splitBytes :: [Word] -> ([Word], [Word])
- word16ToInt16 :: Word16 -> Int16
- word32ToInt32 :: Word32 -> Int32
- word64ToInt64 :: Word64 -> Int64
Documentation
isDigit :: Char -> Bool Source #
isDigit c = '0' <= c && c <= '9'
TODO exists in Data.Char, but maybe loses inlining
isAsciiLetter :: Char -> Bool Source #
isAsciiLetter c = ('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')
TODO exists in Data.Char, but maybe loses inlining
isGreekLetter :: Char -> Bool Source #
isGreekLetter c = ('Α' <= c && c <= 'Ω') || ('α' <= c && c <= 'ω')
These functions should be no-ops. They correspond to the similarly-named GHC 9.4 primops which work on unboxed integers.