Safe Haskell | None |
---|
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.
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.
Interned
data InternedMultiChar Source