Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Ascii
- type CIAscii = CI Ascii
- data AsciiBuilder
- fromByteString :: ByteString -> Maybe Ascii
- fromChars :: String -> Maybe Ascii
- fromText :: Text -> Maybe Ascii
- unsafeFromByteString :: ByteString -> Ascii
- unsafeFromString :: String -> Ascii
- unsafeFromText :: Text -> Ascii
- toByteString :: Ascii -> ByteString
- toString :: Ascii -> String
- toText :: Ascii -> Text
- toCIAscii :: Ascii -> CIAscii
- fromCIAscii :: CIAscii -> Ascii
- ciToByteString :: CIAscii -> ByteString
- toAsciiBuilder :: Ascii -> AsciiBuilder
- fromAsciiBuilder :: AsciiBuilder -> Ascii
- unsafeFromBuilder :: Builder -> AsciiBuilder
- toBuilder :: AsciiBuilder -> Builder
- fromChar :: Char -> Maybe Word8
- toChar :: Word8 -> Char
- ascii :: Char -> Word8
- isAscii :: Word8 -> Bool
- isControl :: Word8 -> Bool
- isPrintable :: Word8 -> Bool
- isWhiteSpace :: Word8 -> Bool
- isSpaceOrTab :: Word8 -> Bool
- isLower :: Word8 -> Bool
- isUpper :: Word8 -> Bool
- toLower :: Word8 -> Word8
- toUpper :: Word8 -> Word8
- isAlpha :: Word8 -> Bool
- isDigit :: Word8 -> Bool
- isAlphaNum :: Word8 -> Bool
- fromDigit :: Num a => Word8 -> Maybe a
- unsafeFromDigit :: Num a => Word8 -> a
- fromOctDigit :: Num a => Word8 -> Maybe a
- unsafeFromOctDigit :: Num a => Word8 -> a
- isUpHexDigit :: Word8 -> Bool
- fromUpHexDigit :: Num a => Word8 -> Maybe a
- unsafeFromUpHexDigit :: Num a => Word8 -> a
- isLowHexDigit :: Word8 -> Bool
- fromLowHexDigit :: Num a => Word8 -> Maybe a
- unsafeFromLowHexDigit :: Num a => Word8 -> a
- isHexDigit :: Word8 -> Bool
- fromHexDigit :: Num a => Word8 -> Maybe a
- unsafeFromHexDigit :: Num a => Word8 -> a
Datatypes
Instances
Eq Ascii Source # | |
Data Ascii Source # | |
Defined in Data.Ascii.ByteString gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Ascii -> c Ascii # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Ascii # dataTypeOf :: Ascii -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Ascii) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Ascii) # gmapT :: (forall b. Data b => b -> b) -> Ascii -> Ascii # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Ascii -> r # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Ascii -> r # gmapQ :: (forall d. Data d => d -> u) -> Ascii -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Ascii -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Ascii -> m Ascii # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Ascii -> m Ascii # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Ascii -> m Ascii # | |
Ord Ascii Source # | |
Read Ascii Source # | |
Show Ascii Source # | |
IsString Ascii Source # | |
Defined in Data.Ascii.ByteString fromString :: String -> Ascii # | |
Semigroup Ascii Source # | |
Monoid Ascii Source # | |
FoldCase Ascii Source # | |
Defined in Data.Ascii.ByteString | |
Hashable Ascii Source # | |
Defined in Data.Ascii.ByteString |
data AsciiBuilder Source #
Instances
Semigroup AsciiBuilder Source # | |
Defined in Data.Ascii.Blaze (<>) :: AsciiBuilder -> AsciiBuilder -> AsciiBuilder # sconcat :: NonEmpty AsciiBuilder -> AsciiBuilder # stimes :: Integral b => b -> AsciiBuilder -> AsciiBuilder # | |
Monoid AsciiBuilder Source # | |
Defined in Data.Ascii.Blaze mempty :: AsciiBuilder # mappend :: AsciiBuilder -> AsciiBuilder -> AsciiBuilder # mconcat :: [AsciiBuilder] -> AsciiBuilder # |
Construction
Safe
fromByteString :: ByteString -> Maybe Ascii Source #
Unsafe
unsafeFromString :: String -> Ascii Source #
unsafeFromText :: Text -> Ascii Source #
Extraction
toByteString :: Ascii -> ByteString Source #
Case insensitive
fromCIAscii :: CIAscii -> Ascii Source #
ciToByteString :: CIAscii -> ByteString Source #
Builder
toAsciiBuilder :: Ascii -> AsciiBuilder Source #
fromAsciiBuilder :: AsciiBuilder -> Ascii Source #
toBuilder :: AsciiBuilder -> Builder Source #
Character-level functions and predicates
isPrintable :: Word8 -> Bool Source #
isWhiteSpace :: Word8 -> Bool Source #
isSpaceOrTab :: Word8 -> Bool Source #
isAlphaNum :: Word8 -> Bool Source #
unsafeFromDigit :: Num a => Word8 -> a Source #
unsafeFromOctDigit :: Num a => Word8 -> a Source #
isUpHexDigit :: Word8 -> Bool Source #
unsafeFromUpHexDigit :: Num a => Word8 -> a Source #
isLowHexDigit :: Word8 -> Bool Source #
unsafeFromLowHexDigit :: Num a => Word8 -> a Source #
isHexDigit :: Word8 -> Bool Source #
unsafeFromHexDigit :: Num a => Word8 -> a Source #