| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
NLP.Alphabet.MultiChar
Description
An alphabet, where each character is a short bytestring.
Due to the overhead this incurs, we use ShortByteStrings 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
MultiChars 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.
Constructors
| MultiChar | |
Fields
| |
Interned
data InternedMultiChar Source
Constructors
| InternedMultiChar | |
Fields | |
Instances