| Safe Haskell | None |
|---|
NLP.Alphabet.MultiChar
Contents
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.
TODO we'd like to use the stringable library but it depends on
system-filepath which is not yet compatible with text>=1.
- internMultiChar :: MultiChar -> MultiChar
- newtype MultiChar = MultiChar {}
- data InternedMultiChar = InternedMultiChar {}
- imcCache :: Cache InternedMultiChar
Documentation
internMultiChar :: MultiChar -> MultiCharSource
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 | |