Safe Haskell | None |
---|---|
Language | Haskell2010 |
An alphabet, where each character is a short bytestring.
Due to the overhead this incurs, we use ShortByteString
s internally. We
also provide an Interned
instance to further reduce overhead using
hash-consing.
- internMultiChar :: MultiChar -> MultiChar
- newtype MultiChar = MultiChar {
- getMultiChar :: Text
- data InternedMultiChar = InternedMultiChar {}
- imcCache :: Cache InternedMultiChar
MultiChar
s capture UTF characters that are encoded using one or more
internMultiChar :: MultiChar -> MultiChar Source
Interns a MultiChar
character.
Wrap a short bytestring. Read and Show instances behave like for normal strings.
Interned
data InternedMultiChar Source