Copyright | (C) 2021 Koz Ross |
---|---|
License | Apache 2.0 |
Maintainer | Koz Ross <koz.ross@retro-freedom.nz> |
Stability | unstable, not subject to PVP |
Portability | GHC only |
Safe Haskell | Trustworthy |
Language | Haskell2010 |
Text.Ascii.Internal
Description
This is an internal module, and is not subject to the PVP. It can change in any way, at any time, and should not be depended on unless you know exactly what you are doing. You have been warned.
Documentation
Represents valid ASCII characters, which are bytes from 0x00
to 0x7f
.
Since: 1.0.0
Instances
Bounded AsciiChar Source # | Since: 1.0.0 |
Eq AsciiChar Source # | Since: 1.0.0 |
Ord AsciiChar Source # | Since: 1.0.0 |
Show AsciiChar Source # | Since: 1.0.0 |
FoldCase AsciiChar Source # | Since: 1.0.1 |
Defined in Text.Ascii.Internal | |
NFData AsciiChar Source # | Since: 1.0.0 |
Defined in Text.Ascii.Internal | |
Hashable AsciiChar Source # | Since: 1.0.0 |
Defined in Text.Ascii.Internal | |
Enum (Unsafe AsciiChar) Source # | Since: 1.0.1 |
Defined in Text.Ascii.Unsafe Methods succ :: Unsafe AsciiChar -> Unsafe AsciiChar # pred :: Unsafe AsciiChar -> Unsafe AsciiChar # toEnum :: Int -> Unsafe AsciiChar # fromEnum :: Unsafe AsciiChar -> Int # enumFrom :: Unsafe AsciiChar -> [Unsafe AsciiChar] # enumFromThen :: Unsafe AsciiChar -> Unsafe AsciiChar -> [Unsafe AsciiChar] # enumFromTo :: Unsafe AsciiChar -> Unsafe AsciiChar -> [Unsafe AsciiChar] # enumFromThenTo :: Unsafe AsciiChar -> Unsafe AsciiChar -> Unsafe AsciiChar -> [Unsafe AsciiChar] # | |
Read (Unsafe AsciiChar) Source # | Since: 1.0.1 |
pattern AsByte :: Word8 -> AsciiChar Source #
View an AsciiChar
as its underlying byte. You can pattern match on this,
but since there are more bytes than valid ASCII characters, you cannot use
this to construct.
Since: 1.0.0
A string of ASCII characters, represented as a packed byte array.
Since: 1.0.0
Constructors
AsciiText ByteString |